@bitgo-beta/sdk-coin-sui 3.0.3-beta.98 → 3.0.3-beta.981
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/CHANGELOG.md +817 -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.js +2 -3
- package/dist/src/lib/constants.d.ts +9 -2
- package/dist/src/lib/constants.d.ts.map +1 -1
- package/dist/src/lib/constants.js +18 -2
- 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 +76 -10
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +40 -5
- package/dist/src/lib/index.d.ts +8 -0
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/index.js +40 -10
- package/dist/src/lib/keyPair.js +24 -10
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts +9 -9
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/Inputs.js +18 -19
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts +40 -354
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/TransactionBlock.js +22 -25
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts +74 -74
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.js +41 -44
- package/dist/src/lib/mystenlab/builder/Transactions.d.ts +133 -188
- package/dist/src/lib/mystenlab/builder/Transactions.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/Transactions.js +52 -53
- package/dist/src/lib/mystenlab/builder/bcs.d.ts +1 -1
- package/dist/src/lib/mystenlab/builder/bcs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/bcs.js +2 -2
- package/dist/src/lib/mystenlab/builder/index.js +6 -2
- package/dist/src/lib/mystenlab/builder/serializer.js +6 -8
- package/dist/src/lib/mystenlab/builder/utils.d.ts +1 -1
- package/dist/src/lib/mystenlab/builder/utils.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/utils.js +4 -4
- package/dist/src/lib/mystenlab/cryptography/hash.js +3 -4
- package/dist/src/lib/mystenlab/framework/framework.d.ts +6 -6
- package/dist/src/lib/mystenlab/framework/framework.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/framework/framework.js +22 -25
- package/dist/src/lib/mystenlab/framework/index.js +6 -2
- package/dist/src/lib/mystenlab/framework/sui-system-state.js +2 -2
- package/dist/src/lib/mystenlab/txn-data-serializers/type-tag-serializer.js +2 -2
- 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.js +6 -2
- 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 +41 -41
- package/dist/src/lib/mystenlab/types/objects.d.ts +51 -51
- package/dist/src/lib/mystenlab/types/objects.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/objects.js +96 -106
- 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 +8 -8
- package/dist/src/lib/mystenlab/types/sui-bcs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/sui-bcs.js +5 -5
- package/dist/src/lib/mystenlab/types/transactions.d.ts +625 -625
- package/dist/src/lib/mystenlab/types/transactions.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/transactions.js +178 -194
- package/dist/src/lib/mystenlab/types/validator.d.ts +9 -9
- package/dist/src/lib/mystenlab/types/validator.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/validator.js +124 -124
- 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.map +1 -1
- package/dist/src/lib/stakingBuilder.js +23 -7
- package/dist/src/lib/stakingTransaction.d.ts +1 -1
- package/dist/src/lib/stakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/stakingTransaction.js +26 -15
- 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 +12 -4
- package/dist/src/lib/transaction.d.ts.map +1 -1
- package/dist/src/lib/transaction.js +91 -18
- 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 +14 -2
- package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilderFactory.js +42 -1
- package/dist/src/lib/transferBuilder.d.ts.map +1 -1
- package/dist/src/lib/transferBuilder.js +21 -5
- 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 +31 -8
- package/dist/src/lib/unstakingBuilder.js +6 -6
- package/dist/src/lib/unstakingTransaction.d.ts +1 -1
- package/dist/src/lib/unstakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/unstakingTransaction.js +31 -17
- package/dist/src/lib/utils.d.ts +16 -4
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +269 -29
- 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 +190 -0
- package/dist/src/register.d.ts.map +1 -1
- package/dist/src/register.js +5 -1
- package/dist/src/sui.d.ts +46 -8
- package/dist/src/sui.d.ts.map +1 -1
- package/dist/src/sui.js +479 -32
- 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 +10 -8
|
@@ -3,79 +3,79 @@ import { ObjectId } from '../types/common';
|
|
|
3
3
|
export declare const TransactionBlockInput: Struct<{
|
|
4
4
|
kind: "Input";
|
|
5
5
|
index: number;
|
|
6
|
-
type?: "object" | "pure" | undefined;
|
|
7
6
|
value?: any;
|
|
7
|
+
type?: "object" | "pure" | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
kind: Struct<"Input", "Input">;
|
|
10
10
|
index: Struct<number, null>;
|
|
11
11
|
value: Struct<any, null>;
|
|
12
12
|
type: Struct<"object" | "pure" | undefined, null>;
|
|
13
13
|
}>;
|
|
14
|
-
export
|
|
14
|
+
export type TransactionBlockInput = Infer<typeof TransactionBlockInput>;
|
|
15
15
|
export declare const TransactionArgument: Struct<{
|
|
16
16
|
kind: "Input";
|
|
17
17
|
index: number;
|
|
18
|
-
type?: "object" | "pure" | undefined;
|
|
19
18
|
value?: any;
|
|
19
|
+
type?: "object" | "pure" | undefined;
|
|
20
20
|
} | {
|
|
21
21
|
kind: "GasCoin";
|
|
22
22
|
} | {
|
|
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
|
|
30
|
+
export type TransactionArgument = Infer<typeof TransactionArgument>;
|
|
31
31
|
export declare const ObjectTransactionArgument: Struct<{
|
|
32
32
|
kind: "Input";
|
|
33
33
|
index: number;
|
|
34
|
-
type?: "object" | "pure" | undefined;
|
|
35
34
|
value?: any;
|
|
35
|
+
type?: "object" | "pure" | undefined;
|
|
36
36
|
} | {
|
|
37
37
|
kind: "GasCoin";
|
|
38
38
|
} | {
|
|
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
46
|
export declare const PureTransactionArgument: (type: string) => Struct<{
|
|
47
47
|
kind: "Input";
|
|
48
48
|
index: number;
|
|
49
|
-
type?: "object" | "pure" | undefined;
|
|
50
49
|
value?: any;
|
|
50
|
+
type?: "object" | "pure" | undefined;
|
|
51
51
|
} | {
|
|
52
52
|
kind: "GasCoin";
|
|
53
53
|
} | {
|
|
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
61
|
export declare const MoveCallTransaction: Struct<{
|
|
62
|
+
target: `${string}::${string}::${string}`;
|
|
62
63
|
arguments: ({
|
|
63
64
|
kind: "Input";
|
|
64
65
|
index: number;
|
|
65
|
-
type?: "object" | "pure" | undefined;
|
|
66
66
|
value?: any;
|
|
67
|
+
type?: "object" | "pure" | undefined;
|
|
67
68
|
} | {
|
|
68
69
|
kind: "GasCoin";
|
|
69
70
|
} | {
|
|
70
71
|
kind: "Result";
|
|
71
72
|
index: number;
|
|
72
73
|
} | {
|
|
74
|
+
resultIndex: number;
|
|
73
75
|
kind: "NestedResult";
|
|
74
76
|
index: number;
|
|
75
|
-
resultIndex: number;
|
|
76
77
|
})[];
|
|
77
78
|
kind: "MoveCall";
|
|
78
|
-
target: `${string}::${string}::${string}`;
|
|
79
79
|
typeArguments: string[];
|
|
80
80
|
}, {
|
|
81
81
|
kind: Struct<"MoveCall", "MoveCall">;
|
|
@@ -84,291 +84,291 @@ export declare const MoveCallTransaction: Struct<{
|
|
|
84
84
|
arguments: Struct<({
|
|
85
85
|
kind: "Input";
|
|
86
86
|
index: number;
|
|
87
|
-
type?: "object" | "pure" | undefined;
|
|
88
87
|
value?: any;
|
|
88
|
+
type?: "object" | "pure" | undefined;
|
|
89
89
|
} | {
|
|
90
90
|
kind: "GasCoin";
|
|
91
91
|
} | {
|
|
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;
|
|
101
|
-
type?: "object" | "pure" | undefined;
|
|
102
101
|
value?: any;
|
|
102
|
+
type?: "object" | "pure" | undefined;
|
|
103
103
|
} | {
|
|
104
104
|
kind: "GasCoin";
|
|
105
105
|
} | {
|
|
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
|
|
114
|
+
export type MoveCallTransaction = Infer<typeof MoveCallTransaction>;
|
|
115
115
|
export declare const TransferObjectsTransaction: Struct<{
|
|
116
|
-
kind: "TransferObjects";
|
|
117
116
|
objects: ({
|
|
118
117
|
kind: "Input";
|
|
119
118
|
index: number;
|
|
120
|
-
type?: "object" | "pure" | undefined;
|
|
121
119
|
value?: any;
|
|
120
|
+
type?: "object" | "pure" | undefined;
|
|
122
121
|
} | {
|
|
123
122
|
kind: "GasCoin";
|
|
124
123
|
} | {
|
|
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;
|
|
135
|
-
type?: "object" | "pure" | undefined;
|
|
136
135
|
value?: any;
|
|
136
|
+
type?: "object" | "pure" | undefined;
|
|
137
137
|
} | {
|
|
138
138
|
kind: "GasCoin";
|
|
139
139
|
} | {
|
|
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">;
|
|
149
149
|
objects: Struct<({
|
|
150
150
|
kind: "Input";
|
|
151
151
|
index: number;
|
|
152
|
-
type?: "object" | "pure" | undefined;
|
|
153
152
|
value?: any;
|
|
153
|
+
type?: "object" | "pure" | undefined;
|
|
154
154
|
} | {
|
|
155
155
|
kind: "GasCoin";
|
|
156
156
|
} | {
|
|
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;
|
|
166
|
-
type?: "object" | "pure" | undefined;
|
|
167
166
|
value?: any;
|
|
167
|
+
type?: "object" | "pure" | undefined;
|
|
168
168
|
} | {
|
|
169
169
|
kind: "GasCoin";
|
|
170
170
|
} | {
|
|
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";
|
|
180
180
|
index: number;
|
|
181
|
-
type?: "object" | "pure" | undefined;
|
|
182
181
|
value?: any;
|
|
182
|
+
type?: "object" | "pure" | undefined;
|
|
183
183
|
} | {
|
|
184
184
|
kind: "GasCoin";
|
|
185
185
|
} | {
|
|
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
|
|
194
|
+
export type TransferObjectsTransaction = Infer<typeof TransferObjectsTransaction>;
|
|
195
195
|
export declare const SplitCoinsTransaction: Struct<{
|
|
196
|
-
kind: "SplitCoins";
|
|
197
196
|
coin: {
|
|
198
197
|
kind: "Input";
|
|
199
198
|
index: number;
|
|
200
|
-
type?: "object" | "pure" | undefined;
|
|
201
199
|
value?: any;
|
|
200
|
+
type?: "object" | "pure" | undefined;
|
|
202
201
|
} | {
|
|
203
202
|
kind: "GasCoin";
|
|
204
203
|
} | {
|
|
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;
|
|
215
|
-
type?: "object" | "pure" | undefined;
|
|
216
215
|
value?: any;
|
|
216
|
+
type?: "object" | "pure" | undefined;
|
|
217
217
|
} | {
|
|
218
218
|
kind: "GasCoin";
|
|
219
219
|
} | {
|
|
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">;
|
|
229
229
|
coin: Struct<{
|
|
230
230
|
kind: "Input";
|
|
231
231
|
index: number;
|
|
232
|
-
type?: "object" | "pure" | undefined;
|
|
233
232
|
value?: any;
|
|
233
|
+
type?: "object" | "pure" | undefined;
|
|
234
234
|
} | {
|
|
235
235
|
kind: "GasCoin";
|
|
236
236
|
} | {
|
|
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";
|
|
246
246
|
index: number;
|
|
247
|
-
type?: "object" | "pure" | undefined;
|
|
248
247
|
value?: any;
|
|
248
|
+
type?: "object" | "pure" | undefined;
|
|
249
249
|
} | {
|
|
250
250
|
kind: "GasCoin";
|
|
251
251
|
} | {
|
|
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;
|
|
261
|
-
type?: "object" | "pure" | undefined;
|
|
262
261
|
value?: any;
|
|
262
|
+
type?: "object" | "pure" | undefined;
|
|
263
263
|
} | {
|
|
264
264
|
kind: "GasCoin";
|
|
265
265
|
} | {
|
|
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
|
|
274
|
+
export type SplitCoinsTransaction = Infer<typeof SplitCoinsTransaction>;
|
|
275
275
|
export declare const MergeCoinsTransaction: Struct<{
|
|
276
276
|
kind: "MergeCoins";
|
|
277
277
|
destination: {
|
|
278
278
|
kind: "Input";
|
|
279
279
|
index: number;
|
|
280
|
-
type?: "object" | "pure" | undefined;
|
|
281
280
|
value?: any;
|
|
281
|
+
type?: "object" | "pure" | undefined;
|
|
282
282
|
} | {
|
|
283
283
|
kind: "GasCoin";
|
|
284
284
|
} | {
|
|
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";
|
|
294
294
|
index: number;
|
|
295
|
-
type?: "object" | "pure" | undefined;
|
|
296
295
|
value?: any;
|
|
296
|
+
type?: "object" | "pure" | undefined;
|
|
297
297
|
} | {
|
|
298
298
|
kind: "GasCoin";
|
|
299
299
|
} | {
|
|
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">;
|
|
309
309
|
destination: Struct<{
|
|
310
310
|
kind: "Input";
|
|
311
311
|
index: number;
|
|
312
|
-
type?: "object" | "pure" | undefined;
|
|
313
312
|
value?: any;
|
|
313
|
+
type?: "object" | "pure" | undefined;
|
|
314
314
|
} | {
|
|
315
315
|
kind: "GasCoin";
|
|
316
316
|
} | {
|
|
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";
|
|
326
326
|
index: number;
|
|
327
|
-
type?: "object" | "pure" | undefined;
|
|
328
327
|
value?: any;
|
|
328
|
+
type?: "object" | "pure" | undefined;
|
|
329
329
|
} | {
|
|
330
330
|
kind: "GasCoin";
|
|
331
331
|
} | {
|
|
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;
|
|
341
|
-
type?: "object" | "pure" | undefined;
|
|
342
341
|
value?: any;
|
|
342
|
+
type?: "object" | "pure" | undefined;
|
|
343
343
|
} | {
|
|
344
344
|
kind: "GasCoin";
|
|
345
345
|
} | {
|
|
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
|
|
354
|
+
export type MergeCoinsTransaction = Infer<typeof MergeCoinsTransaction>;
|
|
355
355
|
export declare const MakeMoveVecTransaction: Struct<{
|
|
356
|
-
kind: "MakeMoveVec";
|
|
357
356
|
objects: ({
|
|
358
357
|
kind: "Input";
|
|
359
358
|
index: number;
|
|
360
|
-
type?: "object" | "pure" | undefined;
|
|
361
359
|
value?: any;
|
|
360
|
+
type?: "object" | "pure" | undefined;
|
|
362
361
|
} | {
|
|
363
362
|
kind: "GasCoin";
|
|
364
363
|
} | {
|
|
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
|
} | {
|
|
@@ -384,34 +384,34 @@ export declare const MakeMoveVecTransaction: Struct<{
|
|
|
384
384
|
objects: Struct<({
|
|
385
385
|
kind: "Input";
|
|
386
386
|
index: number;
|
|
387
|
-
type?: "object" | "pure" | undefined;
|
|
388
387
|
value?: any;
|
|
388
|
+
type?: "object" | "pure" | undefined;
|
|
389
389
|
} | {
|
|
390
390
|
kind: "GasCoin";
|
|
391
391
|
} | {
|
|
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;
|
|
401
|
-
type?: "object" | "pure" | undefined;
|
|
402
401
|
value?: any;
|
|
402
|
+
type?: "object" | "pure" | undefined;
|
|
403
403
|
} | {
|
|
404
404
|
kind: "GasCoin";
|
|
405
405
|
} | {
|
|
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
|
|
414
|
+
export type MakeMoveVecTransaction = Infer<typeof MakeMoveVecTransaction>;
|
|
415
415
|
export declare const PublishTransaction: Struct<{
|
|
416
416
|
kind: "Publish";
|
|
417
417
|
modules: number[][];
|
|
@@ -421,168 +421,168 @@ export declare const PublishTransaction: Struct<{
|
|
|
421
421
|
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
422
422
|
dependencies: Struct<string[], Struct<string, null>>;
|
|
423
423
|
}>;
|
|
424
|
-
export
|
|
424
|
+
export type PublishTransaction = Infer<typeof PublishTransaction>;
|
|
425
425
|
export declare const TransactionType: Struct<{
|
|
426
|
+
target: `${string}::${string}::${string}`;
|
|
426
427
|
arguments: ({
|
|
427
428
|
kind: "Input";
|
|
428
429
|
index: number;
|
|
429
|
-
type?: "object" | "pure" | undefined;
|
|
430
430
|
value?: any;
|
|
431
|
+
type?: "object" | "pure" | undefined;
|
|
431
432
|
} | {
|
|
432
433
|
kind: "GasCoin";
|
|
433
434
|
} | {
|
|
434
435
|
kind: "Result";
|
|
435
436
|
index: number;
|
|
436
437
|
} | {
|
|
438
|
+
resultIndex: number;
|
|
437
439
|
kind: "NestedResult";
|
|
438
440
|
index: number;
|
|
439
|
-
resultIndex: number;
|
|
440
441
|
})[];
|
|
441
442
|
kind: "MoveCall";
|
|
442
|
-
target: `${string}::${string}::${string}`;
|
|
443
443
|
typeArguments: string[];
|
|
444
444
|
} | {
|
|
445
|
-
kind: "TransferObjects";
|
|
446
445
|
objects: ({
|
|
447
446
|
kind: "Input";
|
|
448
447
|
index: number;
|
|
449
|
-
type?: "object" | "pure" | undefined;
|
|
450
448
|
value?: any;
|
|
449
|
+
type?: "object" | "pure" | undefined;
|
|
451
450
|
} | {
|
|
452
451
|
kind: "GasCoin";
|
|
453
452
|
} | {
|
|
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;
|
|
464
|
-
type?: "object" | "pure" | undefined;
|
|
465
464
|
value?: any;
|
|
465
|
+
type?: "object" | "pure" | undefined;
|
|
466
466
|
} | {
|
|
467
467
|
kind: "GasCoin";
|
|
468
468
|
} | {
|
|
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;
|
|
481
|
-
type?: "object" | "pure" | undefined;
|
|
482
480
|
value?: any;
|
|
481
|
+
type?: "object" | "pure" | undefined;
|
|
483
482
|
} | {
|
|
484
483
|
kind: "GasCoin";
|
|
485
484
|
} | {
|
|
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;
|
|
496
|
-
type?: "object" | "pure" | undefined;
|
|
497
496
|
value?: any;
|
|
497
|
+
type?: "object" | "pure" | undefined;
|
|
498
498
|
} | {
|
|
499
499
|
kind: "GasCoin";
|
|
500
500
|
} | {
|
|
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";
|
|
510
510
|
destination: {
|
|
511
511
|
kind: "Input";
|
|
512
512
|
index: number;
|
|
513
|
-
type?: "object" | "pure" | undefined;
|
|
514
513
|
value?: any;
|
|
514
|
+
type?: "object" | "pure" | undefined;
|
|
515
515
|
} | {
|
|
516
516
|
kind: "GasCoin";
|
|
517
517
|
} | {
|
|
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";
|
|
527
527
|
index: number;
|
|
528
|
-
type?: "object" | "pure" | undefined;
|
|
529
528
|
value?: any;
|
|
529
|
+
type?: "object" | "pure" | undefined;
|
|
530
530
|
} | {
|
|
531
531
|
kind: "GasCoin";
|
|
532
532
|
} | {
|
|
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;
|
|
549
|
-
type?: "object" | "pure" | undefined;
|
|
550
548
|
value?: any;
|
|
549
|
+
type?: "object" | "pure" | undefined;
|
|
551
550
|
} | {
|
|
552
551
|
kind: "GasCoin";
|
|
553
552
|
} | {
|
|
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
|
|
567
|
+
export type TransactionType = Infer<typeof TransactionType>;
|
|
568
568
|
export declare function getTransactionType(data: unknown): Struct<{
|
|
569
|
+
target: `${string}::${string}::${string}`;
|
|
569
570
|
arguments: ({
|
|
570
571
|
kind: "Input";
|
|
571
572
|
index: number;
|
|
572
|
-
type?: "object" | "pure" | undefined;
|
|
573
573
|
value?: any;
|
|
574
|
+
type?: "object" | "pure" | undefined;
|
|
574
575
|
} | {
|
|
575
576
|
kind: "GasCoin";
|
|
576
577
|
} | {
|
|
577
578
|
kind: "Result";
|
|
578
579
|
index: number;
|
|
579
580
|
} | {
|
|
581
|
+
resultIndex: number;
|
|
580
582
|
kind: "NestedResult";
|
|
581
583
|
index: number;
|
|
582
|
-
resultIndex: number;
|
|
583
584
|
})[];
|
|
584
585
|
kind: "MoveCall";
|
|
585
|
-
target: `${string}::${string}::${string}`;
|
|
586
586
|
typeArguments: string[];
|
|
587
587
|
}, {
|
|
588
588
|
kind: Struct<"MoveCall", "MoveCall">;
|
|
@@ -591,265 +591,265 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
591
591
|
arguments: Struct<({
|
|
592
592
|
kind: "Input";
|
|
593
593
|
index: number;
|
|
594
|
-
type?: "object" | "pure" | undefined;
|
|
595
594
|
value?: any;
|
|
595
|
+
type?: "object" | "pure" | undefined;
|
|
596
596
|
} | {
|
|
597
597
|
kind: "GasCoin";
|
|
598
598
|
} | {
|
|
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;
|
|
608
|
-
type?: "object" | "pure" | undefined;
|
|
609
608
|
value?: any;
|
|
609
|
+
type?: "object" | "pure" | undefined;
|
|
610
610
|
} | {
|
|
611
611
|
kind: "GasCoin";
|
|
612
612
|
} | {
|
|
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;
|
|
625
|
-
type?: "object" | "pure" | undefined;
|
|
626
624
|
value?: any;
|
|
625
|
+
type?: "object" | "pure" | undefined;
|
|
627
626
|
} | {
|
|
628
627
|
kind: "GasCoin";
|
|
629
628
|
} | {
|
|
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;
|
|
640
|
-
type?: "object" | "pure" | undefined;
|
|
641
640
|
value?: any;
|
|
641
|
+
type?: "object" | "pure" | undefined;
|
|
642
642
|
} | {
|
|
643
643
|
kind: "GasCoin";
|
|
644
644
|
} | {
|
|
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">;
|
|
654
654
|
objects: Struct<({
|
|
655
655
|
kind: "Input";
|
|
656
656
|
index: number;
|
|
657
|
-
type?: "object" | "pure" | undefined;
|
|
658
657
|
value?: any;
|
|
658
|
+
type?: "object" | "pure" | undefined;
|
|
659
659
|
} | {
|
|
660
660
|
kind: "GasCoin";
|
|
661
661
|
} | {
|
|
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;
|
|
671
|
-
type?: "object" | "pure" | undefined;
|
|
672
671
|
value?: any;
|
|
672
|
+
type?: "object" | "pure" | undefined;
|
|
673
673
|
} | {
|
|
674
674
|
kind: "GasCoin";
|
|
675
675
|
} | {
|
|
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";
|
|
685
685
|
index: number;
|
|
686
|
-
type?: "object" | "pure" | undefined;
|
|
687
686
|
value?: any;
|
|
687
|
+
type?: "object" | "pure" | undefined;
|
|
688
688
|
} | {
|
|
689
689
|
kind: "GasCoin";
|
|
690
690
|
} | {
|
|
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;
|
|
703
|
-
type?: "object" | "pure" | undefined;
|
|
704
702
|
value?: any;
|
|
703
|
+
type?: "object" | "pure" | undefined;
|
|
705
704
|
} | {
|
|
706
705
|
kind: "GasCoin";
|
|
707
706
|
} | {
|
|
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;
|
|
718
|
-
type?: "object" | "pure" | undefined;
|
|
719
718
|
value?: any;
|
|
719
|
+
type?: "object" | "pure" | undefined;
|
|
720
720
|
} | {
|
|
721
721
|
kind: "GasCoin";
|
|
722
722
|
} | {
|
|
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">;
|
|
732
732
|
coin: Struct<{
|
|
733
733
|
kind: "Input";
|
|
734
734
|
index: number;
|
|
735
|
-
type?: "object" | "pure" | undefined;
|
|
736
735
|
value?: any;
|
|
736
|
+
type?: "object" | "pure" | undefined;
|
|
737
737
|
} | {
|
|
738
738
|
kind: "GasCoin";
|
|
739
739
|
} | {
|
|
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";
|
|
749
749
|
index: number;
|
|
750
|
-
type?: "object" | "pure" | undefined;
|
|
751
750
|
value?: any;
|
|
751
|
+
type?: "object" | "pure" | undefined;
|
|
752
752
|
} | {
|
|
753
753
|
kind: "GasCoin";
|
|
754
754
|
} | {
|
|
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;
|
|
764
|
-
type?: "object" | "pure" | undefined;
|
|
765
764
|
value?: any;
|
|
765
|
+
type?: "object" | "pure" | undefined;
|
|
766
766
|
} | {
|
|
767
767
|
kind: "GasCoin";
|
|
768
768
|
} | {
|
|
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";
|
|
778
778
|
destination: {
|
|
779
779
|
kind: "Input";
|
|
780
780
|
index: number;
|
|
781
|
-
type?: "object" | "pure" | undefined;
|
|
782
781
|
value?: any;
|
|
782
|
+
type?: "object" | "pure" | undefined;
|
|
783
783
|
} | {
|
|
784
784
|
kind: "GasCoin";
|
|
785
785
|
} | {
|
|
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";
|
|
795
795
|
index: number;
|
|
796
|
-
type?: "object" | "pure" | undefined;
|
|
797
796
|
value?: any;
|
|
797
|
+
type?: "object" | "pure" | undefined;
|
|
798
798
|
} | {
|
|
799
799
|
kind: "GasCoin";
|
|
800
800
|
} | {
|
|
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">;
|
|
810
810
|
destination: Struct<{
|
|
811
811
|
kind: "Input";
|
|
812
812
|
index: number;
|
|
813
|
-
type?: "object" | "pure" | undefined;
|
|
814
813
|
value?: any;
|
|
814
|
+
type?: "object" | "pure" | undefined;
|
|
815
815
|
} | {
|
|
816
816
|
kind: "GasCoin";
|
|
817
817
|
} | {
|
|
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";
|
|
827
827
|
index: number;
|
|
828
|
-
type?: "object" | "pure" | undefined;
|
|
829
828
|
value?: any;
|
|
829
|
+
type?: "object" | "pure" | undefined;
|
|
830
830
|
} | {
|
|
831
831
|
kind: "GasCoin";
|
|
832
832
|
} | {
|
|
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;
|
|
842
|
-
type?: "object" | "pure" | undefined;
|
|
843
842
|
value?: any;
|
|
843
|
+
type?: "object" | "pure" | undefined;
|
|
844
844
|
} | {
|
|
845
845
|
kind: "GasCoin";
|
|
846
846
|
} | {
|
|
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,22 +860,22 @@ export declare function getTransactionType(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;
|
|
867
|
-
type?: "object" | "pure" | undefined;
|
|
868
866
|
value?: any;
|
|
867
|
+
type?: "object" | "pure" | undefined;
|
|
869
868
|
} | {
|
|
870
869
|
kind: "GasCoin";
|
|
871
870
|
} | {
|
|
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
|
} | {
|
|
@@ -891,102 +891,47 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
891
891
|
objects: Struct<({
|
|
892
892
|
kind: "Input";
|
|
893
893
|
index: number;
|
|
894
|
-
type?: "object" | "pure" | undefined;
|
|
895
894
|
value?: any;
|
|
895
|
+
type?: "object" | "pure" | undefined;
|
|
896
896
|
} | {
|
|
897
897
|
kind: "GasCoin";
|
|
898
898
|
} | {
|
|
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;
|
|
908
|
-
type?: "object" | "pure" | undefined;
|
|
909
908
|
value?: any;
|
|
909
|
+
type?: "object" | "pure" | undefined;
|
|
910
910
|
} | {
|
|
911
911
|
kind: "GasCoin";
|
|
912
912
|
} | {
|
|
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
922
|
* Simple helpers used to construct transactions:
|
|
923
923
|
*/
|
|
924
924
|
export declare const Transactions: {
|
|
925
|
-
MoveCall(input: Omit<{
|
|
926
|
-
arguments
|
|
927
|
-
|
|
928
|
-
index: number;
|
|
929
|
-
type?: "object" | "pure" | undefined;
|
|
930
|
-
value?: any;
|
|
931
|
-
} | {
|
|
932
|
-
kind: "GasCoin";
|
|
933
|
-
} | {
|
|
934
|
-
kind: "Result";
|
|
935
|
-
index: number;
|
|
936
|
-
} | {
|
|
937
|
-
kind: "NestedResult";
|
|
938
|
-
index: number;
|
|
939
|
-
resultIndex: number;
|
|
940
|
-
})[];
|
|
941
|
-
kind: "MoveCall";
|
|
942
|
-
target: `${string}::${string}::${string}`;
|
|
943
|
-
typeArguments: string[];
|
|
944
|
-
}, "arguments" | "kind" | "typeArguments"> & {
|
|
945
|
-
arguments?: ({
|
|
946
|
-
kind: "Input";
|
|
947
|
-
index: number;
|
|
948
|
-
type?: "object" | "pure" | undefined;
|
|
949
|
-
value?: any;
|
|
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;
|
|
925
|
+
MoveCall(input: Omit<MoveCallTransaction, "kind" | "arguments" | "typeArguments"> & {
|
|
926
|
+
arguments?: TransactionArgument[];
|
|
927
|
+
typeArguments?: string[];
|
|
961
928
|
}): MoveCallTransaction;
|
|
962
929
|
TransferObjects(objects: TransactionArgument[], address: TransactionArgument): TransferObjectsTransaction;
|
|
963
930
|
SplitCoins(coin: TransactionArgument, amounts: TransactionArgument[]): SplitCoinsTransaction;
|
|
964
931
|
MergeCoins(destination: TransactionArgument, sources: TransactionArgument[]): MergeCoinsTransaction;
|
|
965
932
|
Publish(modules: number[][], dependencies: ObjectId[]): PublishTransaction;
|
|
966
|
-
MakeMoveVec({ type, objects, }: Omit<{
|
|
967
|
-
|
|
968
|
-
objects: ({
|
|
969
|
-
kind: "Input";
|
|
970
|
-
index: number;
|
|
971
|
-
type?: "object" | "pure" | undefined;
|
|
972
|
-
value?: any;
|
|
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
|
-
}, "type" | "kind"> & {
|
|
989
|
-
type?: string | undefined;
|
|
933
|
+
MakeMoveVec({ type, objects, }: Omit<MakeMoveVecTransaction, "kind" | "type"> & {
|
|
934
|
+
type?: string;
|
|
990
935
|
}): MakeMoveVecTransaction;
|
|
991
936
|
};
|
|
992
937
|
//# sourceMappingURL=Transactions.d.ts.map
|