@bitgo-beta/sdk-coin-sui 1.4.1-alpha.393 → 1.4.1-alpha.395
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 +735 -735
- 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;
|
|
11
12
|
objectId: string;
|
|
12
13
|
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;
|
|
25
26
|
objectId: string;
|
|
26
27
|
version: string | number;
|
|
27
|
-
digest: string;
|
|
28
28
|
};
|
|
29
29
|
} | {
|
|
30
30
|
Shared: {
|
|
@@ -37,13 +37,11 @@ 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
|
-
} | {
|
|
42
40
|
Object: {
|
|
43
41
|
ImmOrOwned: {
|
|
42
|
+
digest: string;
|
|
44
43
|
objectId: string;
|
|
45
44
|
version: string | number;
|
|
46
|
-
digest: string;
|
|
47
45
|
};
|
|
48
46
|
} | {
|
|
49
47
|
Shared: {
|
|
@@ -52,6 +50,8 @@ export declare const BuilderCallArg: import("superstruct").Struct<{
|
|
|
52
50
|
mutable: boolean;
|
|
53
51
|
};
|
|
54
52
|
};
|
|
53
|
+
} | {
|
|
54
|
+
Pure: number[];
|
|
55
55
|
}, null>;
|
|
56
56
|
export type BuilderCallArg = Infer<typeof BuilderCallArg>;
|
|
57
57
|
export declare const Inputs: {
|
|
@@ -61,135 +61,139 @@ export declare class TransactionBlock {
|
|
|
61
61
|
get blockData(): {
|
|
62
62
|
version: 1;
|
|
63
63
|
transactions: ({
|
|
64
|
+
target: `${string}::${string}::${string}`;
|
|
64
65
|
arguments: ({
|
|
65
66
|
kind: "Input";
|
|
66
67
|
index: number;
|
|
67
|
-
type?: "object" | "pure" | undefined;
|
|
68
68
|
value?: any;
|
|
69
|
+
type?: "object" | "pure" | undefined;
|
|
69
70
|
} | {
|
|
70
71
|
kind: "GasCoin";
|
|
71
72
|
} | {
|
|
72
73
|
kind: "Result";
|
|
73
74
|
index: number;
|
|
74
75
|
} | {
|
|
76
|
+
resultIndex: number;
|
|
75
77
|
kind: "NestedResult";
|
|
76
78
|
index: number;
|
|
77
|
-
resultIndex: number;
|
|
78
79
|
})[];
|
|
79
80
|
kind: "MoveCall";
|
|
80
81
|
typeArguments: string[];
|
|
81
|
-
target: `${string}::${string}::${string}`;
|
|
82
82
|
} | {
|
|
83
83
|
objects: ({
|
|
84
84
|
kind: "Input";
|
|
85
85
|
index: number;
|
|
86
|
-
type?: "object" | "pure" | undefined;
|
|
87
86
|
value?: any;
|
|
87
|
+
type?: "object" | "pure" | undefined;
|
|
88
88
|
} | {
|
|
89
89
|
kind: "GasCoin";
|
|
90
90
|
} | {
|
|
91
91
|
kind: "Result";
|
|
92
92
|
index: number;
|
|
93
93
|
} | {
|
|
94
|
+
resultIndex: number;
|
|
94
95
|
kind: "NestedResult";
|
|
95
96
|
index: number;
|
|
96
|
-
resultIndex: number;
|
|
97
97
|
})[];
|
|
98
98
|
kind: "TransferObjects";
|
|
99
99
|
address: {
|
|
100
100
|
kind: "Input";
|
|
101
101
|
index: number;
|
|
102
|
-
type?: "object" | "pure" | undefined;
|
|
103
102
|
value?: any;
|
|
103
|
+
type?: "object" | "pure" | undefined;
|
|
104
104
|
} | {
|
|
105
105
|
kind: "GasCoin";
|
|
106
106
|
} | {
|
|
107
107
|
kind: "Result";
|
|
108
108
|
index: number;
|
|
109
109
|
} | {
|
|
110
|
+
resultIndex: number;
|
|
110
111
|
kind: "NestedResult";
|
|
111
112
|
index: number;
|
|
112
|
-
resultIndex: number;
|
|
113
113
|
};
|
|
114
114
|
} | {
|
|
115
|
-
kind: "SplitCoins";
|
|
116
115
|
coin: {
|
|
117
116
|
kind: "Input";
|
|
118
117
|
index: number;
|
|
119
|
-
type?: "object" | "pure" | undefined;
|
|
120
118
|
value?: any;
|
|
119
|
+
type?: "object" | "pure" | undefined;
|
|
121
120
|
} | {
|
|
122
121
|
kind: "GasCoin";
|
|
123
122
|
} | {
|
|
124
123
|
kind: "Result";
|
|
125
124
|
index: number;
|
|
126
125
|
} | {
|
|
126
|
+
resultIndex: number;
|
|
127
127
|
kind: "NestedResult";
|
|
128
128
|
index: number;
|
|
129
|
-
resultIndex: number;
|
|
130
129
|
};
|
|
130
|
+
kind: "SplitCoins";
|
|
131
131
|
amounts: ({
|
|
132
132
|
kind: "Input";
|
|
133
133
|
index: number;
|
|
134
|
-
type?: "object" | "pure" | undefined;
|
|
135
134
|
value?: any;
|
|
135
|
+
type?: "object" | "pure" | undefined;
|
|
136
136
|
} | {
|
|
137
137
|
kind: "GasCoin";
|
|
138
138
|
} | {
|
|
139
139
|
kind: "Result";
|
|
140
140
|
index: number;
|
|
141
141
|
} | {
|
|
142
|
+
resultIndex: number;
|
|
142
143
|
kind: "NestedResult";
|
|
143
144
|
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
|
-
type?: "object" | "pure" | undefined;
|
|
152
151
|
value?: any;
|
|
152
|
+
type?: "object" | "pure" | undefined;
|
|
153
153
|
} | {
|
|
154
154
|
kind: "GasCoin";
|
|
155
155
|
} | {
|
|
156
156
|
kind: "Result";
|
|
157
157
|
index: number;
|
|
158
158
|
} | {
|
|
159
|
+
resultIndex: number;
|
|
159
160
|
kind: "NestedResult";
|
|
160
161
|
index: number;
|
|
161
|
-
resultIndex: number;
|
|
162
162
|
};
|
|
163
163
|
sources: ({
|
|
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
|
})[];
|
|
178
|
+
} | {
|
|
179
|
+
kind: "Publish";
|
|
180
|
+
modules: number[][];
|
|
181
|
+
dependencies: string[];
|
|
178
182
|
} | {
|
|
179
183
|
objects: ({
|
|
180
184
|
kind: "Input";
|
|
181
185
|
index: number;
|
|
182
|
-
type?: "object" | "pure" | undefined;
|
|
183
186
|
value?: any;
|
|
187
|
+
type?: "object" | "pure" | undefined;
|
|
184
188
|
} | {
|
|
185
189
|
kind: "GasCoin";
|
|
186
190
|
} | {
|
|
187
191
|
kind: "Result";
|
|
188
192
|
index: number;
|
|
189
193
|
} | {
|
|
194
|
+
resultIndex: number;
|
|
190
195
|
kind: "NestedResult";
|
|
191
196
|
index: number;
|
|
192
|
-
resultIndex: number;
|
|
193
197
|
})[];
|
|
194
198
|
kind: "MakeMoveVec";
|
|
195
199
|
type?: {
|
|
@@ -197,26 +201,22 @@ export declare class TransactionBlock {
|
|
|
197
201
|
} | {
|
|
198
202
|
Some: string;
|
|
199
203
|
} | 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
|
-
type?: "object" | "pure" | undefined;
|
|
209
208
|
value?: any;
|
|
209
|
+
type?: "object" | "pure" | undefined;
|
|
210
210
|
}[];
|
|
211
211
|
gasConfig: {
|
|
212
|
+
budget?: string | undefined;
|
|
213
|
+
price?: string | undefined;
|
|
212
214
|
payment?: {
|
|
215
|
+
digest: string;
|
|
213
216
|
objectId: string;
|
|
214
217
|
version: string | number;
|
|
215
|
-
digest: string;
|
|
216
218
|
}[] | undefined;
|
|
217
219
|
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
|
-
type?: "object" | "pure" | undefined;
|
|
245
244
|
value?: any;
|
|
245
|
+
type?: "object" | "pure" | undefined;
|
|
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
|
-
type?: "object" | "pure" | undefined;
|
|
254
253
|
value?: any;
|
|
254
|
+
type?: "object" | "pure" | undefined;
|
|
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
|
-
type?: "object" | "pure" | undefined;
|
|
273
272
|
value?: any;
|
|
273
|
+
type?: "object" | "pure" | undefined;
|
|
274
274
|
};
|
|
275
275
|
/** Add a transaction to the transaction block. */
|
|
276
276
|
add(transaction: TransactionType): TransactionResult;
|