Deploy token action.

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    {
        name: ZodString;
        symbol: ZodString;
        totalSupply: ZodType<Amount, ZodTypeDef, Amount>;
    },
    "strip",
    ZodTypeAny,
    { name: string; symbol: string; totalSupply: Amount },
    { name: string; symbol: string; totalSupply: Amount },
> = DeployTokenInput

Schema for validating action arguments

description: string = DEPLOY_TOKEN_PROMPT

A description of what the action does

func: (
    wallet: Wallet,
    args: { name: string; symbol: string; totalSupply: Amount },
) => Promise<string> = deployToken

The function to execute for this action

Type declaration

    • (
          wallet: Wallet,
          args: { name: string; symbol: string; totalSupply: Amount },
      ): Promise<string>
    • Deploys an ERC20 token smart contract.

      Parameters

      • wallet: Wallet

        The wallet to deploy the Token from.

      • args: { name: string; symbol: string; totalSupply: Amount }

        The input arguments for the action.

      Returns Promise<string>

      A message containing the deployed token contract address and details.

name: string = "deploy_token"

The name of the action