@bitgo-beta/sdk-coin-sui 1.4.1-alpha.391 → 1.4.1-alpha.392
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/dist/src/lib/mystenlab/builder/Inputs.d.ts +5 -5
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts +29 -29
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts +82 -82
- package/dist/src/lib/mystenlab/builder/Transactions.d.ts +126 -126
- package/dist/src/lib/mystenlab/framework/framework.d.ts +1 -1
- package/dist/src/lib/mystenlab/types/coin.d.ts +14 -14
- package/dist/src/lib/mystenlab/types/events.d.ts +19 -19
- package/dist/src/lib/mystenlab/types/normalized.d.ts +7 -7
- package/dist/src/lib/mystenlab/types/objects.d.ts +113 -113
- package/dist/src/lib/mystenlab/types/transactions.d.ts +736 -736
- package/dist/src/lib/mystenlab/types/validator.d.ts +12 -12
- package/package.json +8 -8
|
@@ -8,9 +8,9 @@ export declare const PureCallArg: import("superstruct").Struct<{
|
|
|
8
8
|
export declare const ObjectCallArg: import("superstruct").Struct<{
|
|
9
9
|
Object: {
|
|
10
10
|
ImmOrOwned: {
|
|
11
|
-
digest: string;
|
|
12
11
|
objectId: string;
|
|
13
12
|
version: string | number;
|
|
13
|
+
digest: string;
|
|
14
14
|
};
|
|
15
15
|
} | {
|
|
16
16
|
Shared: {
|
|
@@ -22,9 +22,9 @@ export declare const ObjectCallArg: import("superstruct").Struct<{
|
|
|
22
22
|
}, {
|
|
23
23
|
Object: import("superstruct").Struct<{
|
|
24
24
|
ImmOrOwned: {
|
|
25
|
-
digest: string;
|
|
26
25
|
objectId: string;
|
|
27
26
|
version: string | number;
|
|
27
|
+
digest: string;
|
|
28
28
|
};
|
|
29
29
|
} | {
|
|
30
30
|
Shared: {
|
|
@@ -37,11 +37,13 @@ export declare const ObjectCallArg: import("superstruct").Struct<{
|
|
|
37
37
|
export type PureCallArg = Infer<typeof PureCallArg>;
|
|
38
38
|
export type ObjectCallArg = Infer<typeof ObjectCallArg>;
|
|
39
39
|
export declare const BuilderCallArg: import("superstruct").Struct<{
|
|
40
|
+
Pure: number[];
|
|
41
|
+
} | {
|
|
40
42
|
Object: {
|
|
41
43
|
ImmOrOwned: {
|
|
42
|
-
digest: string;
|
|
43
44
|
objectId: string;
|
|
44
45
|
version: string | number;
|
|
46
|
+
digest: string;
|
|
45
47
|
};
|
|
46
48
|
} | {
|
|
47
49
|
Shared: {
|
|
@@ -50,8 +52,6 @@ export declare const BuilderCallArg: import("superstruct").Struct<{
|
|
|
50
52
|
mutable: boolean;
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
|
-
} | {
|
|
54
|
-
Pure: number[];
|
|
55
55
|
}, null>;
|
|
56
56
|
export type BuilderCallArg = Infer<typeof BuilderCallArg>;
|
|
57
57
|
export declare const Inputs: {
|
|
@@ -61,139 +61,135 @@ export declare class TransactionBlock {
|
|
|
61
61
|
get blockData(): {
|
|
62
62
|
version: 1;
|
|
63
63
|
transactions: ({
|
|
64
|
-
target: `${string}::${string}::${string}`;
|
|
65
64
|
arguments: ({
|
|
66
65
|
kind: "Input";
|
|
67
66
|
index: number;
|
|
68
|
-
value?: any;
|
|
69
67
|
type?: "object" | "pure" | undefined;
|
|
68
|
+
value?: any;
|
|
70
69
|
} | {
|
|
71
70
|
kind: "GasCoin";
|
|
72
71
|
} | {
|
|
73
72
|
kind: "Result";
|
|
74
73
|
index: number;
|
|
75
74
|
} | {
|
|
76
|
-
resultIndex: number;
|
|
77
75
|
kind: "NestedResult";
|
|
78
76
|
index: number;
|
|
77
|
+
resultIndex: number;
|
|
79
78
|
})[];
|
|
80
79
|
kind: "MoveCall";
|
|
81
80
|
typeArguments: string[];
|
|
81
|
+
target: `${string}::${string}::${string}`;
|
|
82
82
|
} | {
|
|
83
83
|
objects: ({
|
|
84
84
|
kind: "Input";
|
|
85
85
|
index: number;
|
|
86
|
-
value?: any;
|
|
87
86
|
type?: "object" | "pure" | undefined;
|
|
87
|
+
value?: any;
|
|
88
88
|
} | {
|
|
89
89
|
kind: "GasCoin";
|
|
90
90
|
} | {
|
|
91
91
|
kind: "Result";
|
|
92
92
|
index: number;
|
|
93
93
|
} | {
|
|
94
|
-
resultIndex: number;
|
|
95
94
|
kind: "NestedResult";
|
|
96
95
|
index: number;
|
|
96
|
+
resultIndex: number;
|
|
97
97
|
})[];
|
|
98
98
|
kind: "TransferObjects";
|
|
99
99
|
address: {
|
|
100
100
|
kind: "Input";
|
|
101
101
|
index: number;
|
|
102
|
-
value?: any;
|
|
103
102
|
type?: "object" | "pure" | undefined;
|
|
103
|
+
value?: any;
|
|
104
104
|
} | {
|
|
105
105
|
kind: "GasCoin";
|
|
106
106
|
} | {
|
|
107
107
|
kind: "Result";
|
|
108
108
|
index: number;
|
|
109
109
|
} | {
|
|
110
|
-
resultIndex: number;
|
|
111
110
|
kind: "NestedResult";
|
|
112
111
|
index: number;
|
|
112
|
+
resultIndex: number;
|
|
113
113
|
};
|
|
114
114
|
} | {
|
|
115
|
+
kind: "SplitCoins";
|
|
115
116
|
coin: {
|
|
116
117
|
kind: "Input";
|
|
117
118
|
index: number;
|
|
118
|
-
value?: any;
|
|
119
119
|
type?: "object" | "pure" | undefined;
|
|
120
|
+
value?: any;
|
|
120
121
|
} | {
|
|
121
122
|
kind: "GasCoin";
|
|
122
123
|
} | {
|
|
123
124
|
kind: "Result";
|
|
124
125
|
index: number;
|
|
125
126
|
} | {
|
|
126
|
-
resultIndex: number;
|
|
127
127
|
kind: "NestedResult";
|
|
128
128
|
index: number;
|
|
129
|
+
resultIndex: number;
|
|
129
130
|
};
|
|
130
|
-
kind: "SplitCoins";
|
|
131
131
|
amounts: ({
|
|
132
132
|
kind: "Input";
|
|
133
133
|
index: number;
|
|
134
|
-
value?: any;
|
|
135
134
|
type?: "object" | "pure" | undefined;
|
|
135
|
+
value?: any;
|
|
136
136
|
} | {
|
|
137
137
|
kind: "GasCoin";
|
|
138
138
|
} | {
|
|
139
139
|
kind: "Result";
|
|
140
140
|
index: number;
|
|
141
141
|
} | {
|
|
142
|
-
resultIndex: number;
|
|
143
142
|
kind: "NestedResult";
|
|
144
143
|
index: number;
|
|
144
|
+
resultIndex: number;
|
|
145
145
|
})[];
|
|
146
146
|
} | {
|
|
147
147
|
kind: "MergeCoins";
|
|
148
148
|
destination: {
|
|
149
149
|
kind: "Input";
|
|
150
150
|
index: number;
|
|
151
|
-
value?: any;
|
|
152
151
|
type?: "object" | "pure" | undefined;
|
|
152
|
+
value?: any;
|
|
153
153
|
} | {
|
|
154
154
|
kind: "GasCoin";
|
|
155
155
|
} | {
|
|
156
156
|
kind: "Result";
|
|
157
157
|
index: number;
|
|
158
158
|
} | {
|
|
159
|
-
resultIndex: number;
|
|
160
159
|
kind: "NestedResult";
|
|
161
160
|
index: number;
|
|
161
|
+
resultIndex: number;
|
|
162
162
|
};
|
|
163
163
|
sources: ({
|
|
164
164
|
kind: "Input";
|
|
165
165
|
index: number;
|
|
166
|
-
value?: any;
|
|
167
166
|
type?: "object" | "pure" | undefined;
|
|
167
|
+
value?: any;
|
|
168
168
|
} | {
|
|
169
169
|
kind: "GasCoin";
|
|
170
170
|
} | {
|
|
171
171
|
kind: "Result";
|
|
172
172
|
index: number;
|
|
173
173
|
} | {
|
|
174
|
-
resultIndex: number;
|
|
175
174
|
kind: "NestedResult";
|
|
176
175
|
index: number;
|
|
176
|
+
resultIndex: number;
|
|
177
177
|
})[];
|
|
178
|
-
} | {
|
|
179
|
-
kind: "Publish";
|
|
180
|
-
modules: number[][];
|
|
181
|
-
dependencies: string[];
|
|
182
178
|
} | {
|
|
183
179
|
objects: ({
|
|
184
180
|
kind: "Input";
|
|
185
181
|
index: number;
|
|
186
|
-
value?: any;
|
|
187
182
|
type?: "object" | "pure" | undefined;
|
|
183
|
+
value?: any;
|
|
188
184
|
} | {
|
|
189
185
|
kind: "GasCoin";
|
|
190
186
|
} | {
|
|
191
187
|
kind: "Result";
|
|
192
188
|
index: number;
|
|
193
189
|
} | {
|
|
194
|
-
resultIndex: number;
|
|
195
190
|
kind: "NestedResult";
|
|
196
191
|
index: number;
|
|
192
|
+
resultIndex: number;
|
|
197
193
|
})[];
|
|
198
194
|
kind: "MakeMoveVec";
|
|
199
195
|
type?: {
|
|
@@ -201,22 +197,26 @@ export declare class TransactionBlock {
|
|
|
201
197
|
} | {
|
|
202
198
|
Some: string;
|
|
203
199
|
} | undefined;
|
|
200
|
+
} | {
|
|
201
|
+
kind: "Publish";
|
|
202
|
+
dependencies: string[];
|
|
203
|
+
modules: number[][];
|
|
204
204
|
})[];
|
|
205
205
|
inputs: {
|
|
206
206
|
kind: "Input";
|
|
207
207
|
index: number;
|
|
208
|
-
value?: any;
|
|
209
208
|
type?: "object" | "pure" | undefined;
|
|
209
|
+
value?: any;
|
|
210
210
|
}[];
|
|
211
211
|
gasConfig: {
|
|
212
|
-
budget?: string | undefined;
|
|
213
|
-
price?: string | undefined;
|
|
214
212
|
payment?: {
|
|
215
|
-
digest: string;
|
|
216
213
|
objectId: string;
|
|
217
214
|
version: string | number;
|
|
215
|
+
digest: string;
|
|
218
216
|
}[] | undefined;
|
|
219
217
|
owner?: string | undefined;
|
|
218
|
+
price?: string | undefined;
|
|
219
|
+
budget?: string | undefined;
|
|
220
220
|
};
|
|
221
221
|
sender?: string | undefined;
|
|
222
222
|
expiration?: {
|
|
@@ -241,8 +241,8 @@ export declare class TransactionBlock {
|
|
|
241
241
|
input(type: 'object' | 'pure', value?: unknown): {
|
|
242
242
|
kind: "Input";
|
|
243
243
|
index: number;
|
|
244
|
-
value?: any;
|
|
245
244
|
type?: "object" | "pure" | undefined;
|
|
245
|
+
value?: any;
|
|
246
246
|
};
|
|
247
247
|
/**
|
|
248
248
|
* Add a new object input to the transaction.
|
|
@@ -250,8 +250,8 @@ export declare class TransactionBlock {
|
|
|
250
250
|
object(value: ObjectId | ObjectCallArg): {
|
|
251
251
|
kind: "Input";
|
|
252
252
|
index: number;
|
|
253
|
-
value?: any;
|
|
254
253
|
type?: "object" | "pure" | undefined;
|
|
254
|
+
value?: any;
|
|
255
255
|
};
|
|
256
256
|
/**
|
|
257
257
|
* Add a new non-object input to the transaction.
|
|
@@ -269,8 +269,8 @@ export declare class TransactionBlock {
|
|
|
269
269
|
type?: string): {
|
|
270
270
|
kind: "Input";
|
|
271
271
|
index: number;
|
|
272
|
-
value?: any;
|
|
273
272
|
type?: "object" | "pure" | undefined;
|
|
273
|
+
value?: any;
|
|
274
274
|
};
|
|
275
275
|
/** Add a transaction to the transaction block. */
|
|
276
276
|
add(transaction: TransactionType): TransactionResult;
|