@sentio/sdk 2.10.2 → 2.11.0-rc.2
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/codegen/codegen.js +0 -1
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/move/abstract-codegen.d.ts +2 -1
- package/lib/move/abstract-codegen.js +9 -8
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/move/abstract-move-coder.d.ts +2 -3
- package/lib/move/abstract-move-coder.js +6 -1
- package/lib/move/abstract-move-coder.js.map +1 -1
- package/lib/solana/builtin/types.d.ts +170 -170
- package/lib/solana/builtin/types.js +2 -1
- package/lib/solana/builtin/types.js.map +1 -1
- package/lib/sui/builtin/0x1.js +1 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +235 -640
- package/lib/sui/builtin/0x2.js +294 -716
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +566 -0
- package/lib/sui/builtin/0x3.js +681 -0
- package/lib/sui/builtin/0x3.js.map +1 -0
- package/lib/sui/builtin/index.d.ts +1 -0
- package/lib/sui/builtin/index.js +1 -0
- package/lib/sui/builtin/index.js.map +1 -1
- package/lib/sui/codegen/codegen.js +4 -3
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/context.d.ts +3 -3
- package/lib/sui/context.js +1 -1
- package/lib/sui/context.js.map +1 -1
- package/lib/sui/models.d.ts +8 -4
- package/lib/sui/models.js.map +1 -1
- package/lib/sui/move-coder.d.ts +9 -6
- package/lib/sui/move-coder.js +44 -8
- package/lib/sui/move-coder.js.map +1 -1
- package/lib/sui/move-types.js +7 -7
- package/lib/sui/move-types.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +3 -3
- package/lib/sui/sui-processor.js +15 -9
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/sui/utils.d.ts +2 -2
- package/lib/sui/utils.js +18 -5
- package/lib/sui/utils.js.map +1 -1
- package/lib/testing/sui-facet.d.ts +4 -4
- package/lib/testing/sui-facet.js +7 -7
- package/lib/testing/sui-facet.js.map +1 -1
- package/package.json +7 -5
- package/src/aptos/codegen/codegen.ts +0 -1
- package/src/move/abstract-codegen.ts +9 -8
- package/src/move/abstract-move-coder.ts +7 -3
- package/src/solana/builtin/types.ts +2 -1
- package/src/sui/abis/0x1.json +357 -357
- package/src/sui/abis/0x2.json +5563 -8247
- package/src/sui/abis/0x3.json +8399 -0
- package/src/sui/builtin/0x1.ts +1 -1
- package/src/sui/builtin/0x2.ts +531 -1537
- package/src/sui/builtin/0x3.ts +1515 -0
- package/src/sui/builtin/index.ts +1 -0
- package/src/sui/codegen/codegen.ts +5 -3
- package/src/sui/context.ts +4 -4
- package/src/sui/models.ts +9 -4
- package/src/sui/move-coder.ts +53 -15
- package/src/sui/move-types.ts +7 -7
- package/src/sui/sui-processor.ts +28 -15
- package/src/sui/utils.ts +28 -5
- package/src/testing/sui-facet.ts +19 -15
- package/src/eth/codegen/tsconfig.json +0 -8
package/lib/sui/builtin/0x2.d.ts
CHANGED
@@ -38,7 +38,25 @@ export declare namespace bcs {
|
|
38
38
|
}
|
39
39
|
}
|
40
40
|
export declare namespace bls12381 { }
|
41
|
-
export declare namespace
|
41
|
+
export declare namespace borrow {
|
42
|
+
class Borrow {
|
43
|
+
static TYPE_QNAME: string;
|
44
|
+
ref: SuiAddress;
|
45
|
+
obj: object_.ID;
|
46
|
+
}
|
47
|
+
class Referent<T0> {
|
48
|
+
static TYPE_QNAME: string;
|
49
|
+
id: SuiAddress;
|
50
|
+
value: _0x1.option.Option<T0>;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
export declare namespace clock {
|
54
|
+
class Clock {
|
55
|
+
static TYPE_QNAME: string;
|
56
|
+
id: object_.UID;
|
57
|
+
timestamp_ms: bigint;
|
58
|
+
}
|
59
|
+
}
|
42
60
|
export declare class coin extends SuiBaseProcessor {
|
43
61
|
constructor(options: SuiBindOptions);
|
44
62
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
@@ -105,60 +123,67 @@ export declare namespace coin {
|
|
105
123
|
type_arguments: [string];
|
106
124
|
}
|
107
125
|
}
|
108
|
-
export declare class
|
126
|
+
export declare class display extends SuiBaseProcessor {
|
109
127
|
constructor(options: SuiBindOptions);
|
110
128
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
111
|
-
static bind(options?: Partial<SuiBindOptions>):
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
129
|
+
static bind(options?: Partial<SuiBindOptions>): display;
|
130
|
+
onEntryAdd(func: (call: display.AddPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
|
131
|
+
onEntryAddMultiple(func: (call: display.AddMultiplePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
|
132
|
+
onEntryCreateAndKeep(func: (call: display.CreateAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
|
133
|
+
onEntryEdit(func: (call: display.EditPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
|
134
|
+
onEntryRemove(func: (call: display.RemovePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
|
135
|
+
onEntryUpdateVersion(func: (call: display.UpdateVersionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
|
136
|
+
onEventDisplayCreated(func: (event: display.DisplayCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): display;
|
137
|
+
onEventVersionUpdated(func: (event: display.VersionUpdatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): display;
|
138
|
+
}
|
139
|
+
export declare namespace display {
|
140
|
+
class Display<T0> {
|
119
141
|
static TYPE_QNAME: string;
|
120
142
|
id: object_.UID;
|
121
|
-
|
122
|
-
|
123
|
-
url: url.Url;
|
143
|
+
fields: vec_map.VecMap<string, string>;
|
144
|
+
version: number;
|
124
145
|
}
|
125
|
-
class
|
146
|
+
class DisplayCreated<T0> {
|
126
147
|
static TYPE_QNAME: string;
|
127
|
-
|
128
|
-
creator: SuiAddress;
|
129
|
-
name: string;
|
148
|
+
id: object_.ID;
|
130
149
|
}
|
131
|
-
interface
|
132
|
-
fields_decoded:
|
133
|
-
type_arguments: [];
|
150
|
+
interface DisplayCreatedInstance extends TypedEventInstance<DisplayCreated<any>> {
|
151
|
+
fields_decoded: DisplayCreated<any>;
|
152
|
+
type_arguments: [string];
|
134
153
|
}
|
135
|
-
|
136
|
-
|
137
|
-
|
154
|
+
class VersionUpdated<T0> {
|
155
|
+
static TYPE_QNAME: string;
|
156
|
+
id: object_.ID;
|
157
|
+
version: number;
|
158
|
+
fields: vec_map.VecMap<string, string>;
|
138
159
|
}
|
139
|
-
interface
|
140
|
-
|
141
|
-
type_arguments: [];
|
160
|
+
interface VersionUpdatedInstance extends TypedEventInstance<VersionUpdated<any>> {
|
161
|
+
fields_decoded: VersionUpdated<any>;
|
162
|
+
type_arguments: [string];
|
163
|
+
}
|
164
|
+
interface AddPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress, string]> {
|
165
|
+
arguments_decoded: [SuiAddress, string];
|
166
|
+
type_arguments: [string];
|
167
|
+
}
|
168
|
+
interface AddMultiplePayload<T0 = any> extends TypedFunctionPayload<[SuiAddress, string[]]> {
|
169
|
+
arguments_decoded: [SuiAddress, string[]];
|
170
|
+
type_arguments: [string];
|
142
171
|
}
|
143
|
-
interface
|
172
|
+
interface CreateAndKeepPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress]> {
|
144
173
|
arguments_decoded: [SuiAddress];
|
145
|
-
type_arguments: [];
|
174
|
+
type_arguments: [string];
|
146
175
|
}
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
151
|
-
static bind(options?: Partial<SuiBindOptions>): digest;
|
152
|
-
onEventSha3256Digest(func: (event: digest.Sha3256DigestInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): digest;
|
153
|
-
}
|
154
|
-
export declare namespace digest {
|
155
|
-
class Sha3256Digest {
|
156
|
-
static TYPE_QNAME: string;
|
157
|
-
digest: number[];
|
176
|
+
interface EditPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress, string]> {
|
177
|
+
arguments_decoded: [SuiAddress, string];
|
178
|
+
type_arguments: [string];
|
158
179
|
}
|
159
|
-
interface
|
160
|
-
|
161
|
-
type_arguments: [];
|
180
|
+
interface RemovePayload<T0 = any> extends TypedFunctionPayload<[SuiAddress]> {
|
181
|
+
arguments_decoded: [SuiAddress];
|
182
|
+
type_arguments: [string];
|
183
|
+
}
|
184
|
+
interface UpdateVersionPayload<T0 = any> extends TypedFunctionPayload<[]> {
|
185
|
+
arguments_decoded: [];
|
186
|
+
type_arguments: [string];
|
162
187
|
}
|
163
188
|
}
|
164
189
|
export declare namespace dynamic_field {
|
@@ -186,61 +211,28 @@ export declare namespace dynamic_object_field {
|
|
186
211
|
}
|
187
212
|
}
|
188
213
|
export declare namespace ecdsa_k1 { }
|
214
|
+
export declare namespace ecdsa_r1 { }
|
215
|
+
export declare namespace ecvrf { }
|
189
216
|
export declare namespace ed25519 { }
|
190
|
-
export declare class elliptic_curve extends SuiBaseProcessor {
|
191
|
-
constructor(options: SuiBindOptions);
|
192
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
193
|
-
static bind(options?: Partial<SuiBindOptions>): elliptic_curve;
|
194
|
-
onEventRistrettoPoint(func: (event: elliptic_curve.RistrettoPointInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): elliptic_curve;
|
195
|
-
onEventScalar(func: (event: elliptic_curve.ScalarInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): elliptic_curve;
|
196
|
-
}
|
197
|
-
export declare namespace elliptic_curve {
|
198
|
-
class RistrettoPoint {
|
199
|
-
static TYPE_QNAME: string;
|
200
|
-
value: number[];
|
201
|
-
}
|
202
|
-
interface RistrettoPointInstance extends TypedEventInstance<RistrettoPoint> {
|
203
|
-
fields_decoded: RistrettoPoint;
|
204
|
-
type_arguments: [];
|
205
|
-
}
|
206
|
-
class Scalar {
|
207
|
-
static TYPE_QNAME: string;
|
208
|
-
value: number[];
|
209
|
-
}
|
210
|
-
interface ScalarInstance extends TypedEventInstance<Scalar> {
|
211
|
-
fields_decoded: Scalar;
|
212
|
-
type_arguments: [];
|
213
|
-
}
|
214
|
-
}
|
215
|
-
export declare namespace epoch_time_lock {
|
216
|
-
class EpochTimeLock {
|
217
|
-
static TYPE_QNAME: string;
|
218
|
-
epoch: bigint;
|
219
|
-
}
|
220
|
-
}
|
221
|
-
export declare namespace erc721_metadata {
|
222
|
-
class ERC721Metadata {
|
223
|
-
static TYPE_QNAME: string;
|
224
|
-
token_id: erc721_metadata.TokenID;
|
225
|
-
name: string;
|
226
|
-
token_uri: url.Url;
|
227
|
-
}
|
228
|
-
class TokenID {
|
229
|
-
static TYPE_QNAME: string;
|
230
|
-
id: bigint;
|
231
|
-
}
|
232
|
-
}
|
233
217
|
export declare namespace event { }
|
234
|
-
export declare namespace genesis { }
|
235
218
|
export declare class groth16 extends SuiBaseProcessor {
|
236
219
|
constructor(options: SuiBindOptions);
|
237
220
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
238
221
|
static bind(options?: Partial<SuiBindOptions>): groth16;
|
222
|
+
onEventCurve(func: (event: groth16.CurveInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
239
223
|
onEventPreparedVerifyingKey(func: (event: groth16.PreparedVerifyingKeyInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
240
224
|
onEventProofPoints(func: (event: groth16.ProofPointsInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
241
225
|
onEventPublicProofInputs(func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
242
226
|
}
|
243
227
|
export declare namespace groth16 {
|
228
|
+
class Curve {
|
229
|
+
static TYPE_QNAME: string;
|
230
|
+
id: number;
|
231
|
+
}
|
232
|
+
interface CurveInstance extends TypedEventInstance<Curve> {
|
233
|
+
fields_decoded: Curve;
|
234
|
+
type_arguments: [];
|
235
|
+
}
|
244
236
|
class PreparedVerifyingKey {
|
245
237
|
static TYPE_QNAME: string;
|
246
238
|
vk_gamma_abc_g1_bytes: number[];
|
@@ -269,24 +261,74 @@ export declare namespace groth16 {
|
|
269
261
|
type_arguments: [];
|
270
262
|
}
|
271
263
|
}
|
264
|
+
export declare namespace hash { }
|
272
265
|
export declare namespace hex { }
|
273
266
|
export declare namespace hmac { }
|
274
|
-
export declare class
|
267
|
+
export declare class kiosk extends SuiBaseProcessor {
|
275
268
|
constructor(options: SuiBindOptions);
|
276
269
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
277
|
-
static bind(options?: Partial<SuiBindOptions>):
|
278
|
-
|
270
|
+
static bind(options?: Partial<SuiBindOptions>): kiosk;
|
271
|
+
onEventItem(func: (event: kiosk.ItemInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
|
272
|
+
onEventItemListed(func: (event: kiosk.ItemListedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
|
273
|
+
onEventListing(func: (event: kiosk.ListingInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
|
274
|
+
onEventLock(func: (event: kiosk.LockInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
|
279
275
|
}
|
280
|
-
export declare namespace
|
281
|
-
class
|
276
|
+
export declare namespace kiosk {
|
277
|
+
class Item {
|
282
278
|
static TYPE_QNAME: string;
|
283
|
-
|
284
|
-
digest: digest.Sha3256Digest;
|
279
|
+
id: object_.ID;
|
285
280
|
}
|
286
|
-
interface
|
287
|
-
fields_decoded:
|
281
|
+
interface ItemInstance extends TypedEventInstance<Item> {
|
282
|
+
fields_decoded: Item;
|
288
283
|
type_arguments: [];
|
289
284
|
}
|
285
|
+
class ItemListed<T0> {
|
286
|
+
static TYPE_QNAME: string;
|
287
|
+
kiosk: object_.ID;
|
288
|
+
id: object_.ID;
|
289
|
+
price: bigint;
|
290
|
+
}
|
291
|
+
interface ItemListedInstance extends TypedEventInstance<ItemListed<any>> {
|
292
|
+
fields_decoded: ItemListed<any>;
|
293
|
+
type_arguments: [string];
|
294
|
+
}
|
295
|
+
class Kiosk {
|
296
|
+
static TYPE_QNAME: string;
|
297
|
+
id: object_.UID;
|
298
|
+
profits: balance.Balance<sui.SUI>;
|
299
|
+
owner: SuiAddress;
|
300
|
+
item_count: number;
|
301
|
+
allow_extensions: Boolean;
|
302
|
+
}
|
303
|
+
class KioskOwnerCap {
|
304
|
+
static TYPE_QNAME: string;
|
305
|
+
id: object_.UID;
|
306
|
+
for: object_.ID;
|
307
|
+
}
|
308
|
+
class Listing {
|
309
|
+
static TYPE_QNAME: string;
|
310
|
+
id: object_.ID;
|
311
|
+
is_exclusive: Boolean;
|
312
|
+
}
|
313
|
+
interface ListingInstance extends TypedEventInstance<Listing> {
|
314
|
+
fields_decoded: Listing;
|
315
|
+
type_arguments: [];
|
316
|
+
}
|
317
|
+
class Lock {
|
318
|
+
static TYPE_QNAME: string;
|
319
|
+
id: object_.ID;
|
320
|
+
}
|
321
|
+
interface LockInstance extends TypedEventInstance<Lock> {
|
322
|
+
fields_decoded: Lock;
|
323
|
+
type_arguments: [];
|
324
|
+
}
|
325
|
+
class PurchaseCap<T0> {
|
326
|
+
static TYPE_QNAME: string;
|
327
|
+
id: object_.UID;
|
328
|
+
kiosk_id: object_.ID;
|
329
|
+
item_id: object_.ID;
|
330
|
+
min_price: bigint;
|
331
|
+
}
|
290
332
|
}
|
291
333
|
export declare namespace linked_table {
|
292
334
|
class LinkedTable<T0, T1> {
|
@@ -303,29 +345,6 @@ export declare namespace linked_table {
|
|
303
345
|
value: T1;
|
304
346
|
}
|
305
347
|
}
|
306
|
-
export declare class locked_coin extends SuiBaseProcessor {
|
307
|
-
constructor(options: SuiBindOptions);
|
308
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
309
|
-
static bind(options?: Partial<SuiBindOptions>): locked_coin;
|
310
|
-
onEntryLockCoin(func: (call: locked_coin.LockCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): locked_coin;
|
311
|
-
onEntryUnlockCoin(func: (call: locked_coin.UnlockCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): locked_coin;
|
312
|
-
}
|
313
|
-
export declare namespace locked_coin {
|
314
|
-
class LockedCoin<T0> {
|
315
|
-
static TYPE_QNAME: string;
|
316
|
-
id: object_.UID;
|
317
|
-
balance: balance.Balance<T0>;
|
318
|
-
locked_until_epoch: epoch_time_lock.EpochTimeLock;
|
319
|
-
}
|
320
|
-
interface LockCoinPayload<T0 = any> extends TypedFunctionPayload<[coin.Coin<T0>, SuiAddress, bigint]> {
|
321
|
-
arguments_decoded: [coin.Coin<T0>, SuiAddress, bigint];
|
322
|
-
type_arguments: [string];
|
323
|
-
}
|
324
|
-
interface UnlockCoinPayload<T0 = any> extends TypedFunctionPayload<[locked_coin.LockedCoin<T0>]> {
|
325
|
-
arguments_decoded: [locked_coin.LockedCoin<T0>];
|
326
|
-
type_arguments: [string];
|
327
|
-
}
|
328
|
-
}
|
329
348
|
export declare namespace math { }
|
330
349
|
export declare namespace object_ {
|
331
350
|
type ID = string;
|
@@ -348,6 +367,53 @@ export declare namespace object_table {
|
|
348
367
|
size: bigint;
|
349
368
|
}
|
350
369
|
}
|
370
|
+
export declare class package_ extends SuiBaseProcessor {
|
371
|
+
constructor(options: SuiBindOptions);
|
372
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
373
|
+
static bind(options?: Partial<SuiBindOptions>): package_;
|
374
|
+
onEntryMakeImmutable(func: (call: package_.MakeImmutablePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): package_;
|
375
|
+
onEntryOnlyAdditiveUpgrades(func: (call: package_.OnlyAdditiveUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): package_;
|
376
|
+
onEntryOnlyDepUpgrades(func: (call: package_.OnlyDepUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): package_;
|
377
|
+
}
|
378
|
+
export declare namespace package_ {
|
379
|
+
class Publisher {
|
380
|
+
static TYPE_QNAME: string;
|
381
|
+
id: object_.UID;
|
382
|
+
package: _0x1.ascii.String;
|
383
|
+
module_name: _0x1.ascii.String;
|
384
|
+
}
|
385
|
+
class UpgradeCap {
|
386
|
+
static TYPE_QNAME: string;
|
387
|
+
id: object_.UID;
|
388
|
+
package: object_.ID;
|
389
|
+
version: bigint;
|
390
|
+
policy: number;
|
391
|
+
}
|
392
|
+
class UpgradeReceipt {
|
393
|
+
static TYPE_QNAME: string;
|
394
|
+
cap: object_.ID;
|
395
|
+
package: object_.ID;
|
396
|
+
}
|
397
|
+
class UpgradeTicket {
|
398
|
+
static TYPE_QNAME: string;
|
399
|
+
cap: object_.ID;
|
400
|
+
package: object_.ID;
|
401
|
+
policy: number;
|
402
|
+
digest: number[];
|
403
|
+
}
|
404
|
+
interface MakeImmutablePayload extends TypedFunctionPayload<[]> {
|
405
|
+
arguments_decoded: [];
|
406
|
+
type_arguments: [];
|
407
|
+
}
|
408
|
+
interface OnlyAdditiveUpgradesPayload extends TypedFunctionPayload<[]> {
|
409
|
+
arguments_decoded: [];
|
410
|
+
type_arguments: [];
|
411
|
+
}
|
412
|
+
interface OnlyDepUpgradesPayload extends TypedFunctionPayload<[]> {
|
413
|
+
arguments_decoded: [];
|
414
|
+
type_arguments: [];
|
415
|
+
}
|
416
|
+
}
|
351
417
|
export declare class pay extends SuiBaseProcessor {
|
352
418
|
constructor(options: SuiBindOptions);
|
353
419
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
@@ -401,467 +467,90 @@ export declare namespace priority_queue {
|
|
401
467
|
entries: priority_queue.Entry<T0>[];
|
402
468
|
}
|
403
469
|
}
|
404
|
-
export declare namespace
|
405
|
-
|
406
|
-
static TYPE_QNAME: string;
|
407
|
-
id: object_.UID;
|
408
|
-
package: _0x1.ascii.String;
|
409
|
-
module_name: _0x1.ascii.String;
|
410
|
-
}
|
411
|
-
}
|
412
|
-
export declare class safe extends SuiBaseProcessor {
|
470
|
+
export declare namespace prover { }
|
471
|
+
export declare class sui extends SuiBaseProcessor {
|
413
472
|
constructor(options: SuiBindOptions);
|
414
473
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
415
|
-
static bind(options?: Partial<SuiBindOptions>):
|
416
|
-
|
417
|
-
onEntryCreateEmpty(func: (call: safe.CreateEmptyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
418
|
-
onEntryDeposit(func: (call: safe.DepositPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
419
|
-
onEntryRevokeTransferCapability(func: (call: safe.RevokeTransferCapabilityPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
420
|
-
onEntrySelfRevokeTransferCapability(func: (call: safe.SelfRevokeTransferCapabilityPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
421
|
-
onEntryWithdraw(func: (call: safe.WithdrawPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
474
|
+
static bind(options?: Partial<SuiBindOptions>): sui;
|
475
|
+
onEntryTransfer(func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui;
|
422
476
|
}
|
423
|
-
export declare namespace
|
424
|
-
class
|
425
|
-
static TYPE_QNAME: string;
|
426
|
-
id: object_.UID;
|
427
|
-
safe_id: object_.ID;
|
428
|
-
}
|
429
|
-
class Safe<T0> {
|
430
|
-
static TYPE_QNAME: string;
|
431
|
-
id: object_.UID;
|
432
|
-
balance: balance.Balance<T0>;
|
433
|
-
allowed_safes: vec_set.VecSet<object_.ID>;
|
434
|
-
}
|
435
|
-
class TransferCapability<T0> {
|
477
|
+
export declare namespace sui {
|
478
|
+
class SUI {
|
436
479
|
static TYPE_QNAME: string;
|
437
|
-
|
438
|
-
safe_id: object_.ID;
|
439
|
-
amount: bigint;
|
440
|
-
}
|
441
|
-
interface CreatePayload<T0 = any> extends TypedFunctionPayload<[coin.Coin<T0>]> {
|
442
|
-
arguments_decoded: [coin.Coin<T0>];
|
443
|
-
type_arguments: [string];
|
444
|
-
}
|
445
|
-
interface CreateEmptyPayload<T0 = any> extends TypedFunctionPayload<[]> {
|
446
|
-
arguments_decoded: [];
|
447
|
-
type_arguments: [string];
|
448
|
-
}
|
449
|
-
interface DepositPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress]> {
|
450
|
-
arguments_decoded: [SuiAddress];
|
451
|
-
type_arguments: [string];
|
452
|
-
}
|
453
|
-
interface RevokeTransferCapabilityPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
|
454
|
-
arguments_decoded: [SuiAddress, SuiAddress];
|
455
|
-
type_arguments: [string];
|
456
|
-
}
|
457
|
-
interface SelfRevokeTransferCapabilityPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress]> {
|
458
|
-
arguments_decoded: [SuiAddress];
|
459
|
-
type_arguments: [string];
|
480
|
+
dummy_field: Boolean;
|
460
481
|
}
|
461
|
-
interface
|
462
|
-
arguments_decoded: [
|
463
|
-
type_arguments: [
|
482
|
+
interface TransferPayload extends TypedFunctionPayload<[coin.Coin<sui.SUI>]> {
|
483
|
+
arguments_decoded: [coin.Coin<sui.SUI>];
|
484
|
+
type_arguments: [];
|
464
485
|
}
|
465
486
|
}
|
466
|
-
export declare
|
467
|
-
|
468
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
469
|
-
static bind(options?: Partial<SuiBindOptions>): stake;
|
470
|
-
onEntryBurn(func: (call: stake.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): stake;
|
471
|
-
}
|
472
|
-
export declare namespace stake {
|
473
|
-
class Stake {
|
487
|
+
export declare namespace table {
|
488
|
+
class Table<T0, T1> {
|
474
489
|
static TYPE_QNAME: string;
|
475
490
|
id: object_.UID;
|
476
|
-
|
477
|
-
locked_until_epoch: _0x1.option.Option<epoch_time_lock.EpochTimeLock>;
|
478
|
-
}
|
479
|
-
interface BurnPayload extends TypedFunctionPayload<[stake.Stake]> {
|
480
|
-
arguments_decoded: [stake.Stake];
|
481
|
-
type_arguments: [];
|
491
|
+
size: bigint;
|
482
492
|
}
|
483
493
|
}
|
484
|
-
export declare namespace
|
485
|
-
class
|
494
|
+
export declare namespace table_vec {
|
495
|
+
class TableVec<T0> {
|
486
496
|
static TYPE_QNAME: string;
|
487
|
-
|
488
|
-
balance: balance.Balance<sui.SUI>;
|
489
|
-
current_epoch_amount: bigint;
|
497
|
+
contents: table.Table<bigint, T0>;
|
490
498
|
}
|
491
499
|
}
|
492
|
-
export declare
|
500
|
+
export declare namespace transfer { }
|
501
|
+
export declare class transfer_policy extends SuiBaseProcessor {
|
493
502
|
constructor(options: SuiBindOptions);
|
494
503
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
495
|
-
static bind(options?: Partial<SuiBindOptions>):
|
496
|
-
|
497
|
-
|
498
|
-
onEntryWithdrawFromInactivePool(func: (call: staking_pool.WithdrawFromInactivePoolPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): staking_pool;
|
499
|
-
onEventPoolTokenExchangeRate(func: (event: staking_pool.PoolTokenExchangeRateInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): staking_pool;
|
504
|
+
static bind(options?: Partial<SuiBindOptions>): transfer_policy;
|
505
|
+
onEventRuleKey(func: (event: transfer_policy.RuleKeyInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): transfer_policy;
|
506
|
+
onEventTransferPolicyCreated(func: (event: transfer_policy.TransferPolicyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): transfer_policy;
|
500
507
|
}
|
501
|
-
export declare namespace
|
502
|
-
class
|
503
|
-
static TYPE_QNAME: string;
|
504
|
-
id: object_.UID;
|
505
|
-
staked_sui_id: object_.ID;
|
506
|
-
pool_tokens: balance.Balance<staking_pool.DelegationToken>;
|
507
|
-
principal_sui_amount: bigint;
|
508
|
-
}
|
509
|
-
class DelegationToken {
|
508
|
+
export declare namespace transfer_policy {
|
509
|
+
class RuleKey<T0> {
|
510
510
|
static TYPE_QNAME: string;
|
511
511
|
dummy_field: Boolean;
|
512
512
|
}
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
pool: staking_pool.StakingPool;
|
517
|
-
}
|
518
|
-
class PendingDelegationEntry {
|
519
|
-
static TYPE_QNAME: string;
|
520
|
-
delegator: SuiAddress;
|
521
|
-
sui_amount: bigint;
|
522
|
-
}
|
523
|
-
class PendingWithdrawEntry {
|
524
|
-
static TYPE_QNAME: string;
|
525
|
-
delegator: SuiAddress;
|
526
|
-
principal_withdraw_amount: bigint;
|
527
|
-
withdrawn_pool_tokens: balance.Balance<staking_pool.DelegationToken>;
|
528
|
-
}
|
529
|
-
class PoolTokenExchangeRate {
|
530
|
-
static TYPE_QNAME: string;
|
531
|
-
sui_amount: bigint;
|
532
|
-
pool_token_amount: bigint;
|
533
|
-
}
|
534
|
-
interface PoolTokenExchangeRateInstance extends TypedEventInstance<PoolTokenExchangeRate> {
|
535
|
-
fields_decoded: PoolTokenExchangeRate;
|
536
|
-
type_arguments: [];
|
513
|
+
interface RuleKeyInstance extends TypedEventInstance<RuleKey<any>> {
|
514
|
+
fields_decoded: RuleKey<any>;
|
515
|
+
type_arguments: [string];
|
537
516
|
}
|
538
|
-
class
|
517
|
+
class TransferPolicy<T0> {
|
539
518
|
static TYPE_QNAME: string;
|
540
519
|
id: object_.UID;
|
541
|
-
|
542
|
-
|
543
|
-
delegation_request_epoch: bigint;
|
544
|
-
principal: balance.Balance<sui.SUI>;
|
545
|
-
sui_token_lock: _0x1.option.Option<epoch_time_lock.EpochTimeLock>;
|
546
|
-
}
|
547
|
-
class StakingPool {
|
548
|
-
static TYPE_QNAME: string;
|
549
|
-
validator_address: SuiAddress;
|
550
|
-
starting_epoch: bigint;
|
551
|
-
sui_balance: bigint;
|
552
|
-
rewards_pool: balance.Balance<sui.SUI>;
|
553
|
-
delegation_token_supply: balance.Supply<staking_pool.DelegationToken>;
|
554
|
-
pending_delegations: linked_table.LinkedTable<object_.ID, staking_pool.PendingDelegationEntry>;
|
555
|
-
pending_withdraws: table_vec.TableVec<staking_pool.PendingWithdrawEntry>;
|
556
|
-
}
|
557
|
-
interface DestroyEmptyDelegationPayload extends TypedFunctionPayload<[]> {
|
558
|
-
arguments_decoded: [];
|
559
|
-
type_arguments: [];
|
560
|
-
}
|
561
|
-
interface DestroyEmptyStakedSuiPayload extends TypedFunctionPayload<[]> {
|
562
|
-
arguments_decoded: [];
|
563
|
-
type_arguments: [];
|
564
|
-
}
|
565
|
-
interface WithdrawFromInactivePoolPayload extends TypedFunctionPayload<[
|
566
|
-
SuiAddress,
|
567
|
-
staking_pool.StakedSui,
|
568
|
-
staking_pool.Delegation
|
569
|
-
]> {
|
570
|
-
arguments_decoded: [
|
571
|
-
SuiAddress,
|
572
|
-
staking_pool.StakedSui,
|
573
|
-
staking_pool.Delegation
|
574
|
-
];
|
575
|
-
type_arguments: [];
|
576
|
-
}
|
577
|
-
}
|
578
|
-
export declare class sui extends SuiBaseProcessor {
|
579
|
-
constructor(options: SuiBindOptions);
|
580
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
581
|
-
static bind(options?: Partial<SuiBindOptions>): sui;
|
582
|
-
onEntryTransfer(func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui;
|
583
|
-
}
|
584
|
-
export declare namespace sui {
|
585
|
-
class SUI {
|
586
|
-
static TYPE_QNAME: string;
|
587
|
-
dummy_field: Boolean;
|
588
|
-
}
|
589
|
-
interface TransferPayload extends TypedFunctionPayload<[coin.Coin<sui.SUI>]> {
|
590
|
-
arguments_decoded: [coin.Coin<sui.SUI>];
|
591
|
-
type_arguments: [];
|
520
|
+
balance: balance.Balance<sui.SUI>;
|
521
|
+
rules: vec_set.VecSet<_0x1.type_name.TypeName>;
|
592
522
|
}
|
593
|
-
|
594
|
-
export declare class sui_system extends SuiBaseProcessor {
|
595
|
-
constructor(options: SuiBindOptions);
|
596
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
597
|
-
static bind(options?: Partial<SuiBindOptions>): sui_system;
|
598
|
-
onEntryAdvanceEpoch(func: (call: sui_system.AdvanceEpochPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
599
|
-
onEntryAdvanceEpochSafeMode(func: (call: sui_system.AdvanceEpochSafeModePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
600
|
-
onEntryCancelDelegationRequest(func: (call: sui_system.CancelDelegationRequestPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
601
|
-
onEntryReportValidator(func: (call: sui_system.ReportValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
602
|
-
onEntryRequestAddDelegation(func: (call: sui_system.RequestAddDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
603
|
-
onEntryRequestAddDelegationMulCoin(func: (call: sui_system.RequestAddDelegationMulCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
604
|
-
onEntryRequestAddDelegationMulLockedCoin(func: (call: sui_system.RequestAddDelegationMulLockedCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
605
|
-
onEntryRequestAddDelegationWithLockedCoin(func: (call: sui_system.RequestAddDelegationWithLockedCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
606
|
-
onEntryRequestAddStake(func: (call: sui_system.RequestAddStakePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
607
|
-
onEntryRequestAddStakeWithLockedCoin(func: (call: sui_system.RequestAddStakeWithLockedCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
608
|
-
onEntryRequestAddValidator(func: (call: sui_system.RequestAddValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
609
|
-
onEntryRequestRemoveValidator(func: (call: sui_system.RequestRemoveValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
610
|
-
onEntryRequestSetCommissionRate(func: (call: sui_system.RequestSetCommissionRatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
611
|
-
onEntryRequestSetGasPrice(func: (call: sui_system.RequestSetGasPricePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
612
|
-
onEntryRequestSwitchDelegation(func: (call: sui_system.RequestSwitchDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
613
|
-
onEntryRequestWithdrawDelegation(func: (call: sui_system.RequestWithdrawDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
614
|
-
onEntryRequestWithdrawStake(func: (call: sui_system.RequestWithdrawStakePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
615
|
-
onEntryUndoReportValidator(func: (call: sui_system.UndoReportValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
616
|
-
onEventSystemEpochInfo(func: (event: sui_system.SystemEpochInfoInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): sui_system;
|
617
|
-
}
|
618
|
-
export declare namespace sui_system {
|
619
|
-
class SuiSystemState {
|
523
|
+
class TransferPolicyCap<T0> {
|
620
524
|
static TYPE_QNAME: string;
|
621
525
|
id: object_.UID;
|
622
|
-
|
623
|
-
validators: validator_set.ValidatorSet;
|
624
|
-
sui_supply: balance.Supply<sui.SUI>;
|
625
|
-
storage_fund: balance.Balance<sui.SUI>;
|
626
|
-
parameters: sui_system.SystemParameters;
|
627
|
-
reference_gas_price: bigint;
|
628
|
-
validator_report_records: vec_map.VecMap<SuiAddress, vec_set.VecSet<SuiAddress>>;
|
629
|
-
stake_subsidy: stake_subsidy.StakeSubsidy;
|
630
|
-
safe_mode: Boolean;
|
631
|
-
}
|
632
|
-
class SystemEpochInfo {
|
633
|
-
static TYPE_QNAME: string;
|
634
|
-
epoch: bigint;
|
635
|
-
reference_gas_price: bigint;
|
636
|
-
total_stake: bigint;
|
637
|
-
storage_fund_inflows: bigint;
|
638
|
-
storage_fund_outflows: bigint;
|
639
|
-
storage_fund_balance: bigint;
|
640
|
-
stake_subsidy_amount: bigint;
|
641
|
-
total_gas_fees: bigint;
|
642
|
-
total_stake_rewards: bigint;
|
643
|
-
}
|
644
|
-
interface SystemEpochInfoInstance extends TypedEventInstance<SystemEpochInfo> {
|
645
|
-
fields_decoded: SystemEpochInfo;
|
646
|
-
type_arguments: [];
|
526
|
+
policy_id: object_.ID;
|
647
527
|
}
|
648
|
-
class
|
528
|
+
class TransferPolicyCreated<T0> {
|
649
529
|
static TYPE_QNAME: string;
|
650
|
-
|
651
|
-
max_validator_candidate_count: bigint;
|
652
|
-
storage_gas_price: bigint;
|
653
|
-
}
|
654
|
-
interface AdvanceEpochPayload extends TypedFunctionPayload<[
|
655
|
-
SuiAddress,
|
656
|
-
bigint,
|
657
|
-
bigint,
|
658
|
-
bigint,
|
659
|
-
bigint,
|
660
|
-
bigint,
|
661
|
-
bigint,
|
662
|
-
bigint
|
663
|
-
]> {
|
664
|
-
arguments_decoded: [
|
665
|
-
SuiAddress,
|
666
|
-
bigint,
|
667
|
-
bigint,
|
668
|
-
bigint,
|
669
|
-
bigint,
|
670
|
-
bigint,
|
671
|
-
bigint,
|
672
|
-
bigint
|
673
|
-
];
|
674
|
-
type_arguments: [];
|
675
|
-
}
|
676
|
-
interface AdvanceEpochSafeModePayload extends TypedFunctionPayload<[SuiAddress, bigint]> {
|
677
|
-
arguments_decoded: [SuiAddress, bigint];
|
678
|
-
type_arguments: [];
|
679
|
-
}
|
680
|
-
interface CancelDelegationRequestPayload extends TypedFunctionPayload<[SuiAddress, staking_pool.StakedSui]> {
|
681
|
-
arguments_decoded: [SuiAddress, staking_pool.StakedSui];
|
682
|
-
type_arguments: [];
|
683
|
-
}
|
684
|
-
interface ReportValidatorPayload extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
|
685
|
-
arguments_decoded: [SuiAddress, SuiAddress];
|
686
|
-
type_arguments: [];
|
687
|
-
}
|
688
|
-
interface RequestAddDelegationPayload extends TypedFunctionPayload<[SuiAddress, coin.Coin<sui.SUI>, SuiAddress]> {
|
689
|
-
arguments_decoded: [SuiAddress, coin.Coin<sui.SUI>, SuiAddress];
|
690
|
-
type_arguments: [];
|
691
|
-
}
|
692
|
-
interface RequestAddDelegationMulCoinPayload extends TypedFunctionPayload<[
|
693
|
-
SuiAddress,
|
694
|
-
coin.Coin<sui.SUI>[],
|
695
|
-
_0x1.option.Option<bigint>,
|
696
|
-
SuiAddress
|
697
|
-
]> {
|
698
|
-
arguments_decoded: [
|
699
|
-
SuiAddress,
|
700
|
-
coin.Coin<sui.SUI>[],
|
701
|
-
_0x1.option.Option<bigint>,
|
702
|
-
SuiAddress
|
703
|
-
];
|
704
|
-
type_arguments: [];
|
705
|
-
}
|
706
|
-
interface RequestAddDelegationMulLockedCoinPayload extends TypedFunctionPayload<[
|
707
|
-
SuiAddress,
|
708
|
-
locked_coin.LockedCoin<sui.SUI>[],
|
709
|
-
_0x1.option.Option<bigint>,
|
710
|
-
SuiAddress
|
711
|
-
]> {
|
712
|
-
arguments_decoded: [
|
713
|
-
SuiAddress,
|
714
|
-
locked_coin.LockedCoin<sui.SUI>[],
|
715
|
-
_0x1.option.Option<bigint>,
|
716
|
-
SuiAddress
|
717
|
-
];
|
718
|
-
type_arguments: [];
|
719
|
-
}
|
720
|
-
interface RequestAddDelegationWithLockedCoinPayload extends TypedFunctionPayload<[
|
721
|
-
SuiAddress,
|
722
|
-
locked_coin.LockedCoin<sui.SUI>,
|
723
|
-
SuiAddress
|
724
|
-
]> {
|
725
|
-
arguments_decoded: [
|
726
|
-
SuiAddress,
|
727
|
-
locked_coin.LockedCoin<sui.SUI>,
|
728
|
-
SuiAddress
|
729
|
-
];
|
730
|
-
type_arguments: [];
|
731
|
-
}
|
732
|
-
interface RequestAddStakePayload extends TypedFunctionPayload<[SuiAddress, coin.Coin<sui.SUI>]> {
|
733
|
-
arguments_decoded: [SuiAddress, coin.Coin<sui.SUI>];
|
734
|
-
type_arguments: [];
|
735
|
-
}
|
736
|
-
interface RequestAddStakeWithLockedCoinPayload extends TypedFunctionPayload<[
|
737
|
-
SuiAddress,
|
738
|
-
locked_coin.LockedCoin<sui.SUI>
|
739
|
-
]> {
|
740
|
-
arguments_decoded: [SuiAddress, locked_coin.LockedCoin<sui.SUI>];
|
741
|
-
type_arguments: [];
|
742
|
-
}
|
743
|
-
interface RequestAddValidatorPayload extends TypedFunctionPayload<[
|
744
|
-
SuiAddress,
|
745
|
-
number[],
|
746
|
-
number[],
|
747
|
-
number[],
|
748
|
-
number[],
|
749
|
-
number[],
|
750
|
-
number[],
|
751
|
-
number[],
|
752
|
-
number[],
|
753
|
-
number[],
|
754
|
-
number[],
|
755
|
-
number[],
|
756
|
-
coin.Coin<sui.SUI>,
|
757
|
-
bigint,
|
758
|
-
bigint
|
759
|
-
]> {
|
760
|
-
arguments_decoded: [
|
761
|
-
SuiAddress,
|
762
|
-
number[],
|
763
|
-
number[],
|
764
|
-
number[],
|
765
|
-
number[],
|
766
|
-
number[],
|
767
|
-
number[],
|
768
|
-
number[],
|
769
|
-
number[],
|
770
|
-
number[],
|
771
|
-
number[],
|
772
|
-
number[],
|
773
|
-
coin.Coin<sui.SUI>,
|
774
|
-
bigint,
|
775
|
-
bigint
|
776
|
-
];
|
777
|
-
type_arguments: [];
|
778
|
-
}
|
779
|
-
interface RequestRemoveValidatorPayload extends TypedFunctionPayload<[SuiAddress]> {
|
780
|
-
arguments_decoded: [SuiAddress];
|
781
|
-
type_arguments: [];
|
782
|
-
}
|
783
|
-
interface RequestSetCommissionRatePayload extends TypedFunctionPayload<[SuiAddress, bigint]> {
|
784
|
-
arguments_decoded: [SuiAddress, bigint];
|
785
|
-
type_arguments: [];
|
786
|
-
}
|
787
|
-
interface RequestSetGasPricePayload extends TypedFunctionPayload<[SuiAddress, bigint]> {
|
788
|
-
arguments_decoded: [SuiAddress, bigint];
|
789
|
-
type_arguments: [];
|
790
|
-
}
|
791
|
-
interface RequestSwitchDelegationPayload extends TypedFunctionPayload<[
|
792
|
-
SuiAddress,
|
793
|
-
staking_pool.Delegation,
|
794
|
-
staking_pool.StakedSui,
|
795
|
-
SuiAddress
|
796
|
-
]> {
|
797
|
-
arguments_decoded: [
|
798
|
-
SuiAddress,
|
799
|
-
staking_pool.Delegation,
|
800
|
-
staking_pool.StakedSui,
|
801
|
-
SuiAddress
|
802
|
-
];
|
803
|
-
type_arguments: [];
|
804
|
-
}
|
805
|
-
interface RequestWithdrawDelegationPayload extends TypedFunctionPayload<[
|
806
|
-
SuiAddress,
|
807
|
-
staking_pool.Delegation,
|
808
|
-
staking_pool.StakedSui
|
809
|
-
]> {
|
810
|
-
arguments_decoded: [
|
811
|
-
SuiAddress,
|
812
|
-
staking_pool.Delegation,
|
813
|
-
staking_pool.StakedSui
|
814
|
-
];
|
815
|
-
type_arguments: [];
|
816
|
-
}
|
817
|
-
interface RequestWithdrawStakePayload extends TypedFunctionPayload<[SuiAddress, SuiAddress, bigint]> {
|
818
|
-
arguments_decoded: [SuiAddress, SuiAddress, bigint];
|
819
|
-
type_arguments: [];
|
820
|
-
}
|
821
|
-
interface UndoReportValidatorPayload extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
|
822
|
-
arguments_decoded: [SuiAddress, SuiAddress];
|
823
|
-
type_arguments: [];
|
530
|
+
id: object_.ID;
|
824
531
|
}
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
static TYPE_QNAME: string;
|
829
|
-
id: object_.UID;
|
830
|
-
size: bigint;
|
532
|
+
interface TransferPolicyCreatedInstance extends TypedEventInstance<TransferPolicyCreated<any>> {
|
533
|
+
fields_decoded: TransferPolicyCreated<any>;
|
534
|
+
type_arguments: [string];
|
831
535
|
}
|
832
|
-
|
833
|
-
export declare namespace table_vec {
|
834
|
-
class TableVec<T0> {
|
536
|
+
class TransferRequest<T0> {
|
835
537
|
static TYPE_QNAME: string;
|
836
|
-
|
538
|
+
item: object_.ID;
|
539
|
+
paid: bigint;
|
540
|
+
from: object_.ID;
|
541
|
+
receipts: vec_set.VecSet<_0x1.type_name.TypeName>;
|
837
542
|
}
|
838
543
|
}
|
839
|
-
export declare namespace transfer { }
|
840
544
|
export declare namespace tx_context {
|
841
545
|
class TxContext {
|
842
546
|
static TYPE_QNAME: string;
|
843
547
|
sender: SuiAddress;
|
844
548
|
tx_hash: number[];
|
845
549
|
epoch: bigint;
|
550
|
+
epoch_timestamp_ms: bigint;
|
846
551
|
ids_created: bigint;
|
847
552
|
}
|
848
553
|
}
|
849
|
-
export declare class typed_id extends SuiBaseProcessor {
|
850
|
-
constructor(options: SuiBindOptions);
|
851
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
852
|
-
static bind(options?: Partial<SuiBindOptions>): typed_id;
|
853
|
-
onEventTypedID(func: (event: typed_id.TypedIDInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): typed_id;
|
854
|
-
}
|
855
|
-
export declare namespace typed_id {
|
856
|
-
class TypedID<T0> {
|
857
|
-
static TYPE_QNAME: string;
|
858
|
-
id: object_.ID;
|
859
|
-
}
|
860
|
-
interface TypedIDInstance extends TypedEventInstance<TypedID<any>> {
|
861
|
-
fields_decoded: TypedID<any>;
|
862
|
-
type_arguments: [string];
|
863
|
-
}
|
864
|
-
}
|
865
554
|
export declare namespace types { }
|
866
555
|
export declare class url extends SuiBaseProcessor {
|
867
556
|
constructor(options: SuiBindOptions);
|
@@ -879,105 +568,6 @@ export declare namespace url {
|
|
879
568
|
type_arguments: [];
|
880
569
|
}
|
881
570
|
}
|
882
|
-
export declare class validator extends SuiBaseProcessor {
|
883
|
-
constructor(options: SuiBindOptions);
|
884
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
885
|
-
static bind(options?: Partial<SuiBindOptions>): validator;
|
886
|
-
onEventValidatorMetadata(func: (event: validator.ValidatorMetadataInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator;
|
887
|
-
}
|
888
|
-
export declare namespace validator {
|
889
|
-
class Validator {
|
890
|
-
static TYPE_QNAME: string;
|
891
|
-
metadata: validator.ValidatorMetadata;
|
892
|
-
voting_power: bigint;
|
893
|
-
stake_amount: bigint;
|
894
|
-
pending_stake: bigint;
|
895
|
-
pending_withdraw: bigint;
|
896
|
-
gas_price: bigint;
|
897
|
-
delegation_staking_pool: staking_pool.StakingPool;
|
898
|
-
commission_rate: bigint;
|
899
|
-
}
|
900
|
-
class ValidatorMetadata {
|
901
|
-
static TYPE_QNAME: string;
|
902
|
-
sui_address: SuiAddress;
|
903
|
-
pubkey_bytes: number[];
|
904
|
-
network_pubkey_bytes: number[];
|
905
|
-
worker_pubkey_bytes: number[];
|
906
|
-
proof_of_possession: number[];
|
907
|
-
name: string;
|
908
|
-
description: string;
|
909
|
-
image_url: url.Url;
|
910
|
-
project_url: url.Url;
|
911
|
-
net_address: number[];
|
912
|
-
consensus_address: number[];
|
913
|
-
worker_address: number[];
|
914
|
-
next_epoch_stake: bigint;
|
915
|
-
next_epoch_delegation: bigint;
|
916
|
-
next_epoch_gas_price: bigint;
|
917
|
-
next_epoch_commission_rate: bigint;
|
918
|
-
}
|
919
|
-
interface ValidatorMetadataInstance extends TypedEventInstance<ValidatorMetadata> {
|
920
|
-
fields_decoded: ValidatorMetadata;
|
921
|
-
type_arguments: [];
|
922
|
-
}
|
923
|
-
}
|
924
|
-
export declare class validator_set extends SuiBaseProcessor {
|
925
|
-
constructor(options: SuiBindOptions);
|
926
|
-
static DEFAULT_OPTIONS: SuiBindOptions;
|
927
|
-
static bind(options?: Partial<SuiBindOptions>): validator_set;
|
928
|
-
onEventDelegationRequestEvent(func: (event: validator_set.DelegationRequestEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
|
929
|
-
onEventValidatorEpochInfo(func: (event: validator_set.ValidatorEpochInfoInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
|
930
|
-
onEventValidatorPair(func: (event: validator_set.ValidatorPairInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
|
931
|
-
}
|
932
|
-
export declare namespace validator_set {
|
933
|
-
class DelegationRequestEvent {
|
934
|
-
static TYPE_QNAME: string;
|
935
|
-
validator_address: SuiAddress;
|
936
|
-
delegator_address: SuiAddress;
|
937
|
-
epoch: bigint;
|
938
|
-
amount: bigint;
|
939
|
-
}
|
940
|
-
interface DelegationRequestEventInstance extends TypedEventInstance<DelegationRequestEvent> {
|
941
|
-
fields_decoded: DelegationRequestEvent;
|
942
|
-
type_arguments: [];
|
943
|
-
}
|
944
|
-
class ValidatorEpochInfo {
|
945
|
-
static TYPE_QNAME: string;
|
946
|
-
epoch: bigint;
|
947
|
-
validator_address: SuiAddress;
|
948
|
-
reference_gas_survey_quote: bigint;
|
949
|
-
validator_stake: bigint;
|
950
|
-
delegated_stake: bigint;
|
951
|
-
commission_rate: bigint;
|
952
|
-
stake_rewards: bigint;
|
953
|
-
pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
|
954
|
-
tallying_rule_reporters: SuiAddress[];
|
955
|
-
tallying_rule_global_score: bigint;
|
956
|
-
}
|
957
|
-
interface ValidatorEpochInfoInstance extends TypedEventInstance<ValidatorEpochInfo> {
|
958
|
-
fields_decoded: ValidatorEpochInfo;
|
959
|
-
type_arguments: [];
|
960
|
-
}
|
961
|
-
class ValidatorPair {
|
962
|
-
static TYPE_QNAME: string;
|
963
|
-
from: SuiAddress;
|
964
|
-
to: SuiAddress;
|
965
|
-
}
|
966
|
-
interface ValidatorPairInstance extends TypedEventInstance<ValidatorPair> {
|
967
|
-
fields_decoded: ValidatorPair;
|
968
|
-
type_arguments: [];
|
969
|
-
}
|
970
|
-
class ValidatorSet {
|
971
|
-
static TYPE_QNAME: string;
|
972
|
-
total_validator_stake: bigint;
|
973
|
-
total_delegation_stake: bigint;
|
974
|
-
active_validators: validator.Validator[];
|
975
|
-
pending_validators: validator.Validator[];
|
976
|
-
pending_removals: bigint[];
|
977
|
-
next_epoch_validators: validator.ValidatorMetadata[];
|
978
|
-
pending_delegation_switches: vec_map.VecMap<validator_set.ValidatorPair, table_vec.TableVec<staking_pool.PendingWithdrawEntry>>;
|
979
|
-
}
|
980
|
-
}
|
981
571
|
export declare class vec_map extends SuiBaseProcessor {
|
982
572
|
constructor(options: SuiBindOptions);
|
983
573
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
@@ -1020,11 +610,16 @@ export declare namespace vec_set {
|
|
1020
610
|
type_arguments: [string];
|
1021
611
|
}
|
1022
612
|
}
|
1023
|
-
export declare namespace
|
1024
|
-
class
|
613
|
+
export declare namespace versioned {
|
614
|
+
class VersionChangeCap {
|
1025
615
|
static TYPE_QNAME: string;
|
1026
|
-
|
1027
|
-
|
616
|
+
versioned_id: object_.ID;
|
617
|
+
old_version: bigint;
|
618
|
+
}
|
619
|
+
class Versioned {
|
620
|
+
static TYPE_QNAME: string;
|
621
|
+
id: object_.UID;
|
622
|
+
version: bigint;
|
1028
623
|
}
|
1029
624
|
}
|
1030
625
|
export declare function loadAllTypes(coder: MoveCoder): void;
|