import * as web3 from "@solana/web3.js"; import { Honeycomb, Operation } from "@honeycomb-protocol/hive-control"; import { UpdateCurrencyArgs } from "../generated"; import { HplCurrency } from "../HplCurrency"; /** * Represents the arguments for creating an "Update Currency" operation. * @category Types */ type CreateUpdateCurrencyOperationArgs = { args: UpdateCurrencyArgs; currency: HplCurrency; programId?: web3.PublicKey; }; /** * Creates an "Update Currency" operation to update the properties of a Honeycomb currency. * * @category Operation Builders * @param honeycomb The Honeycomb instance. * @param args The arguments for creating the "Update Currency" operation. * @returns 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(); */ export declare function createUpdateCurrencyOperation(honeycomb: Honeycomb, args: CreateUpdateCurrencyOperationArgs): Promise<{ operation: Operation; }>; export {};