@sentio/sdk 2.13.0-rc.7 → 2.13.0-rc.9
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/lib/aptos/builtin/0x1.d.ts +1076 -431
- package/lib/aptos/builtin/0x1.js +1937 -1457
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +206 -83
- package/lib/aptos/builtin/0x3.js +371 -332
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/codegen/codegen.d.ts +1 -1
- package/lib/aptos/codegen/codegen.js +2 -2
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/codegen/run.js +1 -1
- package/lib/aptos/codegen/run.js.map +1 -1
- package/lib/aptos/ext/aptos-dex.d.ts +2 -1
- package/lib/aptos/ext/aptos-dex.js +1 -1
- package/lib/aptos/ext/aptos-dex.js.map +1 -1
- package/lib/aptos/index.d.ts +1 -0
- package/lib/aptos/index.js +1 -0
- package/lib/aptos/index.js.map +1 -1
- package/lib/aptos/models.d.ts +3 -11
- package/lib/aptos/models.js.map +1 -1
- package/lib/aptos/move-coder.d.ts +3 -2
- package/lib/aptos/move-coder.js +11 -4
- package/lib/aptos/move-coder.js.map +1 -1
- package/lib/move/abstract-codegen.d.ts +2 -2
- package/lib/move/abstract-codegen.js +36 -11
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/move/abstract-move-coder.d.ts +3 -7
- package/lib/move/abstract-move-coder.js +3 -3
- package/lib/move/abstract-move-coder.js.map +1 -1
- package/lib/move/types.d.ts +22 -1
- package/lib/move/types.js +46 -17
- package/lib/move/types.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +31 -12
- package/lib/sui/builtin/0x1.js +56 -31
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +256 -103
- package/lib/sui/builtin/0x2.js +461 -316
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +126 -51
- package/lib/sui/builtin/0x3.js +227 -271
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.d.ts +1 -1
- package/lib/sui/codegen/codegen.js +3 -2
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/codegen/run.js +1 -1
- package/lib/sui/codegen/run.js.map +1 -1
- package/lib/sui/index.d.ts +1 -0
- package/lib/sui/index.js +1 -0
- package/lib/sui/index.js.map +1 -1
- package/lib/sui/models.d.ts +3 -11
- package/lib/sui/models.js.map +1 -1
- package/lib/sui/move-coder.d.ts +5 -5
- package/lib/sui/move-coder.js +14 -7
- package/lib/sui/move-coder.js.map +1 -1
- package/package.json +4 -4
- package/src/aptos/builtin/0x1.ts +2688 -447
- package/src/aptos/builtin/0x3.ts +506 -84
- package/src/aptos/codegen/codegen.ts +7 -2
- package/src/aptos/codegen/run.ts +1 -1
- package/src/aptos/ext/aptos-dex.ts +3 -5
- package/src/aptos/index.ts +2 -0
- package/src/aptos/models.ts +3 -13
- package/src/aptos/move-coder.ts +14 -4
- package/src/move/abstract-codegen.ts +39 -13
- package/src/move/abstract-move-coder.ts +11 -16
- package/src/move/types.ts +63 -18
- package/src/sui/builtin/0x1.ts +67 -13
- package/src/sui/builtin/0x2.ts +649 -103
- package/src/sui/builtin/0x3.ts +315 -51
- package/src/sui/codegen/codegen.ts +8 -2
- package/src/sui/codegen/run.ts +1 -1
- package/src/sui/index.ts +1 -0
- package/src/sui/models.ts +3 -13
- package/src/sui/move-coder.ts +22 -15
package/lib/sui/builtin/0x2.d.ts
CHANGED
@@ -1,22 +1,28 @@
|
|
1
|
-
import { CallFilter } from "@sentio/sdk/move";
|
1
|
+
import { CallFilter, TypeDescriptor } from "@sentio/sdk/move";
|
2
2
|
import { MoveCoder, SuiBindOptions, SuiBaseProcessor, TypedEventInstance, TypedFunctionPayload, SuiContext } from "@sentio/sdk/sui";
|
3
3
|
import { MoveFetchConfig } from "@sentio/protos";
|
4
4
|
import { SuiAddress } from "@sentio/sdk/sui";
|
5
5
|
import * as _0x1 from "./0x1.js";
|
6
6
|
export declare namespace address { }
|
7
7
|
export declare namespace bag {
|
8
|
-
|
9
|
-
static TYPE_QNAME: string;
|
8
|
+
interface Bag {
|
10
9
|
id: object_.UID;
|
11
10
|
size: bigint;
|
12
11
|
}
|
12
|
+
namespace Bag {
|
13
|
+
const TYPE_QNAME = "0x2::bag::Bag";
|
14
|
+
function type(): TypeDescriptor<Bag>;
|
15
|
+
}
|
13
16
|
}
|
14
17
|
export declare namespace balance {
|
15
18
|
type Balance<T> = string;
|
16
|
-
|
17
|
-
static TYPE_QNAME: string;
|
19
|
+
interface Supply<T0> {
|
18
20
|
value: bigint;
|
19
21
|
}
|
22
|
+
namespace Supply {
|
23
|
+
const TYPE_QNAME = "0x2::balance::Supply";
|
24
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Supply<T0>>;
|
25
|
+
}
|
20
26
|
}
|
21
27
|
export declare class bcs extends SuiBaseProcessor {
|
22
28
|
constructor(options: SuiBindOptions);
|
@@ -25,10 +31,13 @@ export declare class bcs extends SuiBaseProcessor {
|
|
25
31
|
onEventBCS(func: (event: bcs.BCSInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): bcs;
|
26
32
|
}
|
27
33
|
export declare namespace bcs {
|
28
|
-
|
29
|
-
static TYPE_QNAME: string;
|
34
|
+
interface BCS {
|
30
35
|
bytes: number[];
|
31
36
|
}
|
37
|
+
namespace BCS {
|
38
|
+
const TYPE_QNAME = "0x2::bcs::BCS";
|
39
|
+
function type(): TypeDescriptor<BCS>;
|
40
|
+
}
|
32
41
|
interface BCSInstance extends TypedEventInstance<BCS> {
|
33
42
|
data_decoded: BCS;
|
34
43
|
type_arguments: [];
|
@@ -36,23 +45,32 @@ export declare namespace bcs {
|
|
36
45
|
}
|
37
46
|
export declare namespace bls12381 { }
|
38
47
|
export declare namespace borrow {
|
39
|
-
|
40
|
-
static TYPE_QNAME: string;
|
48
|
+
interface Borrow {
|
41
49
|
ref: SuiAddress;
|
42
50
|
obj: object_.ID;
|
43
51
|
}
|
44
|
-
|
45
|
-
|
52
|
+
namespace Borrow {
|
53
|
+
const TYPE_QNAME = "0x2::borrow::Borrow";
|
54
|
+
function type(): TypeDescriptor<Borrow>;
|
55
|
+
}
|
56
|
+
interface Referent<T0> {
|
46
57
|
id: SuiAddress;
|
47
58
|
value: _0x1.option.Option<T0>;
|
48
59
|
}
|
60
|
+
namespace Referent {
|
61
|
+
const TYPE_QNAME = "0x2::borrow::Referent";
|
62
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Referent<T0>>;
|
63
|
+
}
|
49
64
|
}
|
50
65
|
export declare namespace clock {
|
51
|
-
|
52
|
-
static TYPE_QNAME: string;
|
66
|
+
interface Clock {
|
53
67
|
id: object_.UID;
|
54
68
|
timestamp_ms: bigint;
|
55
69
|
}
|
70
|
+
namespace Clock {
|
71
|
+
const TYPE_QNAME = "0x2::clock::Clock";
|
72
|
+
function type(): TypeDescriptor<Clock>;
|
73
|
+
}
|
56
74
|
}
|
57
75
|
export declare class coin extends SuiBaseProcessor {
|
58
76
|
constructor(options: SuiBindOptions);
|
@@ -69,8 +87,7 @@ export declare class coin extends SuiBaseProcessor {
|
|
69
87
|
}
|
70
88
|
export declare namespace coin {
|
71
89
|
type Coin<T> = string;
|
72
|
-
|
73
|
-
static TYPE_QNAME: string;
|
90
|
+
interface CoinMetadata<T0> {
|
74
91
|
id: object_.UID;
|
75
92
|
decimals: number;
|
76
93
|
name: string;
|
@@ -78,19 +95,29 @@ export declare namespace coin {
|
|
78
95
|
description: string;
|
79
96
|
icon_url: _0x1.option.Option<url.Url>;
|
80
97
|
}
|
81
|
-
|
82
|
-
|
98
|
+
namespace CoinMetadata {
|
99
|
+
const TYPE_QNAME = "0x2::coin::CoinMetadata";
|
100
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CoinMetadata<T0>>;
|
101
|
+
}
|
102
|
+
interface CurrencyCreated<T0> {
|
83
103
|
decimals: number;
|
84
104
|
}
|
105
|
+
namespace CurrencyCreated {
|
106
|
+
const TYPE_QNAME = "0x2::coin::CurrencyCreated";
|
107
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CurrencyCreated<T0>>;
|
108
|
+
}
|
85
109
|
interface CurrencyCreatedInstance extends TypedEventInstance<CurrencyCreated<any>> {
|
86
110
|
data_decoded: CurrencyCreated<any>;
|
87
111
|
type_arguments: [string];
|
88
112
|
}
|
89
|
-
|
90
|
-
static TYPE_QNAME: string;
|
113
|
+
interface TreasuryCap<T0> {
|
91
114
|
id: object_.UID;
|
92
115
|
total_supply: balance.Supply<T0>;
|
93
116
|
}
|
117
|
+
namespace TreasuryCap {
|
118
|
+
const TYPE_QNAME = "0x2::coin::TreasuryCap";
|
119
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TreasuryCap<T0>>;
|
120
|
+
}
|
94
121
|
interface BurnPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress | undefined]> {
|
95
122
|
arguments_decoded: [SuiAddress | undefined];
|
96
123
|
type_arguments: [string];
|
@@ -154,26 +181,35 @@ export declare class display extends SuiBaseProcessor {
|
|
154
181
|
onEventVersionUpdated(func: (event: display.VersionUpdatedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): display;
|
155
182
|
}
|
156
183
|
export declare namespace display {
|
157
|
-
|
158
|
-
static TYPE_QNAME: string;
|
184
|
+
interface Display<T0> {
|
159
185
|
id: object_.UID;
|
160
186
|
fields: vec_map.VecMap<string, string>;
|
161
187
|
version: number;
|
162
188
|
}
|
163
|
-
|
164
|
-
|
189
|
+
namespace Display {
|
190
|
+
const TYPE_QNAME = "0x2::display::Display";
|
191
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Display<T0>>;
|
192
|
+
}
|
193
|
+
interface DisplayCreated<T0> {
|
165
194
|
id: object_.ID;
|
166
195
|
}
|
196
|
+
namespace DisplayCreated {
|
197
|
+
const TYPE_QNAME = "0x2::display::DisplayCreated";
|
198
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<DisplayCreated<T0>>;
|
199
|
+
}
|
167
200
|
interface DisplayCreatedInstance extends TypedEventInstance<DisplayCreated<any>> {
|
168
201
|
data_decoded: DisplayCreated<any>;
|
169
202
|
type_arguments: [string];
|
170
203
|
}
|
171
|
-
|
172
|
-
static TYPE_QNAME: string;
|
204
|
+
interface VersionUpdated<T0> {
|
173
205
|
id: object_.ID;
|
174
206
|
version: number;
|
175
207
|
fields: vec_map.VecMap<string, string>;
|
176
208
|
}
|
209
|
+
namespace VersionUpdated {
|
210
|
+
const TYPE_QNAME = "0x2::display::VersionUpdated";
|
211
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<VersionUpdated<T0>>;
|
212
|
+
}
|
177
213
|
interface VersionUpdatedInstance extends TypedEventInstance<VersionUpdated<any>> {
|
178
214
|
data_decoded: VersionUpdated<any>;
|
179
215
|
type_arguments: [string];
|
@@ -207,12 +243,15 @@ export declare namespace display {
|
|
207
243
|
}
|
208
244
|
}
|
209
245
|
export declare namespace dynamic_field {
|
210
|
-
|
211
|
-
static TYPE_QNAME: string;
|
246
|
+
interface Field<T0, T1> {
|
212
247
|
id: object_.UID;
|
213
248
|
name: T0;
|
214
249
|
value: T1;
|
215
250
|
}
|
251
|
+
namespace Field {
|
252
|
+
const TYPE_QNAME = "0x2::dynamic_field::Field";
|
253
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Field<T0, T1>>;
|
254
|
+
}
|
216
255
|
}
|
217
256
|
export declare class dynamic_object_field extends SuiBaseProcessor {
|
218
257
|
constructor(options: SuiBindOptions);
|
@@ -221,10 +260,13 @@ export declare class dynamic_object_field extends SuiBaseProcessor {
|
|
221
260
|
onEventWrapper(func: (event: dynamic_object_field.WrapperInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): dynamic_object_field;
|
222
261
|
}
|
223
262
|
export declare namespace dynamic_object_field {
|
224
|
-
|
225
|
-
static TYPE_QNAME: string;
|
263
|
+
interface Wrapper<T0> {
|
226
264
|
name: T0;
|
227
265
|
}
|
266
|
+
namespace Wrapper {
|
267
|
+
const TYPE_QNAME = "0x2::dynamic_object_field::Wrapper";
|
268
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Wrapper<T0>>;
|
269
|
+
}
|
228
270
|
interface WrapperInstance extends TypedEventInstance<Wrapper<any>> {
|
229
271
|
data_decoded: Wrapper<any>;
|
230
272
|
type_arguments: [string];
|
@@ -245,37 +287,49 @@ export declare class groth16 extends SuiBaseProcessor {
|
|
245
287
|
onEventPublicProofInputs(func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): groth16;
|
246
288
|
}
|
247
289
|
export declare namespace groth16 {
|
248
|
-
|
249
|
-
static TYPE_QNAME: string;
|
290
|
+
interface Curve {
|
250
291
|
id: number;
|
251
292
|
}
|
293
|
+
namespace Curve {
|
294
|
+
const TYPE_QNAME = "0x2::groth16::Curve";
|
295
|
+
function type(): TypeDescriptor<Curve>;
|
296
|
+
}
|
252
297
|
interface CurveInstance extends TypedEventInstance<Curve> {
|
253
298
|
data_decoded: Curve;
|
254
299
|
type_arguments: [];
|
255
300
|
}
|
256
|
-
|
257
|
-
static TYPE_QNAME: string;
|
301
|
+
interface PreparedVerifyingKey {
|
258
302
|
vk_gamma_abc_g1_bytes: number[];
|
259
303
|
alpha_g1_beta_g2_bytes: number[];
|
260
304
|
gamma_g2_neg_pc_bytes: number[];
|
261
305
|
delta_g2_neg_pc_bytes: number[];
|
262
306
|
}
|
307
|
+
namespace PreparedVerifyingKey {
|
308
|
+
const TYPE_QNAME = "0x2::groth16::PreparedVerifyingKey";
|
309
|
+
function type(): TypeDescriptor<PreparedVerifyingKey>;
|
310
|
+
}
|
263
311
|
interface PreparedVerifyingKeyInstance extends TypedEventInstance<PreparedVerifyingKey> {
|
264
312
|
data_decoded: PreparedVerifyingKey;
|
265
313
|
type_arguments: [];
|
266
314
|
}
|
267
|
-
|
268
|
-
static TYPE_QNAME: string;
|
315
|
+
interface ProofPoints {
|
269
316
|
bytes: number[];
|
270
317
|
}
|
318
|
+
namespace ProofPoints {
|
319
|
+
const TYPE_QNAME = "0x2::groth16::ProofPoints";
|
320
|
+
function type(): TypeDescriptor<ProofPoints>;
|
321
|
+
}
|
271
322
|
interface ProofPointsInstance extends TypedEventInstance<ProofPoints> {
|
272
323
|
data_decoded: ProofPoints;
|
273
324
|
type_arguments: [];
|
274
325
|
}
|
275
|
-
|
276
|
-
static TYPE_QNAME: string;
|
326
|
+
interface PublicProofInputs {
|
277
327
|
bytes: number[];
|
278
328
|
}
|
329
|
+
namespace PublicProofInputs {
|
330
|
+
const TYPE_QNAME = "0x2::groth16::PublicProofInputs";
|
331
|
+
function type(): TypeDescriptor<PublicProofInputs>;
|
332
|
+
}
|
279
333
|
interface PublicProofInputsInstance extends TypedEventInstance<PublicProofInputs> {
|
280
334
|
data_decoded: PublicProofInputs;
|
281
335
|
type_arguments: [];
|
@@ -294,98 +348,134 @@ export declare class kiosk extends SuiBaseProcessor {
|
|
294
348
|
onEventLock(func: (event: kiosk.LockInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): kiosk;
|
295
349
|
}
|
296
350
|
export declare namespace kiosk {
|
297
|
-
|
298
|
-
static TYPE_QNAME: string;
|
351
|
+
interface Item {
|
299
352
|
id: object_.ID;
|
300
353
|
}
|
354
|
+
namespace Item {
|
355
|
+
const TYPE_QNAME = "0x2::kiosk::Item";
|
356
|
+
function type(): TypeDescriptor<Item>;
|
357
|
+
}
|
301
358
|
interface ItemInstance extends TypedEventInstance<Item> {
|
302
359
|
data_decoded: Item;
|
303
360
|
type_arguments: [];
|
304
361
|
}
|
305
|
-
|
306
|
-
static TYPE_QNAME: string;
|
362
|
+
interface ItemListed<T0> {
|
307
363
|
kiosk: object_.ID;
|
308
364
|
id: object_.ID;
|
309
365
|
price: bigint;
|
310
366
|
}
|
367
|
+
namespace ItemListed {
|
368
|
+
const TYPE_QNAME = "0x2::kiosk::ItemListed";
|
369
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<ItemListed<T0>>;
|
370
|
+
}
|
311
371
|
interface ItemListedInstance extends TypedEventInstance<ItemListed<any>> {
|
312
372
|
data_decoded: ItemListed<any>;
|
313
373
|
type_arguments: [string];
|
314
374
|
}
|
315
|
-
|
316
|
-
static TYPE_QNAME: string;
|
375
|
+
interface Kiosk {
|
317
376
|
id: object_.UID;
|
318
377
|
profits: balance.Balance<sui.SUI>;
|
319
378
|
owner: SuiAddress;
|
320
379
|
item_count: number;
|
321
380
|
allow_extensions: Boolean;
|
322
381
|
}
|
323
|
-
|
324
|
-
|
382
|
+
namespace Kiosk {
|
383
|
+
const TYPE_QNAME = "0x2::kiosk::Kiosk";
|
384
|
+
function type(): TypeDescriptor<Kiosk>;
|
385
|
+
}
|
386
|
+
interface KioskOwnerCap {
|
325
387
|
id: object_.UID;
|
326
388
|
for: object_.ID;
|
327
389
|
}
|
328
|
-
|
329
|
-
|
390
|
+
namespace KioskOwnerCap {
|
391
|
+
const TYPE_QNAME = "0x2::kiosk::KioskOwnerCap";
|
392
|
+
function type(): TypeDescriptor<KioskOwnerCap>;
|
393
|
+
}
|
394
|
+
interface Listing {
|
330
395
|
id: object_.ID;
|
331
396
|
is_exclusive: Boolean;
|
332
397
|
}
|
398
|
+
namespace Listing {
|
399
|
+
const TYPE_QNAME = "0x2::kiosk::Listing";
|
400
|
+
function type(): TypeDescriptor<Listing>;
|
401
|
+
}
|
333
402
|
interface ListingInstance extends TypedEventInstance<Listing> {
|
334
403
|
data_decoded: Listing;
|
335
404
|
type_arguments: [];
|
336
405
|
}
|
337
|
-
|
338
|
-
static TYPE_QNAME: string;
|
406
|
+
interface Lock {
|
339
407
|
id: object_.ID;
|
340
408
|
}
|
409
|
+
namespace Lock {
|
410
|
+
const TYPE_QNAME = "0x2::kiosk::Lock";
|
411
|
+
function type(): TypeDescriptor<Lock>;
|
412
|
+
}
|
341
413
|
interface LockInstance extends TypedEventInstance<Lock> {
|
342
414
|
data_decoded: Lock;
|
343
415
|
type_arguments: [];
|
344
416
|
}
|
345
|
-
|
346
|
-
static TYPE_QNAME: string;
|
417
|
+
interface PurchaseCap<T0> {
|
347
418
|
id: object_.UID;
|
348
419
|
kiosk_id: object_.ID;
|
349
420
|
item_id: object_.ID;
|
350
421
|
min_price: bigint;
|
351
422
|
}
|
423
|
+
namespace PurchaseCap {
|
424
|
+
const TYPE_QNAME = "0x2::kiosk::PurchaseCap";
|
425
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<PurchaseCap<T0>>;
|
426
|
+
}
|
352
427
|
}
|
353
428
|
export declare namespace linked_table {
|
354
|
-
|
355
|
-
static TYPE_QNAME: string;
|
429
|
+
interface LinkedTable<T0, T1> {
|
356
430
|
id: object_.UID;
|
357
431
|
size: bigint;
|
358
432
|
head: _0x1.option.Option<T0>;
|
359
433
|
tail: _0x1.option.Option<T0>;
|
360
434
|
}
|
361
|
-
|
362
|
-
|
435
|
+
namespace LinkedTable {
|
436
|
+
const TYPE_QNAME = "0x2::linked_table::LinkedTable";
|
437
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<LinkedTable<T0, T1>>;
|
438
|
+
}
|
439
|
+
interface Node<T0, T1> {
|
363
440
|
prev: _0x1.option.Option<T0>;
|
364
441
|
next: _0x1.option.Option<T0>;
|
365
442
|
value: T1;
|
366
443
|
}
|
444
|
+
namespace Node {
|
445
|
+
const TYPE_QNAME = "0x2::linked_table::Node";
|
446
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Node<T0, T1>>;
|
447
|
+
}
|
367
448
|
}
|
368
449
|
export declare namespace math { }
|
369
450
|
export declare namespace object_ {
|
370
451
|
type ID = string;
|
371
|
-
|
372
|
-
static TYPE_QNAME: string;
|
452
|
+
interface UID {
|
373
453
|
id: object_.ID;
|
374
454
|
}
|
455
|
+
namespace UID {
|
456
|
+
const TYPE_QNAME = "0x2::object::UID";
|
457
|
+
function type(): TypeDescriptor<UID>;
|
458
|
+
}
|
375
459
|
}
|
376
460
|
export declare namespace object_bag {
|
377
|
-
|
378
|
-
static TYPE_QNAME: string;
|
461
|
+
interface ObjectBag {
|
379
462
|
id: object_.UID;
|
380
463
|
size: bigint;
|
381
464
|
}
|
465
|
+
namespace ObjectBag {
|
466
|
+
const TYPE_QNAME = "0x2::object_bag::ObjectBag";
|
467
|
+
function type(): TypeDescriptor<ObjectBag>;
|
468
|
+
}
|
382
469
|
}
|
383
470
|
export declare namespace object_table {
|
384
|
-
|
385
|
-
static TYPE_QNAME: string;
|
471
|
+
interface ObjectTable<T0, T1> {
|
386
472
|
id: object_.UID;
|
387
473
|
size: bigint;
|
388
474
|
}
|
475
|
+
namespace ObjectTable {
|
476
|
+
const TYPE_QNAME = "0x2::object_table::ObjectTable";
|
477
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<ObjectTable<T0, T1>>;
|
478
|
+
}
|
389
479
|
}
|
390
480
|
export declare class package_ extends SuiBaseProcessor {
|
391
481
|
constructor(options: SuiBindOptions);
|
@@ -396,31 +486,43 @@ export declare class package_ extends SuiBaseProcessor {
|
|
396
486
|
onEntryOnlyDepUpgrades(func: (call: package_.OnlyDepUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): package_;
|
397
487
|
}
|
398
488
|
export declare namespace package_ {
|
399
|
-
|
400
|
-
static TYPE_QNAME: string;
|
489
|
+
interface Publisher {
|
401
490
|
id: object_.UID;
|
402
491
|
package: _0x1.ascii.String;
|
403
492
|
module_name: _0x1.ascii.String;
|
404
493
|
}
|
405
|
-
|
406
|
-
|
494
|
+
namespace Publisher {
|
495
|
+
const TYPE_QNAME = "0x2::package::Publisher";
|
496
|
+
function type(): TypeDescriptor<Publisher>;
|
497
|
+
}
|
498
|
+
interface UpgradeCap {
|
407
499
|
id: object_.UID;
|
408
500
|
package: object_.ID;
|
409
501
|
version: bigint;
|
410
502
|
policy: number;
|
411
503
|
}
|
412
|
-
|
413
|
-
|
504
|
+
namespace UpgradeCap {
|
505
|
+
const TYPE_QNAME = "0x2::package::UpgradeCap";
|
506
|
+
function type(): TypeDescriptor<UpgradeCap>;
|
507
|
+
}
|
508
|
+
interface UpgradeReceipt {
|
414
509
|
cap: object_.ID;
|
415
510
|
package: object_.ID;
|
416
511
|
}
|
417
|
-
|
418
|
-
|
512
|
+
namespace UpgradeReceipt {
|
513
|
+
const TYPE_QNAME = "0x2::package::UpgradeReceipt";
|
514
|
+
function type(): TypeDescriptor<UpgradeReceipt>;
|
515
|
+
}
|
516
|
+
interface UpgradeTicket {
|
419
517
|
cap: object_.ID;
|
420
518
|
package: object_.ID;
|
421
519
|
policy: number;
|
422
520
|
digest: number[];
|
423
521
|
}
|
522
|
+
namespace UpgradeTicket {
|
523
|
+
const TYPE_QNAME = "0x2::package::UpgradeTicket";
|
524
|
+
function type(): TypeDescriptor<UpgradeTicket>;
|
525
|
+
}
|
424
526
|
interface MakeImmutablePayload extends TypedFunctionPayload<[]> {
|
425
527
|
arguments_decoded: [];
|
426
528
|
type_arguments: [];
|
@@ -488,15 +590,21 @@ export declare namespace pay {
|
|
488
590
|
}
|
489
591
|
}
|
490
592
|
export declare namespace priority_queue {
|
491
|
-
|
492
|
-
static TYPE_QNAME: string;
|
593
|
+
interface Entry<T0> {
|
493
594
|
priority: bigint;
|
494
595
|
value: T0;
|
495
596
|
}
|
496
|
-
|
497
|
-
|
597
|
+
namespace Entry {
|
598
|
+
const TYPE_QNAME = "0x2::priority_queue::Entry";
|
599
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Entry<T0>>;
|
600
|
+
}
|
601
|
+
interface PriorityQueue<T0> {
|
498
602
|
entries: priority_queue.Entry<T0>[];
|
499
603
|
}
|
604
|
+
namespace PriorityQueue {
|
605
|
+
const TYPE_QNAME = "0x2::priority_queue::PriorityQueue";
|
606
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<PriorityQueue<T0>>;
|
607
|
+
}
|
500
608
|
}
|
501
609
|
export declare namespace prover { }
|
502
610
|
export declare class sui extends SuiBaseProcessor {
|
@@ -506,27 +614,36 @@ export declare class sui extends SuiBaseProcessor {
|
|
506
614
|
onEntryTransfer(func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): sui;
|
507
615
|
}
|
508
616
|
export declare namespace sui {
|
509
|
-
|
510
|
-
static TYPE_QNAME: string;
|
617
|
+
interface SUI {
|
511
618
|
dummy_field: Boolean;
|
512
619
|
}
|
620
|
+
namespace SUI {
|
621
|
+
const TYPE_QNAME = "0x2::sui::SUI";
|
622
|
+
function type(): TypeDescriptor<SUI>;
|
623
|
+
}
|
513
624
|
interface TransferPayload extends TypedFunctionPayload<[coin.Coin<sui.SUI> | undefined]> {
|
514
625
|
arguments_decoded: [coin.Coin<sui.SUI> | undefined];
|
515
626
|
type_arguments: [];
|
516
627
|
}
|
517
628
|
}
|
518
629
|
export declare namespace table {
|
519
|
-
|
520
|
-
static TYPE_QNAME: string;
|
630
|
+
interface Table<T0, T1> {
|
521
631
|
id: object_.UID;
|
522
632
|
size: bigint;
|
523
633
|
}
|
634
|
+
namespace Table {
|
635
|
+
const TYPE_QNAME = "0x2::table::Table";
|
636
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Table<T0, T1>>;
|
637
|
+
}
|
524
638
|
}
|
525
639
|
export declare namespace table_vec {
|
526
|
-
|
527
|
-
static TYPE_QNAME: string;
|
640
|
+
interface TableVec<T0> {
|
528
641
|
contents: table.Table<bigint, T0>;
|
529
642
|
}
|
643
|
+
namespace TableVec {
|
644
|
+
const TYPE_QNAME = "0x2::table_vec::TableVec";
|
645
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TableVec<T0>>;
|
646
|
+
}
|
530
647
|
}
|
531
648
|
export declare namespace transfer { }
|
532
649
|
export declare class transfer_policy extends SuiBaseProcessor {
|
@@ -537,50 +654,68 @@ export declare class transfer_policy extends SuiBaseProcessor {
|
|
537
654
|
onEventTransferPolicyCreated(func: (event: transfer_policy.TransferPolicyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): transfer_policy;
|
538
655
|
}
|
539
656
|
export declare namespace transfer_policy {
|
540
|
-
|
541
|
-
static TYPE_QNAME: string;
|
657
|
+
interface RuleKey<T0> {
|
542
658
|
dummy_field: Boolean;
|
543
659
|
}
|
660
|
+
namespace RuleKey {
|
661
|
+
const TYPE_QNAME = "0x2::transfer_policy::RuleKey";
|
662
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<RuleKey<T0>>;
|
663
|
+
}
|
544
664
|
interface RuleKeyInstance extends TypedEventInstance<RuleKey<any>> {
|
545
665
|
data_decoded: RuleKey<any>;
|
546
666
|
type_arguments: [string];
|
547
667
|
}
|
548
|
-
|
549
|
-
static TYPE_QNAME: string;
|
668
|
+
interface TransferPolicy<T0> {
|
550
669
|
id: object_.UID;
|
551
670
|
balance: balance.Balance<sui.SUI>;
|
552
671
|
rules: vec_set.VecSet<_0x1.type_name.TypeName>;
|
553
672
|
}
|
554
|
-
|
555
|
-
|
673
|
+
namespace TransferPolicy {
|
674
|
+
const TYPE_QNAME = "0x2::transfer_policy::TransferPolicy";
|
675
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TransferPolicy<T0>>;
|
676
|
+
}
|
677
|
+
interface TransferPolicyCap<T0> {
|
556
678
|
id: object_.UID;
|
557
679
|
policy_id: object_.ID;
|
558
680
|
}
|
559
|
-
|
560
|
-
|
681
|
+
namespace TransferPolicyCap {
|
682
|
+
const TYPE_QNAME = "0x2::transfer_policy::TransferPolicyCap";
|
683
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TransferPolicyCap<T0>>;
|
684
|
+
}
|
685
|
+
interface TransferPolicyCreated<T0> {
|
561
686
|
id: object_.ID;
|
562
687
|
}
|
688
|
+
namespace TransferPolicyCreated {
|
689
|
+
const TYPE_QNAME = "0x2::transfer_policy::TransferPolicyCreated";
|
690
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TransferPolicyCreated<T0>>;
|
691
|
+
}
|
563
692
|
interface TransferPolicyCreatedInstance extends TypedEventInstance<TransferPolicyCreated<any>> {
|
564
693
|
data_decoded: TransferPolicyCreated<any>;
|
565
694
|
type_arguments: [string];
|
566
695
|
}
|
567
|
-
|
568
|
-
static TYPE_QNAME: string;
|
696
|
+
interface TransferRequest<T0> {
|
569
697
|
item: object_.ID;
|
570
698
|
paid: bigint;
|
571
699
|
from: object_.ID;
|
572
700
|
receipts: vec_set.VecSet<_0x1.type_name.TypeName>;
|
573
701
|
}
|
702
|
+
namespace TransferRequest {
|
703
|
+
const TYPE_QNAME = "0x2::transfer_policy::TransferRequest";
|
704
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TransferRequest<T0>>;
|
705
|
+
}
|
574
706
|
}
|
575
707
|
export declare namespace tx_context {
|
576
|
-
|
577
|
-
static TYPE_QNAME: string;
|
708
|
+
interface TxContext {
|
578
709
|
sender: SuiAddress;
|
579
710
|
tx_hash: number[];
|
580
711
|
epoch: bigint;
|
581
712
|
epoch_timestamp_ms: bigint;
|
582
713
|
ids_created: bigint;
|
583
714
|
}
|
715
|
+
namespace TxContext {
|
716
|
+
const TYPE_QNAME = "0x2::tx_context::TxContext";
|
717
|
+
function type(): TypeDescriptor<TxContext>;
|
718
|
+
}
|
584
719
|
}
|
585
720
|
export declare namespace types { }
|
586
721
|
export declare class url extends SuiBaseProcessor {
|
@@ -590,10 +725,13 @@ export declare class url extends SuiBaseProcessor {
|
|
590
725
|
onEventUrl(func: (event: url.UrlInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): url;
|
591
726
|
}
|
592
727
|
export declare namespace url {
|
593
|
-
|
594
|
-
static TYPE_QNAME: string;
|
728
|
+
interface Url {
|
595
729
|
url: _0x1.ascii.String;
|
596
730
|
}
|
731
|
+
namespace Url {
|
732
|
+
const TYPE_QNAME = "0x2::url::Url";
|
733
|
+
function type(): TypeDescriptor<Url>;
|
734
|
+
}
|
597
735
|
interface UrlInstance extends TypedEventInstance<Url> {
|
598
736
|
data_decoded: Url;
|
599
737
|
type_arguments: [];
|
@@ -607,19 +745,25 @@ export declare class vec_map extends SuiBaseProcessor {
|
|
607
745
|
onEventVecMap(func: (event: vec_map.VecMapInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vec_map;
|
608
746
|
}
|
609
747
|
export declare namespace vec_map {
|
610
|
-
|
611
|
-
static TYPE_QNAME: string;
|
748
|
+
interface Entry<T0, T1> {
|
612
749
|
key: T0;
|
613
750
|
value: T1;
|
614
751
|
}
|
752
|
+
namespace Entry {
|
753
|
+
const TYPE_QNAME = "0x2::vec_map::Entry";
|
754
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Entry<T0, T1>>;
|
755
|
+
}
|
615
756
|
interface EntryInstance extends TypedEventInstance<Entry<any, any>> {
|
616
757
|
data_decoded: Entry<any, any>;
|
617
758
|
type_arguments: [string, string];
|
618
759
|
}
|
619
|
-
|
620
|
-
static TYPE_QNAME: string;
|
760
|
+
interface VecMap<T0, T1> {
|
621
761
|
contents: vec_map.Entry<T0, T1>[];
|
622
762
|
}
|
763
|
+
namespace VecMap {
|
764
|
+
const TYPE_QNAME = "0x2::vec_map::VecMap";
|
765
|
+
function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<VecMap<T0, T1>>;
|
766
|
+
}
|
623
767
|
interface VecMapInstance extends TypedEventInstance<VecMap<any, any>> {
|
624
768
|
data_decoded: VecMap<any, any>;
|
625
769
|
type_arguments: [string, string];
|
@@ -632,25 +776,34 @@ export declare class vec_set extends SuiBaseProcessor {
|
|
632
776
|
onEventVecSet(func: (event: vec_set.VecSetInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vec_set;
|
633
777
|
}
|
634
778
|
export declare namespace vec_set {
|
635
|
-
|
636
|
-
static TYPE_QNAME: string;
|
779
|
+
interface VecSet<T0> {
|
637
780
|
contents: T0[] | string;
|
638
781
|
}
|
782
|
+
namespace VecSet {
|
783
|
+
const TYPE_QNAME = "0x2::vec_set::VecSet";
|
784
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<VecSet<T0>>;
|
785
|
+
}
|
639
786
|
interface VecSetInstance extends TypedEventInstance<VecSet<any>> {
|
640
787
|
data_decoded: VecSet<any>;
|
641
788
|
type_arguments: [string];
|
642
789
|
}
|
643
790
|
}
|
644
791
|
export declare namespace versioned {
|
645
|
-
|
646
|
-
static TYPE_QNAME: string;
|
792
|
+
interface VersionChangeCap {
|
647
793
|
versioned_id: object_.ID;
|
648
794
|
old_version: bigint;
|
649
795
|
}
|
650
|
-
|
651
|
-
|
796
|
+
namespace VersionChangeCap {
|
797
|
+
const TYPE_QNAME = "0x2::versioned::VersionChangeCap";
|
798
|
+
function type(): TypeDescriptor<VersionChangeCap>;
|
799
|
+
}
|
800
|
+
interface Versioned {
|
652
801
|
id: object_.UID;
|
653
802
|
version: bigint;
|
654
803
|
}
|
804
|
+
namespace Versioned {
|
805
|
+
const TYPE_QNAME = "0x2::versioned::Versioned";
|
806
|
+
function type(): TypeDescriptor<Versioned>;
|
807
|
+
}
|
655
808
|
}
|
656
809
|
export declare function loadAllTypes(coder: MoveCoder): void;
|