• Creates an "Update Currency" operation to update the properties of a Honeycomb currency.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateUpdateCurrencyOperationArgs

      The arguments for creating the "Update Currency" operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the "Update Currency" operation.

    Example

    const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
    const currency = ...; // Existing HplCurrency instance

    // Create an "Update Currency" operation to update the properties of the currency
    const operationArgs: CreateUpdateCurrencyOperationArgs = {
    args: {
    name: "Updated Currency Name", // New name for the currency
    symbol: "SYM", // New symbol for the currency
    },
    currency, // Existing HplCurrency instance
    };
    const { operation } = await createUpdateCurrencyOperation(honeycomb, operationArgs);
    operation.send();

Generated using TypeDoc