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">;
} = ...
Type declaration
Intent:function
- Intent(__namedParameters): 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;
}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
- MakeMoveVec(__namedParameters): TransactionShape<"MakeMoveVec">
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
- MergeCoins(destination, sources): 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): 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): TransactionShape<"Publish">
Parameters
- __namedParameters: {
dependencies: string[];
modules: string[] | number[][];
}dependencies: string[]
modules: string[] | number[][]
Returns TransactionShape<"Publish">
SplitCoins:function
- SplitCoins(coin, amounts): 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, address): 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): TransactionShape<"Upgrade">
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">
Simple helpers used to construct transactions: