@sentio/sdk 4.5.1-rc.1 → 4.6.0-rc.1
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/iota/builtin/0x1.d.ts +4 -0
- package/dist/iota/builtin/0x1.d.ts.map +1 -1
- package/dist/iota/builtin/0x1.js +1 -1
- package/dist/iota/builtin/0x1.js.map +1 -1
- package/dist/sui/builtin/0x2.d.ts +259 -0
- package/dist/sui/builtin/0x2.d.ts.map +1 -1
- package/dist/sui/builtin/0x2.js +960 -1
- package/dist/sui/builtin/0x2.js.map +1 -1
- package/package.json +7 -7
- package/src/iota/abis/0x1.json +8 -0
- package/src/iota/builtin/0x1.ts +6 -1
- package/src/sui/abis/0x2.json +2080 -0
- package/src/sui/builtin/0x2.ts +1479 -1
|
@@ -284,6 +284,265 @@ export declare namespace address_alias {
|
|
|
284
284
|
type_arguments: [];
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
+
export declare class allowance extends SuiBaseProcessor {
|
|
288
|
+
constructor(options: SuiBindOptions);
|
|
289
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
290
|
+
static bind(options?: Partial<SuiBindOptions>): allowance;
|
|
291
|
+
onEntryNew(func: (call: allowance.NewPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions<MoveFetchConfig, allowance.NewPayload>): allowance;
|
|
292
|
+
onEntryProposeForApp(func: (call: allowance.ProposeForAppPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions<MoveFetchConfig, allowance.ProposeForAppPayload>): allowance;
|
|
293
|
+
}
|
|
294
|
+
export declare namespace allowance {
|
|
295
|
+
interface RateLimit {
|
|
296
|
+
fields: {};
|
|
297
|
+
variant: "Windowed";
|
|
298
|
+
}
|
|
299
|
+
namespace RateLimit {
|
|
300
|
+
const TYPE_QNAME = "0x2::allowance::RateLimit";
|
|
301
|
+
function type(): TypeDescriptor<RateLimit>;
|
|
302
|
+
}
|
|
303
|
+
interface Window {
|
|
304
|
+
fields: {};
|
|
305
|
+
variant: "PeriodicMs" | "CalendarMonths";
|
|
306
|
+
}
|
|
307
|
+
namespace Window {
|
|
308
|
+
const TYPE_QNAME = "0x2::allowance::Window";
|
|
309
|
+
function type(): TypeDescriptor<Window>;
|
|
310
|
+
}
|
|
311
|
+
interface Allowance<T0> {
|
|
312
|
+
id: object$.UID;
|
|
313
|
+
settings: allowance.Settings;
|
|
314
|
+
current_spend: bigint;
|
|
315
|
+
}
|
|
316
|
+
namespace Allowance {
|
|
317
|
+
const TYPE_QNAME = "0x2::allowance::Allowance";
|
|
318
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Allowance<T0>>;
|
|
319
|
+
}
|
|
320
|
+
interface AllowanceCap<T0> {
|
|
321
|
+
id: object$.UID;
|
|
322
|
+
allowance: object$.ID;
|
|
323
|
+
}
|
|
324
|
+
namespace AllowanceCap {
|
|
325
|
+
const TYPE_QNAME = "0x2::allowance::AllowanceCap";
|
|
326
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<AllowanceCap<T0>>;
|
|
327
|
+
}
|
|
328
|
+
interface AllowanceProposal<T0> {
|
|
329
|
+
pos0: allowance.Settings;
|
|
330
|
+
}
|
|
331
|
+
namespace AllowanceProposal {
|
|
332
|
+
const TYPE_QNAME = "0x2::allowance::AllowanceProposal";
|
|
333
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<AllowanceProposal<T0>>;
|
|
334
|
+
}
|
|
335
|
+
interface AllowanceWithdrawal<T0> {
|
|
336
|
+
allowance: object$.ID;
|
|
337
|
+
is_sponsor: boolean;
|
|
338
|
+
inner: funds_accumulator.Withdrawal<T0>;
|
|
339
|
+
}
|
|
340
|
+
namespace AllowanceWithdrawal {
|
|
341
|
+
const TYPE_QNAME = "0x2::allowance::AllowanceWithdrawal";
|
|
342
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<AllowanceWithdrawal<T0>>;
|
|
343
|
+
}
|
|
344
|
+
interface Settings {
|
|
345
|
+
funder: string;
|
|
346
|
+
spender: _0x1.option.Option<string>;
|
|
347
|
+
app: _0x1.option.Option<_0x1.type_name.TypeName>;
|
|
348
|
+
lifetime_cap: _0x1.option.Option<bigint>;
|
|
349
|
+
start_timestamp_ms: _0x1.option.Option<bigint>;
|
|
350
|
+
expiration_timestamp_ms: _0x1.option.Option<bigint>;
|
|
351
|
+
rate_limit: _0x1.option.Option<allowance.RateLimit>;
|
|
352
|
+
name: string;
|
|
353
|
+
}
|
|
354
|
+
namespace Settings {
|
|
355
|
+
const TYPE_QNAME = "0x2::allowance::Settings";
|
|
356
|
+
function type(): TypeDescriptor<Settings>;
|
|
357
|
+
}
|
|
358
|
+
interface SettingsPermit<T0> {
|
|
359
|
+
dummy_field: boolean;
|
|
360
|
+
}
|
|
361
|
+
namespace SettingsPermit {
|
|
362
|
+
const TYPE_QNAME = "0x2::allowance::SettingsPermit";
|
|
363
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SettingsPermit<T0>>;
|
|
364
|
+
}
|
|
365
|
+
interface SpendPermit<T0> {
|
|
366
|
+
dummy_field: boolean;
|
|
367
|
+
}
|
|
368
|
+
namespace SpendPermit {
|
|
369
|
+
const TYPE_QNAME = "0x2::allowance::SpendPermit";
|
|
370
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SpendPermit<T0>>;
|
|
371
|
+
}
|
|
372
|
+
namespace builder {
|
|
373
|
+
function allowanceCapAllowance<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
374
|
+
function allowanceCurrentSpend<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
375
|
+
function allowanceProposalSettings<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
376
|
+
function allowanceSettings<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
377
|
+
function app(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
378
|
+
function appBalanceSpend<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
379
|
+
string | TransactionObjectArgument,
|
|
380
|
+
allowance.SpendPermit<T1> | TransactionArgument,
|
|
381
|
+
(allowance.AllowanceWithdrawal<balance.Balance<T0>> | TransactionArgument),
|
|
382
|
+
string | TransactionObjectArgument
|
|
383
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [
|
|
384
|
+
TransactionArgument,
|
|
385
|
+
TransactionArgument,
|
|
386
|
+
TransactionArgument,
|
|
387
|
+
TransactionArgument
|
|
388
|
+
];
|
|
389
|
+
function balanceSpend<T0 = any>(tx: Transaction, args: [
|
|
390
|
+
string | TransactionObjectArgument,
|
|
391
|
+
(allowance.AllowanceWithdrawal<balance.Balance<T0>> | TransactionArgument),
|
|
392
|
+
string | TransactionObjectArgument
|
|
393
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [
|
|
394
|
+
TransactionArgument,
|
|
395
|
+
TransactionArgument,
|
|
396
|
+
TransactionArgument
|
|
397
|
+
];
|
|
398
|
+
function calendarRateLimit(tx: Transaction, args: [number | TransactionArgument, bigint | TransactionArgument]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
399
|
+
function civilFromMs(tx: Transaction, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
400
|
+
function daysInMonth(tx: Transaction, args: [bigint | TransactionArgument, bigint | TransactionArgument]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
401
|
+
function expirationTimestampMs(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
402
|
+
function funder(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
403
|
+
function issue<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
404
|
+
allowance.AllowanceProposal<T0> | TransactionArgument,
|
|
405
|
+
allowance.SettingsPermit<T1> | TransactionArgument
|
|
406
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
407
|
+
function lifetimeCap(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
408
|
+
function monthlyRateLimit(tx: Transaction, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
409
|
+
function name(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
410
|
+
function new$<T0 = any>(tx: Transaction, args: [
|
|
411
|
+
string | TransactionArgument,
|
|
412
|
+
string | TransactionArgument,
|
|
413
|
+
_0x1.option.Option<bigint> | TransactionArgument,
|
|
414
|
+
_0x1.option.Option<bigint> | TransactionArgument,
|
|
415
|
+
_0x1.option.Option<bigint> | TransactionArgument,
|
|
416
|
+
_0x1.option.Option<allowance.RateLimit> | TransactionArgument
|
|
417
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [
|
|
418
|
+
TransactionArgument,
|
|
419
|
+
TransactionArgument,
|
|
420
|
+
TransactionArgument,
|
|
421
|
+
TransactionArgument,
|
|
422
|
+
TransactionArgument,
|
|
423
|
+
TransactionArgument
|
|
424
|
+
];
|
|
425
|
+
function periodicRateLimit(tx: Transaction, args: [bigint | TransactionArgument, bigint | TransactionArgument]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
426
|
+
function proposeForApp<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
427
|
+
string | TransactionArgument,
|
|
428
|
+
string | TransactionArgument,
|
|
429
|
+
_0x1.option.Option<bigint> | TransactionArgument,
|
|
430
|
+
_0x1.option.Option<bigint> | TransactionArgument,
|
|
431
|
+
_0x1.option.Option<bigint> | TransactionArgument,
|
|
432
|
+
_0x1.option.Option<allowance.RateLimit> | TransactionArgument
|
|
433
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [
|
|
434
|
+
TransactionArgument,
|
|
435
|
+
TransactionArgument,
|
|
436
|
+
TransactionArgument,
|
|
437
|
+
TransactionArgument,
|
|
438
|
+
TransactionArgument,
|
|
439
|
+
TransactionArgument
|
|
440
|
+
];
|
|
441
|
+
function quarterlyRateLimit(tx: Transaction, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
442
|
+
function rateLimit(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
443
|
+
function rateLimitLimit(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
444
|
+
function rateLimitSpent(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
445
|
+
function rateLimitWindow(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
446
|
+
function revoke<T0 = any>(tx: Transaction, args: [
|
|
447
|
+
allowance.AllowanceCap<T0> | TransactionArgument,
|
|
448
|
+
allowance.Allowance<T0> | TransactionArgument
|
|
449
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
450
|
+
function rotateSpender<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
451
|
+
string | TransactionObjectArgument,
|
|
452
|
+
allowance.SettingsPermit<T1> | TransactionArgument,
|
|
453
|
+
string | TransactionArgument
|
|
454
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [
|
|
455
|
+
TransactionArgument,
|
|
456
|
+
TransactionArgument,
|
|
457
|
+
TransactionArgument
|
|
458
|
+
];
|
|
459
|
+
function settingsPermit<T0 = any>(tx: Transaction, args: [_0x1.internal.Permit<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
460
|
+
function spendPermit<T0 = any>(tx: Transaction, args: [_0x1.internal.Permit<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
461
|
+
function spender(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
462
|
+
function startTimestampMs(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
463
|
+
function yearlyRateLimit(tx: Transaction, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
464
|
+
}
|
|
465
|
+
namespace view {
|
|
466
|
+
function allowanceCapAllowance<T0 = any>(client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[object$.ID]>>;
|
|
467
|
+
function allowanceCurrentSpend<T0 = any>(client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[bigint]>>;
|
|
468
|
+
function allowanceProposalSettings<T0 = any>(client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[string]>>;
|
|
469
|
+
function allowanceSettings<T0 = any>(client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[string]>>;
|
|
470
|
+
function app(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[_0x1.option.Option<_0x1.type_name.TypeName>]>>;
|
|
471
|
+
function appBalanceSpend<T0 = any, T1 = any>(client: SuiGrpcClient, args: [
|
|
472
|
+
string,
|
|
473
|
+
allowance.SpendPermit<T1>,
|
|
474
|
+
allowance.AllowanceWithdrawal<balance.Balance<T0>>,
|
|
475
|
+
string
|
|
476
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedSimulateResults<[balance.Balance<T0>]>>;
|
|
477
|
+
function balanceSpend<T0 = any>(client: SuiGrpcClient, args: [
|
|
478
|
+
string,
|
|
479
|
+
allowance.AllowanceWithdrawal<balance.Balance<T0>>,
|
|
480
|
+
string
|
|
481
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[balance.Balance<T0>]>>;
|
|
482
|
+
function calendarRateLimit(client: SuiGrpcClient, args: [number, bigint]): Promise<TypedSimulateResults<[allowance.RateLimit]>>;
|
|
483
|
+
function civilFromMs(client: SuiGrpcClient, args: [bigint]): Promise<TypedSimulateResults<[bigint, bigint, bigint]>>;
|
|
484
|
+
function daysInMonth(client: SuiGrpcClient, args: [bigint, bigint]): Promise<TypedSimulateResults<[bigint]>>;
|
|
485
|
+
function expirationTimestampMs(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[_0x1.option.Option<bigint>]>>;
|
|
486
|
+
function funder(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[string]>>;
|
|
487
|
+
function issue<T0 = any, T1 = any>(client: SuiGrpcClient, args: [allowance.AllowanceProposal<T0>, allowance.SettingsPermit<T1>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedSimulateResults<[]>>;
|
|
488
|
+
function lifetimeCap(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[_0x1.option.Option<bigint>]>>;
|
|
489
|
+
function monthlyRateLimit(client: SuiGrpcClient, args: [bigint]): Promise<TypedSimulateResults<[allowance.RateLimit]>>;
|
|
490
|
+
function name(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[string]>>;
|
|
491
|
+
function periodicRateLimit(client: SuiGrpcClient, args: [bigint, bigint]): Promise<TypedSimulateResults<[allowance.RateLimit]>>;
|
|
492
|
+
function quarterlyRateLimit(client: SuiGrpcClient, args: [bigint]): Promise<TypedSimulateResults<[allowance.RateLimit]>>;
|
|
493
|
+
function rateLimit(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[_0x1.option.Option<allowance.RateLimit>]>>;
|
|
494
|
+
function rateLimitLimit(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[bigint]>>;
|
|
495
|
+
function rateLimitSpent(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[bigint]>>;
|
|
496
|
+
function rateLimitWindow(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[allowance.Window]>>;
|
|
497
|
+
function revoke<T0 = any>(client: SuiGrpcClient, args: [allowance.AllowanceCap<T0>, allowance.Allowance<T0>], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[]>>;
|
|
498
|
+
function rotateSpender<T0 = any, T1 = any>(client: SuiGrpcClient, args: [string, allowance.SettingsPermit<T1>, string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedSimulateResults<[]>>;
|
|
499
|
+
function settingsPermit<T0 = any>(client: SuiGrpcClient, args: [_0x1.internal.Permit<T0>], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[allowance.SettingsPermit<T0>]>>;
|
|
500
|
+
function spendPermit<T0 = any>(client: SuiGrpcClient, args: [_0x1.internal.Permit<T0>], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedSimulateResults<[allowance.SpendPermit<T0>]>>;
|
|
501
|
+
function spender(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[_0x1.option.Option<string>]>>;
|
|
502
|
+
function startTimestampMs(client: SuiGrpcClient, args: [string]): Promise<TypedSimulateResults<[_0x1.option.Option<bigint>]>>;
|
|
503
|
+
function yearlyRateLimit(client: SuiGrpcClient, args: [bigint]): Promise<TypedSimulateResults<[allowance.RateLimit]>>;
|
|
504
|
+
}
|
|
505
|
+
interface NewPayload<T0 = any> extends TypedFunctionPayload<[
|
|
506
|
+
string,
|
|
507
|
+
string,
|
|
508
|
+
_0x1.option.Option<bigint>,
|
|
509
|
+
_0x1.option.Option<bigint>,
|
|
510
|
+
_0x1.option.Option<bigint>,
|
|
511
|
+
_0x1.option.Option<allowance.RateLimit>,
|
|
512
|
+
string
|
|
513
|
+
]> {
|
|
514
|
+
arguments_decoded: [
|
|
515
|
+
string,
|
|
516
|
+
string,
|
|
517
|
+
_0x1.option.Option<bigint>,
|
|
518
|
+
_0x1.option.Option<bigint>,
|
|
519
|
+
_0x1.option.Option<bigint>,
|
|
520
|
+
_0x1.option.Option<allowance.RateLimit>,
|
|
521
|
+
string
|
|
522
|
+
];
|
|
523
|
+
type_arguments: [string];
|
|
524
|
+
}
|
|
525
|
+
interface ProposeForAppPayload<T0 = any, T1 = any> extends TypedFunctionPayload<[
|
|
526
|
+
string,
|
|
527
|
+
string,
|
|
528
|
+
_0x1.option.Option<bigint>,
|
|
529
|
+
_0x1.option.Option<bigint>,
|
|
530
|
+
_0x1.option.Option<bigint>,
|
|
531
|
+
_0x1.option.Option<allowance.RateLimit>,
|
|
532
|
+
string
|
|
533
|
+
]> {
|
|
534
|
+
arguments_decoded: [
|
|
535
|
+
string,
|
|
536
|
+
string,
|
|
537
|
+
_0x1.option.Option<bigint>,
|
|
538
|
+
_0x1.option.Option<bigint>,
|
|
539
|
+
_0x1.option.Option<bigint>,
|
|
540
|
+
_0x1.option.Option<allowance.RateLimit>,
|
|
541
|
+
string
|
|
542
|
+
];
|
|
543
|
+
type_arguments: [string, string];
|
|
544
|
+
}
|
|
545
|
+
}
|
|
287
546
|
export declare class authenticator_state extends SuiBaseProcessor {
|
|
288
547
|
constructor(options: SuiBindOptions);
|
|
289
548
|
static DEFAULT_OPTIONS: SuiBindOptions;
|