Commands: {
Intent(
__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;
},
): TransactionShape<"$Intent">;
MakeMoveVec(
__namedParameters: {
elements: (
| { GasCoin: true }
| { Input: number; type?: "object" | "pure" }
| { Result: number }
| { NestedResult: [number, number] }
)[];
type?: string;
},
): TransactionShape<"MakeMoveVec">;
MergeCoins(
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] }
)[],
): TransactionShape<"MergeCoins">;
MoveCall(
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[];
},
): TransactionShape<"MoveCall">;
Publish(
__namedParameters: {
dependencies: string[];
modules: string[] | number[][];
},
): TransactionShape<"Publish">;
SplitCoins(
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] }
)[],
): TransactionShape<"SplitCoins">;
TransferObjects(
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] },
): TransactionShape<"TransferObjects">;
Upgrade(
__namedParameters: {
dependencies: string[];
modules: string[] | number[][];
package: string;
ticket:
| { GasCoin: true }
| { Input: number; type?: "object" | "pure" }
| { Result: number }
| { NestedResult: [number, number] };
},
): TransactionShape<"Upgrade">;
} = ...
Type declaration
Intent:function
- Intent(
__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;
},
): TransactionShape<"$Intent"> 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;
}
Returns TransactionShape<"$Intent">
MakeMoveVec:function
- MakeMoveVec(
__namedParameters: {
elements: (
| { GasCoin: true }
| { Input: number; type?: "object" | "pure" }
| { Result: number }
| { NestedResult: [number, number] }
)[];
type?: string;
},
): TransactionShape<"MakeMoveVec"> Parameters
- __namedParameters: {
elements: (
| { GasCoin: true }
| { Input: number; type?: "object" | "pure" }
| { Result: number }
| { NestedResult: [number, number] }
)[];
type?: string;
}
Returns TransactionShape<"MakeMoveVec">
MergeCoins:function
- MergeCoins(
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] }
)[],
): TransactionShape<"MergeCoins"> 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
- MoveCall(
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[];
},
): TransactionShape<"MoveCall"> 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
- Publish(
__namedParameters: {
dependencies: string[];
modules: string[] | number[][];
},
): TransactionShape<"Publish"> Parameters
- __namedParameters: { dependencies: string[]; modules: string[] | number[][] }
Returns TransactionShape<"Publish">
SplitCoins:function
- SplitCoins(
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] }
)[],
): TransactionShape<"SplitCoins"> 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
- TransferObjects(
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] },
): TransactionShape<"TransferObjects"> 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
- Upgrade(
__namedParameters: {
dependencies: string[];
modules: string[] | number[][];
package: string;
ticket:
| { GasCoin: true }
| { Input: number; type?: "object" | "pure" }
| { Result: number }
| { NestedResult: [number, number] };
},
): TransactionShape<"Upgrade"> Parameters
- __namedParameters: {
dependencies: string[];
modules: string[] | number[][];
package: string;
ticket:
| { GasCoin: true }
| { Input: number; type?: "object" | "pure" }
| { Result: number }
| { NestedResult: [number, number] };
}
Returns TransactionShape<"Upgrade">
Simple helpers used to construct transactions: