• Creates an update pool operation to update the specified staking pool.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance to use for creating the operation.

    • args: CreateUpdatePoolCtxArgs

      The arguments required to create the update pool operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the created operation.

    Example

    // Assuming you have initialized the `honeycomb` instance and imported necessary types

    const stakingPool = new NectarStaking(honeycomb, "your_staking_pool_address");

    // Assuming you have an initialized `UpdateStakingPoolArgs` object `updateArgs`

    const createUpdatePoolArgs: CreateUpdatePoolCtxArgs = {
    args: updateArgs,
    project: "your_project_address",
    stakingPool: "your_staking_pool_address",
    };

    const operationResult = await createUpdatePoolOperation(honeycomb, createUpdatePoolArgs);
    console.log("Created update pool operation:", operationResult.operation);

Generated using TypeDoc