Commands: {
    Intent(__namedParameters): TransactionShape<"$Intent">;
    MakeMoveVec(__namedParameters): TransactionShape<"MakeMoveVec">;
    MergeCoins(destination, sources): TransactionShape<"MergeCoins">;
    MoveCall(input): TransactionShape<"MoveCall">;
    Publish(__namedParameters): TransactionShape<"Publish">;
    SplitCoins(coin, amounts): TransactionShape<"SplitCoins">;
    TransferObjects(objects, address): TransactionShape<"TransferObjects">;
    Upgrade(__namedParameters): TransactionShape<"Upgrade">;
} = ...

Simple helpers used to construct transactions:

Type declaration

  • Intent:function
    • Parameters

      • __namedParameters: {
            data?: Record<string, unknown>;
            inputs?: Record<string, {
                GasCoin: true;
            } | {
                Input: number;
                type?: "object" | "pure";
            } | {
                Result: number;
            } | {
                NestedResult: [number, number];
            } | ({
                GasCoin: true;
            } | {
                Input: number;
                type?: "object" | "pure";
            } | {
                Result: number;
            } | {
                NestedResult: [number, number];
            })[]>;
            name: string;
        }
        • Optional data?: Record<string, unknown>
        • Optional inputs?: Record<string, {
              GasCoin: true;
          } | {
              Input: number;
              type?: "object" | "pure";
          } | {
              Result: number;
          } | {
              NestedResult: [number, number];
          } | ({
              GasCoin: true;
          } | {
              Input: number;
              type?: "object" | "pure";
          } | {
              Result: number;
          } | {
              NestedResult: [number, number];
          })[]>
        • name: string

      Returns TransactionShape<"$Intent">

  • MakeMoveVec:function
    • Parameters

      • __namedParameters: {
            elements: ({
                GasCoin: true;
            } | {
                Input: number;
                type?: "object" | "pure";
            } | {
                Result: number;
            } | {
                NestedResult: [number, number];
            })[];
            type?: string;
        }
        • elements: ({
              GasCoin: true;
          } | {
              Input: number;
              type?: "object" | "pure";
          } | {
              Result: number;
          } | {
              NestedResult: [number, number];
          })[]
        • Optional type?: string

      Returns TransactionShape<"MakeMoveVec">

  • MergeCoins:function
    • Parameters

      • destination: {
            GasCoin: true;
        } | {
            Input: number;
            type?: "object" | "pure";
        } | {
            Result: number;
        } | {
            NestedResult: [number, number];
        }
      • sources: ({
            GasCoin: true;
        } | {
            Input: number;
            type?: "object" | "pure";
        } | {
            Result: number;
        } | {
            NestedResult: [number, number];
        })[]

      Returns TransactionShape<"MergeCoins">

  • MoveCall:function
    • Parameters

      • input: {
            arguments?: ({
                $kind: "GasCoin";
                GasCoin: true;
            } | {
                $kind: "Input";
                Input: number;
                type?: "pure";
            } | {
                $kind: "Input";
                Input: number;
                type?: "object";
            } | {
                $kind: "Result";
                Result: number;
            } | {
                $kind: "NestedResult";
                NestedResult: [number, number];
            })[];
            function: string;
            module: string;
            package: string;
            typeArguments?: string[];
        } | {
            arguments?: ({
                $kind: "GasCoin";
                GasCoin: true;
            } | {
                $kind: "Input";
                Input: number;
                type?: "pure";
            } | {
                $kind: "Input";
                Input: number;
                type?: "object";
            } | {
                $kind: "Result";
                Result: number;
            } | {
                $kind: "NestedResult";
                NestedResult: [number, number];
            })[];
            target: string;
            typeArguments?: string[];
        }

      Returns TransactionShape<"MoveCall">

  • Publish:function
    • Parameters

      • __namedParameters: {
            dependencies: string[];
            modules: string[] | number[][];
        }
        • dependencies: string[]
        • modules: string[] | number[][]

      Returns TransactionShape<"Publish">

  • SplitCoins:function
    • Parameters

      • coin: {
            GasCoin: true;
        } | {
            Input: number;
            type?: "object" | "pure";
        } | {
            Result: number;
        } | {
            NestedResult: [number, number];
        }
      • amounts: ({
            GasCoin: true;
        } | {
            Input: number;
            type?: "object" | "pure";
        } | {
            Result: number;
        } | {
            NestedResult: [number, number];
        })[]

      Returns TransactionShape<"SplitCoins">

  • TransferObjects:function
    • Parameters

      • objects: ({
            GasCoin: true;
        } | {
            Input: number;
            type?: "object" | "pure";
        } | {
            Result: number;
        } | {
            NestedResult: [number, number];
        })[]
      • address: {
            GasCoin: true;
        } | {
            Input: number;
            type?: "object" | "pure";
        } | {
            Result: number;
        } | {
            NestedResult: [number, number];
        }

      Returns TransactionShape<"TransferObjects">

  • Upgrade:function
    • Parameters

      • __namedParameters: {
            dependencies: string[];
            modules: string[] | number[][];
            package: string;
            ticket: {
                GasCoin: true;
            } | {
                Input: number;
                type?: "object" | "pure";
            } | {
                Result: number;
            } | {
                NestedResult: [number, number];
            };
        }
        • dependencies: string[]
        • modules: string[] | number[][]
        • package: string
        • ticket: {
              GasCoin: true;
          } | {
              Input: number;
              type?: "object" | "pure";
          } | {
              Result: number;
          } | {
              NestedResult: [number, number];
          }

      Returns TransactionShape<"Upgrade">