@bitgo-beta/sdk-coin-sui 1.4.1-alpha.31 → 1.4.1-alpha.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mocharc.yml +1 -2
- package/CHANGELOG.md +897 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -2
- package/dist/src/lib/compareTransactionBlocks.d.ts +8 -0
- package/dist/src/lib/compareTransactionBlocks.d.ts.map +1 -0
- package/dist/src/lib/compareTransactionBlocks.js +12 -0
- package/dist/src/lib/constants.d.ts +11 -3
- package/dist/src/lib/constants.d.ts.map +1 -1
- package/dist/src/lib/constants.js +20 -3
- package/dist/src/lib/customTransaction.d.ts +57 -0
- package/dist/src/lib/customTransaction.d.ts.map +1 -0
- package/dist/src/lib/customTransaction.js +159 -0
- package/dist/src/lib/customTransactionBuilder.d.ts +46 -0
- package/dist/src/lib/customTransactionBuilder.d.ts.map +1 -0
- package/dist/src/lib/customTransactionBuilder.js +117 -0
- package/dist/src/lib/iface.d.ts +86 -27
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +39 -10
- package/dist/src/lib/index.d.ts +10 -0
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/index.js +44 -10
- package/dist/src/lib/keyPair.d.ts.map +1 -1
- package/dist/src/lib/keyPair.js +25 -21
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts +6 -6
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/Inputs.js +19 -20
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts +302 -0
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts.map +1 -0
- package/dist/src/lib/mystenlab/builder/TransactionBlock.js +255 -0
- package/dist/src/lib/mystenlab/builder/{TransactionData.d.ts → TransactionDataBlock.d.ts} +62 -62
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts.map +1 -0
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.js +168 -0
- package/dist/src/lib/mystenlab/builder/{Commands.d.ts → Transactions.d.ts} +103 -158
- package/dist/src/lib/mystenlab/builder/Transactions.d.ts.map +1 -0
- package/dist/src/lib/mystenlab/builder/Transactions.js +118 -0
- package/dist/src/lib/mystenlab/builder/bcs.d.ts +6 -6
- package/dist/src/lib/mystenlab/builder/bcs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/bcs.js +16 -16
- package/dist/src/lib/mystenlab/builder/index.d.ts +2 -2
- package/dist/src/lib/mystenlab/builder/index.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/index.js +8 -4
- package/dist/src/lib/mystenlab/builder/serializer.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/serializer.js +6 -11
- package/dist/src/lib/mystenlab/builder/utils.d.ts +2 -5
- package/dist/src/lib/mystenlab/builder/utils.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/utils.js +5 -5
- package/dist/src/lib/mystenlab/cryptography/hash.js +3 -4
- package/dist/src/lib/mystenlab/framework/framework.d.ts +8 -7
- package/dist/src/lib/mystenlab/framework/framework.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/framework/framework.js +23 -27
- package/dist/src/lib/mystenlab/framework/index.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/framework/index.js +6 -4
- package/dist/src/lib/mystenlab/framework/sui-system-state.d.ts +4 -23
- package/dist/src/lib/mystenlab/framework/sui-system-state.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/framework/sui-system-state.js +11 -40
- package/dist/src/lib/mystenlab/txn-data-serializers/type-tag-serializer.d.ts.map +1 -0
- package/dist/src/lib/mystenlab/txn-data-serializers/type-tag-serializer.js +119 -0
- package/dist/src/lib/mystenlab/types/coin.d.ts +10 -10
- package/dist/src/lib/mystenlab/types/coin.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/coin.js +19 -19
- package/dist/src/lib/mystenlab/types/common.d.ts +8 -8
- package/dist/src/lib/mystenlab/types/common.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/common.js +22 -22
- package/dist/src/lib/mystenlab/types/events.d.ts +14 -14
- package/dist/src/lib/mystenlab/types/events.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/events.js +17 -17
- package/dist/src/lib/mystenlab/types/index.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/index.js +6 -5
- package/dist/src/lib/mystenlab/types/normalized.d.ts +21 -21
- package/dist/src/lib/mystenlab/types/normalized.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/normalized.js +42 -43
- package/dist/src/lib/mystenlab/types/objects.d.ts +95 -78
- package/dist/src/lib/mystenlab/types/objects.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/objects.js +98 -104
- package/dist/src/lib/mystenlab/types/option.d.ts +1 -1
- package/dist/src/lib/mystenlab/types/option.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/option.js +2 -3
- package/dist/src/lib/mystenlab/types/sui-bcs.d.ts +10 -9
- package/dist/src/lib/mystenlab/types/sui-bcs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/sui-bcs.js +4 -4
- package/dist/src/lib/mystenlab/types/transactions.d.ts +3262 -1046
- package/dist/src/lib/mystenlab/types/transactions.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/transactions.js +209 -187
- package/dist/src/lib/mystenlab/types/validator.d.ts +641 -0
- package/dist/src/lib/mystenlab/types/validator.d.ts.map +1 -0
- package/dist/src/lib/mystenlab/types/validator.js +156 -0
- package/dist/src/lib/resources/walrusConfig.d.ts +22 -0
- package/dist/src/lib/resources/walrusConfig.d.ts.map +1 -0
- package/dist/src/lib/resources/walrusConfig.js +37 -0
- package/dist/src/lib/rpcClient.d.ts +5 -0
- package/dist/src/lib/rpcClient.d.ts.map +1 -0
- package/dist/src/lib/rpcClient.js +74 -0
- package/dist/src/lib/stakingBuilder.d.ts +15 -15
- package/dist/src/lib/stakingBuilder.d.ts.map +1 -1
- package/dist/src/lib/stakingBuilder.js +113 -44
- package/dist/src/lib/stakingTransaction.d.ts +2 -10
- package/dist/src/lib/stakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/stakingTransaction.js +97 -35
- package/dist/src/lib/tokenTransferBuilder.d.ts +38 -0
- package/dist/src/lib/tokenTransferBuilder.d.ts.map +1 -0
- package/dist/src/lib/tokenTransferBuilder.js +132 -0
- package/dist/src/lib/tokenTransferTransaction.d.ts +57 -0
- package/dist/src/lib/tokenTransferTransaction.d.ts.map +1 -0
- package/dist/src/lib/tokenTransferTransaction.js +250 -0
- package/dist/src/lib/transaction.d.ts +16 -6
- package/dist/src/lib/transaction.d.ts.map +1 -1
- package/dist/src/lib/transaction.js +126 -26
- package/dist/src/lib/transactionBuilder.d.ts +2 -3
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +4 -4
- package/dist/src/lib/transactionBuilderFactory.d.ts +17 -2
- package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilderFactory.js +52 -2
- package/dist/src/lib/transferBuilder.d.ts +3 -1
- package/dist/src/lib/transferBuilder.d.ts.map +1 -1
- package/dist/src/lib/transferBuilder.js +34 -11
- package/dist/src/lib/transferTransaction.d.ts +1 -1
- package/dist/src/lib/transferTransaction.d.ts.map +1 -1
- package/dist/src/lib/transferTransaction.js +33 -18
- package/dist/src/lib/unstakingBuilder.d.ts +62 -0
- package/dist/src/lib/unstakingBuilder.d.ts.map +1 -0
- package/dist/src/lib/unstakingBuilder.js +227 -0
- package/dist/src/lib/unstakingTransaction.d.ts +75 -0
- package/dist/src/lib/unstakingTransaction.d.ts.map +1 -0
- package/dist/src/lib/unstakingTransaction.js +345 -0
- package/dist/src/lib/utils.d.ts +51 -7
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +362 -27
- package/dist/src/lib/walrusStakingBuilder.d.ts +66 -0
- package/dist/src/lib/walrusStakingBuilder.d.ts.map +1 -0
- package/dist/src/lib/walrusStakingBuilder.js +200 -0
- package/dist/src/lib/walrusStakingTransaction.d.ts +52 -0
- package/dist/src/lib/walrusStakingTransaction.d.ts.map +1 -0
- package/dist/src/lib/walrusStakingTransaction.js +269 -0
- package/dist/src/lib/walrusWithdrawStakeBuilder.d.ts +36 -0
- package/dist/src/lib/walrusWithdrawStakeBuilder.d.ts.map +1 -0
- package/dist/src/lib/walrusWithdrawStakeBuilder.js +173 -0
- package/dist/src/lib/walrusWithdrawStakeTransaction.d.ts +21 -0
- package/dist/src/lib/walrusWithdrawStakeTransaction.d.ts.map +1 -0
- package/dist/src/lib/walrusWithdrawStakeTransaction.js +186 -0
- package/dist/src/register.d.ts.map +1 -1
- package/dist/src/register.js +5 -1
- package/dist/src/sui.d.ts +44 -8
- package/dist/src/sui.d.ts.map +1 -1
- package/dist/src/sui.js +484 -42
- package/dist/src/suiToken.d.ts +22 -0
- package/dist/src/suiToken.d.ts.map +1 -0
- package/dist/src/suiToken.js +61 -0
- package/dist/src/tsui.js +1 -1
- package/package.json +15 -12
- package/dist/src/lib/mystenlab/builder/Commands.d.ts.map +0 -1
- package/dist/src/lib/mystenlab/builder/Commands.js +0 -119
- package/dist/src/lib/mystenlab/builder/Transaction.d.ts +0 -609
- package/dist/src/lib/mystenlab/builder/Transaction.d.ts.map +0 -1
- package/dist/src/lib/mystenlab/builder/Transaction.js +0 -254
- package/dist/src/lib/mystenlab/builder/TransactionData.d.ts.map +0 -1
- package/dist/src/lib/mystenlab/builder/TransactionData.js +0 -171
- package/dist/src/lib/mystenlab/builder/type-tag-serializer.d.ts.map +0 -1
- package/dist/src/lib/mystenlab/builder/type-tag-serializer.js +0 -119
- /package/dist/src/lib/mystenlab/{builder → txn-data-serializers}/type-tag-serializer.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Infer, Struct } from 'superstruct';
|
|
2
2
|
import { ObjectId } from '../types/common';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const TransactionBlockInput: Struct<{
|
|
4
4
|
kind: "Input";
|
|
5
5
|
index: number;
|
|
6
6
|
value?: any;
|
|
@@ -11,8 +11,8 @@ export declare const TransactionInput: Struct<{
|
|
|
11
11
|
value: Struct<any, null>;
|
|
12
12
|
type: Struct<"object" | "pure" | undefined, null>;
|
|
13
13
|
}>;
|
|
14
|
-
export
|
|
15
|
-
export declare const
|
|
14
|
+
export type TransactionBlockInput = Infer<typeof TransactionBlockInput>;
|
|
15
|
+
export declare const TransactionArgument: Struct<{
|
|
16
16
|
kind: "Input";
|
|
17
17
|
index: number;
|
|
18
18
|
value?: any;
|
|
@@ -23,12 +23,12 @@ export declare const CommandArgument: Struct<{
|
|
|
23
23
|
kind: "Result";
|
|
24
24
|
index: number;
|
|
25
25
|
} | {
|
|
26
|
+
resultIndex: number;
|
|
26
27
|
kind: "NestedResult";
|
|
27
28
|
index: number;
|
|
28
|
-
resultIndex: number;
|
|
29
29
|
}, null>;
|
|
30
|
-
export
|
|
31
|
-
export declare const
|
|
30
|
+
export type TransactionArgument = Infer<typeof TransactionArgument>;
|
|
31
|
+
export declare const ObjectTransactionArgument: Struct<{
|
|
32
32
|
kind: "Input";
|
|
33
33
|
index: number;
|
|
34
34
|
value?: any;
|
|
@@ -39,11 +39,11 @@ export declare const ObjectCommandArgument: Struct<{
|
|
|
39
39
|
kind: "Result";
|
|
40
40
|
index: number;
|
|
41
41
|
} | {
|
|
42
|
+
resultIndex: number;
|
|
42
43
|
kind: "NestedResult";
|
|
43
44
|
index: number;
|
|
44
|
-
resultIndex: number;
|
|
45
45
|
}, null>;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const PureTransactionArgument: (type: string) => Struct<{
|
|
47
47
|
kind: "Input";
|
|
48
48
|
index: number;
|
|
49
49
|
value?: any;
|
|
@@ -54,14 +54,12 @@ export declare const PureCommandArgument: (type: string) => Struct<{
|
|
|
54
54
|
kind: "Result";
|
|
55
55
|
index: number;
|
|
56
56
|
} | {
|
|
57
|
+
resultIndex: number;
|
|
57
58
|
kind: "NestedResult";
|
|
58
59
|
index: number;
|
|
59
|
-
resultIndex: number;
|
|
60
60
|
}, null>;
|
|
61
|
-
export declare const
|
|
62
|
-
kind: "MoveCall";
|
|
61
|
+
export declare const MoveCallTransaction: Struct<{
|
|
63
62
|
target: `${string}::${string}::${string}`;
|
|
64
|
-
typeArguments: string[];
|
|
65
63
|
arguments: ({
|
|
66
64
|
kind: "Input";
|
|
67
65
|
index: number;
|
|
@@ -73,10 +71,12 @@ export declare const MoveCallCommand: Struct<{
|
|
|
73
71
|
kind: "Result";
|
|
74
72
|
index: number;
|
|
75
73
|
} | {
|
|
74
|
+
resultIndex: number;
|
|
76
75
|
kind: "NestedResult";
|
|
77
76
|
index: number;
|
|
78
|
-
resultIndex: number;
|
|
79
77
|
})[];
|
|
78
|
+
kind: "MoveCall";
|
|
79
|
+
typeArguments: string[];
|
|
80
80
|
}, {
|
|
81
81
|
kind: Struct<"MoveCall", "MoveCall">;
|
|
82
82
|
target: Struct<`${string}::${string}::${string}`, null>;
|
|
@@ -92,9 +92,9 @@ export declare const MoveCallCommand: Struct<{
|
|
|
92
92
|
kind: "Result";
|
|
93
93
|
index: number;
|
|
94
94
|
} | {
|
|
95
|
+
resultIndex: number;
|
|
95
96
|
kind: "NestedResult";
|
|
96
97
|
index: number;
|
|
97
|
-
resultIndex: number;
|
|
98
98
|
})[], Struct<{
|
|
99
99
|
kind: "Input";
|
|
100
100
|
index: number;
|
|
@@ -106,14 +106,13 @@ export declare const MoveCallCommand: Struct<{
|
|
|
106
106
|
kind: "Result";
|
|
107
107
|
index: number;
|
|
108
108
|
} | {
|
|
109
|
+
resultIndex: number;
|
|
109
110
|
kind: "NestedResult";
|
|
110
111
|
index: number;
|
|
111
|
-
resultIndex: number;
|
|
112
112
|
}, null>>;
|
|
113
113
|
}>;
|
|
114
|
-
export
|
|
115
|
-
export declare const
|
|
116
|
-
kind: "TransferObjects";
|
|
114
|
+
export type MoveCallTransaction = Infer<typeof MoveCallTransaction>;
|
|
115
|
+
export declare const TransferObjectsTransaction: Struct<{
|
|
117
116
|
objects: ({
|
|
118
117
|
kind: "Input";
|
|
119
118
|
index: number;
|
|
@@ -125,10 +124,11 @@ export declare const TransferObjectsCommand: Struct<{
|
|
|
125
124
|
kind: "Result";
|
|
126
125
|
index: number;
|
|
127
126
|
} | {
|
|
127
|
+
resultIndex: number;
|
|
128
128
|
kind: "NestedResult";
|
|
129
129
|
index: number;
|
|
130
|
-
resultIndex: number;
|
|
131
130
|
})[];
|
|
131
|
+
kind: "TransferObjects";
|
|
132
132
|
address: {
|
|
133
133
|
kind: "Input";
|
|
134
134
|
index: number;
|
|
@@ -140,9 +140,9 @@ export declare const TransferObjectsCommand: Struct<{
|
|
|
140
140
|
kind: "Result";
|
|
141
141
|
index: number;
|
|
142
142
|
} | {
|
|
143
|
+
resultIndex: number;
|
|
143
144
|
kind: "NestedResult";
|
|
144
145
|
index: number;
|
|
145
|
-
resultIndex: number;
|
|
146
146
|
};
|
|
147
147
|
}, {
|
|
148
148
|
kind: Struct<"TransferObjects", "TransferObjects">;
|
|
@@ -157,9 +157,9 @@ export declare const TransferObjectsCommand: Struct<{
|
|
|
157
157
|
kind: "Result";
|
|
158
158
|
index: number;
|
|
159
159
|
} | {
|
|
160
|
+
resultIndex: number;
|
|
160
161
|
kind: "NestedResult";
|
|
161
162
|
index: number;
|
|
162
|
-
resultIndex: number;
|
|
163
163
|
})[], Struct<{
|
|
164
164
|
kind: "Input";
|
|
165
165
|
index: number;
|
|
@@ -171,9 +171,9 @@ export declare const TransferObjectsCommand: Struct<{
|
|
|
171
171
|
kind: "Result";
|
|
172
172
|
index: number;
|
|
173
173
|
} | {
|
|
174
|
+
resultIndex: number;
|
|
174
175
|
kind: "NestedResult";
|
|
175
176
|
index: number;
|
|
176
|
-
resultIndex: number;
|
|
177
177
|
}, null>>;
|
|
178
178
|
address: Struct<{
|
|
179
179
|
kind: "Input";
|
|
@@ -186,14 +186,13 @@ export declare const TransferObjectsCommand: Struct<{
|
|
|
186
186
|
kind: "Result";
|
|
187
187
|
index: number;
|
|
188
188
|
} | {
|
|
189
|
+
resultIndex: number;
|
|
189
190
|
kind: "NestedResult";
|
|
190
191
|
index: number;
|
|
191
|
-
resultIndex: number;
|
|
192
192
|
}, null>;
|
|
193
193
|
}>;
|
|
194
|
-
export
|
|
195
|
-
export declare const
|
|
196
|
-
kind: "SplitCoins";
|
|
194
|
+
export type TransferObjectsTransaction = Infer<typeof TransferObjectsTransaction>;
|
|
195
|
+
export declare const SplitCoinsTransaction: Struct<{
|
|
197
196
|
coin: {
|
|
198
197
|
kind: "Input";
|
|
199
198
|
index: number;
|
|
@@ -205,10 +204,11 @@ export declare const SplitCoinsCommand: Struct<{
|
|
|
205
204
|
kind: "Result";
|
|
206
205
|
index: number;
|
|
207
206
|
} | {
|
|
207
|
+
resultIndex: number;
|
|
208
208
|
kind: "NestedResult";
|
|
209
209
|
index: number;
|
|
210
|
-
resultIndex: number;
|
|
211
210
|
};
|
|
211
|
+
kind: "SplitCoins";
|
|
212
212
|
amounts: ({
|
|
213
213
|
kind: "Input";
|
|
214
214
|
index: number;
|
|
@@ -220,9 +220,9 @@ export declare const SplitCoinsCommand: Struct<{
|
|
|
220
220
|
kind: "Result";
|
|
221
221
|
index: number;
|
|
222
222
|
} | {
|
|
223
|
+
resultIndex: number;
|
|
223
224
|
kind: "NestedResult";
|
|
224
225
|
index: number;
|
|
225
|
-
resultIndex: number;
|
|
226
226
|
})[];
|
|
227
227
|
}, {
|
|
228
228
|
kind: Struct<"SplitCoins", "SplitCoins">;
|
|
@@ -237,9 +237,9 @@ export declare const SplitCoinsCommand: Struct<{
|
|
|
237
237
|
kind: "Result";
|
|
238
238
|
index: number;
|
|
239
239
|
} | {
|
|
240
|
+
resultIndex: number;
|
|
240
241
|
kind: "NestedResult";
|
|
241
242
|
index: number;
|
|
242
|
-
resultIndex: number;
|
|
243
243
|
}, null>;
|
|
244
244
|
amounts: Struct<({
|
|
245
245
|
kind: "Input";
|
|
@@ -252,9 +252,9 @@ export declare const SplitCoinsCommand: Struct<{
|
|
|
252
252
|
kind: "Result";
|
|
253
253
|
index: number;
|
|
254
254
|
} | {
|
|
255
|
+
resultIndex: number;
|
|
255
256
|
kind: "NestedResult";
|
|
256
257
|
index: number;
|
|
257
|
-
resultIndex: number;
|
|
258
258
|
})[], Struct<{
|
|
259
259
|
kind: "Input";
|
|
260
260
|
index: number;
|
|
@@ -266,13 +266,13 @@ export declare const SplitCoinsCommand: Struct<{
|
|
|
266
266
|
kind: "Result";
|
|
267
267
|
index: number;
|
|
268
268
|
} | {
|
|
269
|
+
resultIndex: number;
|
|
269
270
|
kind: "NestedResult";
|
|
270
271
|
index: number;
|
|
271
|
-
resultIndex: number;
|
|
272
272
|
}, null>>;
|
|
273
273
|
}>;
|
|
274
|
-
export
|
|
275
|
-
export declare const
|
|
274
|
+
export type SplitCoinsTransaction = Infer<typeof SplitCoinsTransaction>;
|
|
275
|
+
export declare const MergeCoinsTransaction: Struct<{
|
|
276
276
|
kind: "MergeCoins";
|
|
277
277
|
destination: {
|
|
278
278
|
kind: "Input";
|
|
@@ -285,9 +285,9 @@ export declare const MergeCoinsCommand: Struct<{
|
|
|
285
285
|
kind: "Result";
|
|
286
286
|
index: number;
|
|
287
287
|
} | {
|
|
288
|
+
resultIndex: number;
|
|
288
289
|
kind: "NestedResult";
|
|
289
290
|
index: number;
|
|
290
|
-
resultIndex: number;
|
|
291
291
|
};
|
|
292
292
|
sources: ({
|
|
293
293
|
kind: "Input";
|
|
@@ -300,9 +300,9 @@ export declare const MergeCoinsCommand: Struct<{
|
|
|
300
300
|
kind: "Result";
|
|
301
301
|
index: number;
|
|
302
302
|
} | {
|
|
303
|
+
resultIndex: number;
|
|
303
304
|
kind: "NestedResult";
|
|
304
305
|
index: number;
|
|
305
|
-
resultIndex: number;
|
|
306
306
|
})[];
|
|
307
307
|
}, {
|
|
308
308
|
kind: Struct<"MergeCoins", "MergeCoins">;
|
|
@@ -317,9 +317,9 @@ export declare const MergeCoinsCommand: Struct<{
|
|
|
317
317
|
kind: "Result";
|
|
318
318
|
index: number;
|
|
319
319
|
} | {
|
|
320
|
+
resultIndex: number;
|
|
320
321
|
kind: "NestedResult";
|
|
321
322
|
index: number;
|
|
322
|
-
resultIndex: number;
|
|
323
323
|
}, null>;
|
|
324
324
|
sources: Struct<({
|
|
325
325
|
kind: "Input";
|
|
@@ -332,9 +332,9 @@ export declare const MergeCoinsCommand: Struct<{
|
|
|
332
332
|
kind: "Result";
|
|
333
333
|
index: number;
|
|
334
334
|
} | {
|
|
335
|
+
resultIndex: number;
|
|
335
336
|
kind: "NestedResult";
|
|
336
337
|
index: number;
|
|
337
|
-
resultIndex: number;
|
|
338
338
|
})[], Struct<{
|
|
339
339
|
kind: "Input";
|
|
340
340
|
index: number;
|
|
@@ -346,14 +346,13 @@ export declare const MergeCoinsCommand: Struct<{
|
|
|
346
346
|
kind: "Result";
|
|
347
347
|
index: number;
|
|
348
348
|
} | {
|
|
349
|
+
resultIndex: number;
|
|
349
350
|
kind: "NestedResult";
|
|
350
351
|
index: number;
|
|
351
|
-
resultIndex: number;
|
|
352
352
|
}, null>>;
|
|
353
353
|
}>;
|
|
354
|
-
export
|
|
355
|
-
export declare const
|
|
356
|
-
kind: "MakeMoveVec";
|
|
354
|
+
export type MergeCoinsTransaction = Infer<typeof MergeCoinsTransaction>;
|
|
355
|
+
export declare const MakeMoveVecTransaction: Struct<{
|
|
357
356
|
objects: ({
|
|
358
357
|
kind: "Input";
|
|
359
358
|
index: number;
|
|
@@ -365,10 +364,11 @@ export declare const MakeMoveVecCommand: Struct<{
|
|
|
365
364
|
kind: "Result";
|
|
366
365
|
index: number;
|
|
367
366
|
} | {
|
|
367
|
+
resultIndex: number;
|
|
368
368
|
kind: "NestedResult";
|
|
369
369
|
index: number;
|
|
370
|
-
resultIndex: number;
|
|
371
370
|
})[];
|
|
371
|
+
kind: "MakeMoveVec";
|
|
372
372
|
type?: {
|
|
373
373
|
None: null;
|
|
374
374
|
} | {
|
|
@@ -392,9 +392,9 @@ export declare const MakeMoveVecCommand: Struct<{
|
|
|
392
392
|
kind: "Result";
|
|
393
393
|
index: number;
|
|
394
394
|
} | {
|
|
395
|
+
resultIndex: number;
|
|
395
396
|
kind: "NestedResult";
|
|
396
397
|
index: number;
|
|
397
|
-
resultIndex: number;
|
|
398
398
|
})[], Struct<{
|
|
399
399
|
kind: "Input";
|
|
400
400
|
index: number;
|
|
@@ -406,13 +406,13 @@ export declare const MakeMoveVecCommand: Struct<{
|
|
|
406
406
|
kind: "Result";
|
|
407
407
|
index: number;
|
|
408
408
|
} | {
|
|
409
|
+
resultIndex: number;
|
|
409
410
|
kind: "NestedResult";
|
|
410
411
|
index: number;
|
|
411
|
-
resultIndex: number;
|
|
412
412
|
}, null>>;
|
|
413
413
|
}>;
|
|
414
|
-
export
|
|
415
|
-
export declare const
|
|
414
|
+
export type MakeMoveVecTransaction = Infer<typeof MakeMoveVecTransaction>;
|
|
415
|
+
export declare const PublishTransaction: Struct<{
|
|
416
416
|
kind: "Publish";
|
|
417
417
|
modules: number[][];
|
|
418
418
|
dependencies: string[];
|
|
@@ -421,11 +421,9 @@ export declare const PublishCommand: Struct<{
|
|
|
421
421
|
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
422
422
|
dependencies: Struct<string[], Struct<string, null>>;
|
|
423
423
|
}>;
|
|
424
|
-
export
|
|
425
|
-
export declare const
|
|
426
|
-
kind: "MoveCall";
|
|
424
|
+
export type PublishTransaction = Infer<typeof PublishTransaction>;
|
|
425
|
+
export declare const TransactionType: Struct<{
|
|
427
426
|
target: `${string}::${string}::${string}`;
|
|
428
|
-
typeArguments: string[];
|
|
429
427
|
arguments: ({
|
|
430
428
|
kind: "Input";
|
|
431
429
|
index: number;
|
|
@@ -437,12 +435,13 @@ export declare const TransactionCommand: Struct<{
|
|
|
437
435
|
kind: "Result";
|
|
438
436
|
index: number;
|
|
439
437
|
} | {
|
|
438
|
+
resultIndex: number;
|
|
440
439
|
kind: "NestedResult";
|
|
441
440
|
index: number;
|
|
442
|
-
resultIndex: number;
|
|
443
441
|
})[];
|
|
442
|
+
kind: "MoveCall";
|
|
443
|
+
typeArguments: string[];
|
|
444
444
|
} | {
|
|
445
|
-
kind: "TransferObjects";
|
|
446
445
|
objects: ({
|
|
447
446
|
kind: "Input";
|
|
448
447
|
index: number;
|
|
@@ -454,10 +453,11 @@ export declare const TransactionCommand: Struct<{
|
|
|
454
453
|
kind: "Result";
|
|
455
454
|
index: number;
|
|
456
455
|
} | {
|
|
456
|
+
resultIndex: number;
|
|
457
457
|
kind: "NestedResult";
|
|
458
458
|
index: number;
|
|
459
|
-
resultIndex: number;
|
|
460
459
|
})[];
|
|
460
|
+
kind: "TransferObjects";
|
|
461
461
|
address: {
|
|
462
462
|
kind: "Input";
|
|
463
463
|
index: number;
|
|
@@ -469,12 +469,11 @@ export declare const TransactionCommand: Struct<{
|
|
|
469
469
|
kind: "Result";
|
|
470
470
|
index: number;
|
|
471
471
|
} | {
|
|
472
|
+
resultIndex: number;
|
|
472
473
|
kind: "NestedResult";
|
|
473
474
|
index: number;
|
|
474
|
-
resultIndex: number;
|
|
475
475
|
};
|
|
476
476
|
} | {
|
|
477
|
-
kind: "SplitCoins";
|
|
478
477
|
coin: {
|
|
479
478
|
kind: "Input";
|
|
480
479
|
index: number;
|
|
@@ -486,10 +485,11 @@ export declare const TransactionCommand: Struct<{
|
|
|
486
485
|
kind: "Result";
|
|
487
486
|
index: number;
|
|
488
487
|
} | {
|
|
488
|
+
resultIndex: number;
|
|
489
489
|
kind: "NestedResult";
|
|
490
490
|
index: number;
|
|
491
|
-
resultIndex: number;
|
|
492
491
|
};
|
|
492
|
+
kind: "SplitCoins";
|
|
493
493
|
amounts: ({
|
|
494
494
|
kind: "Input";
|
|
495
495
|
index: number;
|
|
@@ -501,9 +501,9 @@ export declare const TransactionCommand: Struct<{
|
|
|
501
501
|
kind: "Result";
|
|
502
502
|
index: number;
|
|
503
503
|
} | {
|
|
504
|
+
resultIndex: number;
|
|
504
505
|
kind: "NestedResult";
|
|
505
506
|
index: number;
|
|
506
|
-
resultIndex: number;
|
|
507
507
|
})[];
|
|
508
508
|
} | {
|
|
509
509
|
kind: "MergeCoins";
|
|
@@ -518,9 +518,9 @@ export declare const TransactionCommand: Struct<{
|
|
|
518
518
|
kind: "Result";
|
|
519
519
|
index: number;
|
|
520
520
|
} | {
|
|
521
|
+
resultIndex: number;
|
|
521
522
|
kind: "NestedResult";
|
|
522
523
|
index: number;
|
|
523
|
-
resultIndex: number;
|
|
524
524
|
};
|
|
525
525
|
sources: ({
|
|
526
526
|
kind: "Input";
|
|
@@ -533,16 +533,15 @@ export declare const TransactionCommand: Struct<{
|
|
|
533
533
|
kind: "Result";
|
|
534
534
|
index: number;
|
|
535
535
|
} | {
|
|
536
|
+
resultIndex: number;
|
|
536
537
|
kind: "NestedResult";
|
|
537
538
|
index: number;
|
|
538
|
-
resultIndex: number;
|
|
539
539
|
})[];
|
|
540
540
|
} | {
|
|
541
541
|
kind: "Publish";
|
|
542
542
|
modules: number[][];
|
|
543
543
|
dependencies: string[];
|
|
544
544
|
} | {
|
|
545
|
-
kind: "MakeMoveVec";
|
|
546
545
|
objects: ({
|
|
547
546
|
kind: "Input";
|
|
548
547
|
index: number;
|
|
@@ -554,21 +553,20 @@ export declare const TransactionCommand: Struct<{
|
|
|
554
553
|
kind: "Result";
|
|
555
554
|
index: number;
|
|
556
555
|
} | {
|
|
556
|
+
resultIndex: number;
|
|
557
557
|
kind: "NestedResult";
|
|
558
558
|
index: number;
|
|
559
|
-
resultIndex: number;
|
|
560
559
|
})[];
|
|
560
|
+
kind: "MakeMoveVec";
|
|
561
561
|
type?: {
|
|
562
562
|
None: null;
|
|
563
563
|
} | {
|
|
564
564
|
Some: string;
|
|
565
565
|
} | undefined;
|
|
566
566
|
}, null>;
|
|
567
|
-
export
|
|
568
|
-
export declare function
|
|
569
|
-
kind: "MoveCall";
|
|
567
|
+
export type TransactionType = Infer<typeof TransactionType>;
|
|
568
|
+
export declare function getTransactionType(data: unknown): Struct<{
|
|
570
569
|
target: `${string}::${string}::${string}`;
|
|
571
|
-
typeArguments: string[];
|
|
572
570
|
arguments: ({
|
|
573
571
|
kind: "Input";
|
|
574
572
|
index: number;
|
|
@@ -580,10 +578,12 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
580
578
|
kind: "Result";
|
|
581
579
|
index: number;
|
|
582
580
|
} | {
|
|
581
|
+
resultIndex: number;
|
|
583
582
|
kind: "NestedResult";
|
|
584
583
|
index: number;
|
|
585
|
-
resultIndex: number;
|
|
586
584
|
})[];
|
|
585
|
+
kind: "MoveCall";
|
|
586
|
+
typeArguments: string[];
|
|
587
587
|
}, {
|
|
588
588
|
kind: Struct<"MoveCall", "MoveCall">;
|
|
589
589
|
target: Struct<`${string}::${string}::${string}`, null>;
|
|
@@ -599,9 +599,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
599
599
|
kind: "Result";
|
|
600
600
|
index: number;
|
|
601
601
|
} | {
|
|
602
|
+
resultIndex: number;
|
|
602
603
|
kind: "NestedResult";
|
|
603
604
|
index: number;
|
|
604
|
-
resultIndex: number;
|
|
605
605
|
})[], Struct<{
|
|
606
606
|
kind: "Input";
|
|
607
607
|
index: number;
|
|
@@ -613,12 +613,11 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
613
613
|
kind: "Result";
|
|
614
614
|
index: number;
|
|
615
615
|
} | {
|
|
616
|
+
resultIndex: number;
|
|
616
617
|
kind: "NestedResult";
|
|
617
618
|
index: number;
|
|
618
|
-
resultIndex: number;
|
|
619
619
|
}, null>>;
|
|
620
620
|
}> | Struct<{
|
|
621
|
-
kind: "TransferObjects";
|
|
622
621
|
objects: ({
|
|
623
622
|
kind: "Input";
|
|
624
623
|
index: number;
|
|
@@ -630,10 +629,11 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
630
629
|
kind: "Result";
|
|
631
630
|
index: number;
|
|
632
631
|
} | {
|
|
632
|
+
resultIndex: number;
|
|
633
633
|
kind: "NestedResult";
|
|
634
634
|
index: number;
|
|
635
|
-
resultIndex: number;
|
|
636
635
|
})[];
|
|
636
|
+
kind: "TransferObjects";
|
|
637
637
|
address: {
|
|
638
638
|
kind: "Input";
|
|
639
639
|
index: number;
|
|
@@ -645,9 +645,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
645
645
|
kind: "Result";
|
|
646
646
|
index: number;
|
|
647
647
|
} | {
|
|
648
|
+
resultIndex: number;
|
|
648
649
|
kind: "NestedResult";
|
|
649
650
|
index: number;
|
|
650
|
-
resultIndex: number;
|
|
651
651
|
};
|
|
652
652
|
}, {
|
|
653
653
|
kind: Struct<"TransferObjects", "TransferObjects">;
|
|
@@ -662,9 +662,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
662
662
|
kind: "Result";
|
|
663
663
|
index: number;
|
|
664
664
|
} | {
|
|
665
|
+
resultIndex: number;
|
|
665
666
|
kind: "NestedResult";
|
|
666
667
|
index: number;
|
|
667
|
-
resultIndex: number;
|
|
668
668
|
})[], Struct<{
|
|
669
669
|
kind: "Input";
|
|
670
670
|
index: number;
|
|
@@ -676,9 +676,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
676
676
|
kind: "Result";
|
|
677
677
|
index: number;
|
|
678
678
|
} | {
|
|
679
|
+
resultIndex: number;
|
|
679
680
|
kind: "NestedResult";
|
|
680
681
|
index: number;
|
|
681
|
-
resultIndex: number;
|
|
682
682
|
}, null>>;
|
|
683
683
|
address: Struct<{
|
|
684
684
|
kind: "Input";
|
|
@@ -691,12 +691,11 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
691
691
|
kind: "Result";
|
|
692
692
|
index: number;
|
|
693
693
|
} | {
|
|
694
|
+
resultIndex: number;
|
|
694
695
|
kind: "NestedResult";
|
|
695
696
|
index: number;
|
|
696
|
-
resultIndex: number;
|
|
697
697
|
}, null>;
|
|
698
698
|
}> | Struct<{
|
|
699
|
-
kind: "SplitCoins";
|
|
700
699
|
coin: {
|
|
701
700
|
kind: "Input";
|
|
702
701
|
index: number;
|
|
@@ -708,10 +707,11 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
708
707
|
kind: "Result";
|
|
709
708
|
index: number;
|
|
710
709
|
} | {
|
|
710
|
+
resultIndex: number;
|
|
711
711
|
kind: "NestedResult";
|
|
712
712
|
index: number;
|
|
713
|
-
resultIndex: number;
|
|
714
713
|
};
|
|
714
|
+
kind: "SplitCoins";
|
|
715
715
|
amounts: ({
|
|
716
716
|
kind: "Input";
|
|
717
717
|
index: number;
|
|
@@ -723,9 +723,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
723
723
|
kind: "Result";
|
|
724
724
|
index: number;
|
|
725
725
|
} | {
|
|
726
|
+
resultIndex: number;
|
|
726
727
|
kind: "NestedResult";
|
|
727
728
|
index: number;
|
|
728
|
-
resultIndex: number;
|
|
729
729
|
})[];
|
|
730
730
|
}, {
|
|
731
731
|
kind: Struct<"SplitCoins", "SplitCoins">;
|
|
@@ -740,9 +740,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
740
740
|
kind: "Result";
|
|
741
741
|
index: number;
|
|
742
742
|
} | {
|
|
743
|
+
resultIndex: number;
|
|
743
744
|
kind: "NestedResult";
|
|
744
745
|
index: number;
|
|
745
|
-
resultIndex: number;
|
|
746
746
|
}, null>;
|
|
747
747
|
amounts: Struct<({
|
|
748
748
|
kind: "Input";
|
|
@@ -755,9 +755,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
755
755
|
kind: "Result";
|
|
756
756
|
index: number;
|
|
757
757
|
} | {
|
|
758
|
+
resultIndex: number;
|
|
758
759
|
kind: "NestedResult";
|
|
759
760
|
index: number;
|
|
760
|
-
resultIndex: number;
|
|
761
761
|
})[], Struct<{
|
|
762
762
|
kind: "Input";
|
|
763
763
|
index: number;
|
|
@@ -769,9 +769,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
769
769
|
kind: "Result";
|
|
770
770
|
index: number;
|
|
771
771
|
} | {
|
|
772
|
+
resultIndex: number;
|
|
772
773
|
kind: "NestedResult";
|
|
773
774
|
index: number;
|
|
774
|
-
resultIndex: number;
|
|
775
775
|
}, null>>;
|
|
776
776
|
}> | Struct<{
|
|
777
777
|
kind: "MergeCoins";
|
|
@@ -786,9 +786,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
786
786
|
kind: "Result";
|
|
787
787
|
index: number;
|
|
788
788
|
} | {
|
|
789
|
+
resultIndex: number;
|
|
789
790
|
kind: "NestedResult";
|
|
790
791
|
index: number;
|
|
791
|
-
resultIndex: number;
|
|
792
792
|
};
|
|
793
793
|
sources: ({
|
|
794
794
|
kind: "Input";
|
|
@@ -801,9 +801,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
801
801
|
kind: "Result";
|
|
802
802
|
index: number;
|
|
803
803
|
} | {
|
|
804
|
+
resultIndex: number;
|
|
804
805
|
kind: "NestedResult";
|
|
805
806
|
index: number;
|
|
806
|
-
resultIndex: number;
|
|
807
807
|
})[];
|
|
808
808
|
}, {
|
|
809
809
|
kind: Struct<"MergeCoins", "MergeCoins">;
|
|
@@ -818,9 +818,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
818
818
|
kind: "Result";
|
|
819
819
|
index: number;
|
|
820
820
|
} | {
|
|
821
|
+
resultIndex: number;
|
|
821
822
|
kind: "NestedResult";
|
|
822
823
|
index: number;
|
|
823
|
-
resultIndex: number;
|
|
824
824
|
}, null>;
|
|
825
825
|
sources: Struct<({
|
|
826
826
|
kind: "Input";
|
|
@@ -833,9 +833,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
833
833
|
kind: "Result";
|
|
834
834
|
index: number;
|
|
835
835
|
} | {
|
|
836
|
+
resultIndex: number;
|
|
836
837
|
kind: "NestedResult";
|
|
837
838
|
index: number;
|
|
838
|
-
resultIndex: number;
|
|
839
839
|
})[], Struct<{
|
|
840
840
|
kind: "Input";
|
|
841
841
|
index: number;
|
|
@@ -847,9 +847,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
847
847
|
kind: "Result";
|
|
848
848
|
index: number;
|
|
849
849
|
} | {
|
|
850
|
+
resultIndex: number;
|
|
850
851
|
kind: "NestedResult";
|
|
851
852
|
index: number;
|
|
852
|
-
resultIndex: number;
|
|
853
853
|
}, null>>;
|
|
854
854
|
}> | Struct<{
|
|
855
855
|
kind: "Publish";
|
|
@@ -860,7 +860,6 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
860
860
|
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
861
861
|
dependencies: Struct<string[], Struct<string, null>>;
|
|
862
862
|
}> | Struct<{
|
|
863
|
-
kind: "MakeMoveVec";
|
|
864
863
|
objects: ({
|
|
865
864
|
kind: "Input";
|
|
866
865
|
index: number;
|
|
@@ -872,10 +871,11 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
872
871
|
kind: "Result";
|
|
873
872
|
index: number;
|
|
874
873
|
} | {
|
|
874
|
+
resultIndex: number;
|
|
875
875
|
kind: "NestedResult";
|
|
876
876
|
index: number;
|
|
877
|
-
resultIndex: number;
|
|
878
877
|
})[];
|
|
878
|
+
kind: "MakeMoveVec";
|
|
879
879
|
type?: {
|
|
880
880
|
None: null;
|
|
881
881
|
} | {
|
|
@@ -899,9 +899,9 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
899
899
|
kind: "Result";
|
|
900
900
|
index: number;
|
|
901
901
|
} | {
|
|
902
|
+
resultIndex: number;
|
|
902
903
|
kind: "NestedResult";
|
|
903
904
|
index: number;
|
|
904
|
-
resultIndex: number;
|
|
905
905
|
})[], Struct<{
|
|
906
906
|
kind: "Input";
|
|
907
907
|
index: number;
|
|
@@ -913,80 +913,25 @@ export declare function getTransactionCommandType(data: unknown): Struct<{
|
|
|
913
913
|
kind: "Result";
|
|
914
914
|
index: number;
|
|
915
915
|
} | {
|
|
916
|
+
resultIndex: number;
|
|
916
917
|
kind: "NestedResult";
|
|
917
918
|
index: number;
|
|
918
|
-
resultIndex: number;
|
|
919
919
|
}, null>>;
|
|
920
920
|
}>;
|
|
921
921
|
/**
|
|
922
|
-
* Simple helpers used to construct
|
|
922
|
+
* Simple helpers used to construct transactions:
|
|
923
923
|
*/
|
|
924
|
-
export declare const
|
|
925
|
-
MoveCall(input: Omit<{
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
} | {
|
|
937
|
-
kind: "Result";
|
|
938
|
-
index: number;
|
|
939
|
-
} | {
|
|
940
|
-
kind: "NestedResult";
|
|
941
|
-
index: number;
|
|
942
|
-
resultIndex: number;
|
|
943
|
-
})[];
|
|
944
|
-
}, "kind" | "typeArguments" | "arguments"> & {
|
|
945
|
-
arguments?: ({
|
|
946
|
-
kind: "Input";
|
|
947
|
-
index: number;
|
|
948
|
-
value?: any;
|
|
949
|
-
type?: "object" | "pure" | undefined;
|
|
950
|
-
} | {
|
|
951
|
-
kind: "GasCoin";
|
|
952
|
-
} | {
|
|
953
|
-
kind: "Result";
|
|
954
|
-
index: number;
|
|
955
|
-
} | {
|
|
956
|
-
kind: "NestedResult";
|
|
957
|
-
index: number;
|
|
958
|
-
resultIndex: number;
|
|
959
|
-
})[] | undefined;
|
|
960
|
-
typeArguments?: string[] | undefined;
|
|
961
|
-
}): MoveCallCommand;
|
|
962
|
-
TransferObjects(objects: CommandArgument[], address: CommandArgument): TransferObjectsCommand;
|
|
963
|
-
SplitCoins(coin: CommandArgument, amounts: CommandArgument[]): SplitCoinsCommand;
|
|
964
|
-
MergeCoins(destination: CommandArgument, sources: CommandArgument[]): MergeCoinsCommand;
|
|
965
|
-
Publish(modules: number[][], dependencies: ObjectId[]): PublishCommand;
|
|
966
|
-
MakeMoveVec({ type, objects, }: Omit<{
|
|
967
|
-
kind: "MakeMoveVec";
|
|
968
|
-
objects: ({
|
|
969
|
-
kind: "Input";
|
|
970
|
-
index: number;
|
|
971
|
-
value?: any;
|
|
972
|
-
type?: "object" | "pure" | undefined;
|
|
973
|
-
} | {
|
|
974
|
-
kind: "GasCoin";
|
|
975
|
-
} | {
|
|
976
|
-
kind: "Result";
|
|
977
|
-
index: number;
|
|
978
|
-
} | {
|
|
979
|
-
kind: "NestedResult";
|
|
980
|
-
index: number;
|
|
981
|
-
resultIndex: number;
|
|
982
|
-
})[];
|
|
983
|
-
type?: {
|
|
984
|
-
None: null;
|
|
985
|
-
} | {
|
|
986
|
-
Some: string;
|
|
987
|
-
} | undefined;
|
|
988
|
-
}, "kind" | "type"> & {
|
|
989
|
-
type?: string | undefined;
|
|
990
|
-
}): MakeMoveVecCommand;
|
|
924
|
+
export declare const Transactions: {
|
|
925
|
+
MoveCall(input: Omit<MoveCallTransaction, "kind" | "arguments" | "typeArguments"> & {
|
|
926
|
+
arguments?: TransactionArgument[];
|
|
927
|
+
typeArguments?: string[];
|
|
928
|
+
}): MoveCallTransaction;
|
|
929
|
+
TransferObjects(objects: TransactionArgument[], address: TransactionArgument): TransferObjectsTransaction;
|
|
930
|
+
SplitCoins(coin: TransactionArgument, amounts: TransactionArgument[]): SplitCoinsTransaction;
|
|
931
|
+
MergeCoins(destination: TransactionArgument, sources: TransactionArgument[]): MergeCoinsTransaction;
|
|
932
|
+
Publish(modules: number[][], dependencies: ObjectId[]): PublishTransaction;
|
|
933
|
+
MakeMoveVec({ type, objects, }: Omit<MakeMoveVecTransaction, "kind" | "type"> & {
|
|
934
|
+
type?: string;
|
|
935
|
+
}): MakeMoveVecTransaction;
|
|
991
936
|
};
|
|
992
|
-
//# sourceMappingURL=
|
|
937
|
+
//# sourceMappingURL=Transactions.d.ts.map
|