@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/0x3.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
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";
|
@@ -12,8 +12,7 @@ export declare class genesis extends SuiBaseProcessor {
|
|
12
12
|
onEventGenesisValidatorMetadata(func: (event: genesis.GenesisValidatorMetadataInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): genesis;
|
13
13
|
}
|
14
14
|
export declare namespace genesis {
|
15
|
-
|
16
|
-
static TYPE_QNAME: string;
|
15
|
+
interface GenesisChainParameters {
|
17
16
|
protocol_version: bigint;
|
18
17
|
chain_start_timestamp_ms: bigint;
|
19
18
|
epoch_duration_ms: bigint;
|
@@ -27,12 +26,15 @@ export declare namespace genesis {
|
|
27
26
|
validator_very_low_stake_threshold: bigint;
|
28
27
|
validator_low_stake_grace_period: bigint;
|
29
28
|
}
|
29
|
+
namespace GenesisChainParameters {
|
30
|
+
const TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
|
31
|
+
function type(): TypeDescriptor<GenesisChainParameters>;
|
32
|
+
}
|
30
33
|
interface GenesisChainParametersInstance extends TypedEventInstance<GenesisChainParameters> {
|
31
34
|
data_decoded: GenesisChainParameters;
|
32
35
|
type_arguments: [];
|
33
36
|
}
|
34
|
-
|
35
|
-
static TYPE_QNAME: string;
|
37
|
+
interface GenesisValidatorMetadata {
|
36
38
|
name: number[];
|
37
39
|
description: number[];
|
38
40
|
image_url: number[];
|
@@ -49,25 +51,34 @@ export declare namespace genesis {
|
|
49
51
|
primary_address: number[];
|
50
52
|
worker_address: number[];
|
51
53
|
}
|
54
|
+
namespace GenesisValidatorMetadata {
|
55
|
+
const TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
|
56
|
+
function type(): TypeDescriptor<GenesisValidatorMetadata>;
|
57
|
+
}
|
52
58
|
interface GenesisValidatorMetadataInstance extends TypedEventInstance<GenesisValidatorMetadata> {
|
53
59
|
data_decoded: GenesisValidatorMetadata;
|
54
60
|
type_arguments: [];
|
55
61
|
}
|
56
|
-
|
57
|
-
static TYPE_QNAME: string;
|
62
|
+
interface TokenAllocation {
|
58
63
|
recipient_address: SuiAddress;
|
59
64
|
amount_mist: bigint;
|
60
65
|
staked_with_validator: _0x1.option.Option<SuiAddress>;
|
61
66
|
}
|
62
|
-
|
63
|
-
|
67
|
+
namespace TokenAllocation {
|
68
|
+
const TYPE_QNAME = "0x3::genesis::TokenAllocation";
|
69
|
+
function type(): TypeDescriptor<TokenAllocation>;
|
70
|
+
}
|
71
|
+
interface TokenDistributionSchedule {
|
64
72
|
stake_subsidy_fund_mist: bigint;
|
65
73
|
allocations: genesis.TokenAllocation[];
|
66
74
|
}
|
75
|
+
namespace TokenDistributionSchedule {
|
76
|
+
const TYPE_QNAME = "0x3::genesis::TokenDistributionSchedule";
|
77
|
+
function type(): TypeDescriptor<TokenDistributionSchedule>;
|
78
|
+
}
|
67
79
|
}
|
68
80
|
export declare namespace stake_subsidy {
|
69
|
-
|
70
|
-
static TYPE_QNAME: string;
|
81
|
+
interface StakeSubsidy {
|
71
82
|
balance: _0x2.balance.Balance<_0x2.sui.SUI>;
|
72
83
|
distribution_counter: bigint;
|
73
84
|
current_distribution_amount: bigint;
|
@@ -75,6 +86,10 @@ export declare namespace stake_subsidy {
|
|
75
86
|
stake_subsidy_decrease_rate: number;
|
76
87
|
extra_fields: _0x2.bag.Bag;
|
77
88
|
}
|
89
|
+
namespace StakeSubsidy {
|
90
|
+
const TYPE_QNAME = "0x3::stake_subsidy::StakeSubsidy";
|
91
|
+
function type(): TypeDescriptor<StakeSubsidy>;
|
92
|
+
}
|
78
93
|
}
|
79
94
|
export declare class staking_pool extends SuiBaseProcessor {
|
80
95
|
constructor(options: SuiBindOptions);
|
@@ -85,24 +100,29 @@ export declare class staking_pool extends SuiBaseProcessor {
|
|
85
100
|
onEventPoolTokenExchangeRate(func: (event: staking_pool.PoolTokenExchangeRateInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_pool;
|
86
101
|
}
|
87
102
|
export declare namespace staking_pool {
|
88
|
-
|
89
|
-
static TYPE_QNAME: string;
|
103
|
+
interface PoolTokenExchangeRate {
|
90
104
|
sui_amount: bigint;
|
91
105
|
pool_token_amount: bigint;
|
92
106
|
}
|
107
|
+
namespace PoolTokenExchangeRate {
|
108
|
+
const TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
|
109
|
+
function type(): TypeDescriptor<PoolTokenExchangeRate>;
|
110
|
+
}
|
93
111
|
interface PoolTokenExchangeRateInstance extends TypedEventInstance<PoolTokenExchangeRate> {
|
94
112
|
data_decoded: PoolTokenExchangeRate;
|
95
113
|
type_arguments: [];
|
96
114
|
}
|
97
|
-
|
98
|
-
static TYPE_QNAME: string;
|
115
|
+
interface StakedSui {
|
99
116
|
id: _0x2.object_.UID;
|
100
117
|
pool_id: _0x2.object_.ID;
|
101
118
|
stake_activation_epoch: bigint;
|
102
119
|
principal: _0x2.balance.Balance<_0x2.sui.SUI>;
|
103
120
|
}
|
104
|
-
|
105
|
-
|
121
|
+
namespace StakedSui {
|
122
|
+
const TYPE_QNAME = "0x3::staking_pool::StakedSui";
|
123
|
+
function type(): TypeDescriptor<StakedSui>;
|
124
|
+
}
|
125
|
+
interface StakingPool {
|
106
126
|
id: _0x2.object_.UID;
|
107
127
|
activation_epoch: _0x1.option.Option<bigint>;
|
108
128
|
deactivation_epoch: _0x1.option.Option<bigint>;
|
@@ -115,6 +135,10 @@ export declare namespace staking_pool {
|
|
115
135
|
pending_pool_token_withdraw: bigint;
|
116
136
|
extra_fields: _0x2.bag.Bag;
|
117
137
|
}
|
138
|
+
namespace StakingPool {
|
139
|
+
const TYPE_QNAME = "0x3::staking_pool::StakingPool";
|
140
|
+
function type(): TypeDescriptor<StakingPool>;
|
141
|
+
}
|
118
142
|
interface JoinStakedSuiPayload extends TypedFunctionPayload<[SuiAddress | undefined]> {
|
119
143
|
arguments_decoded: [SuiAddress | undefined];
|
120
144
|
type_arguments: [];
|
@@ -125,11 +149,14 @@ export declare namespace staking_pool {
|
|
125
149
|
}
|
126
150
|
}
|
127
151
|
export declare namespace storage_fund {
|
128
|
-
|
129
|
-
static TYPE_QNAME: string;
|
152
|
+
interface StorageFund {
|
130
153
|
total_object_storage_rebates: _0x2.balance.Balance<_0x2.sui.SUI>;
|
131
154
|
non_refundable_balance: _0x2.balance.Balance<_0x2.sui.SUI>;
|
132
155
|
}
|
156
|
+
namespace StorageFund {
|
157
|
+
const TYPE_QNAME = "0x3::storage_fund::StorageFund";
|
158
|
+
function type(): TypeDescriptor<StorageFund>;
|
159
|
+
}
|
133
160
|
}
|
134
161
|
export declare class sui_system extends SuiBaseProcessor {
|
135
162
|
constructor(options: SuiBindOptions);
|
@@ -169,11 +196,14 @@ export declare class sui_system extends SuiBaseProcessor {
|
|
169
196
|
onEntryUpdateValidatorProjectUrl(func: (call: sui_system.UpdateValidatorProjectUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): sui_system;
|
170
197
|
}
|
171
198
|
export declare namespace sui_system {
|
172
|
-
|
173
|
-
static TYPE_QNAME: string;
|
199
|
+
interface SuiSystemState {
|
174
200
|
id: _0x2.object_.UID;
|
175
201
|
version: bigint;
|
176
202
|
}
|
203
|
+
namespace SuiSystemState {
|
204
|
+
const TYPE_QNAME = "0x3::sui_system::SuiSystemState";
|
205
|
+
function type(): TypeDescriptor<SuiSystemState>;
|
206
|
+
}
|
177
207
|
interface ReportValidatorPayload extends TypedFunctionPayload<[
|
178
208
|
SuiAddress | undefined,
|
179
209
|
SuiAddress | undefined
|
@@ -442,8 +472,7 @@ export declare class sui_system_state_inner extends SuiBaseProcessor {
|
|
442
472
|
onEventSystemEpochInfoEvent(func: (event: sui_system_state_inner.SystemEpochInfoEventInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): sui_system_state_inner;
|
443
473
|
}
|
444
474
|
export declare namespace sui_system_state_inner {
|
445
|
-
|
446
|
-
static TYPE_QNAME: string;
|
475
|
+
interface SuiSystemStateInner {
|
447
476
|
epoch: bigint;
|
448
477
|
protocol_version: bigint;
|
449
478
|
system_state_version: bigint;
|
@@ -461,8 +490,11 @@ export declare namespace sui_system_state_inner {
|
|
461
490
|
epoch_start_timestamp_ms: bigint;
|
462
491
|
extra_fields: _0x2.bag.Bag;
|
463
492
|
}
|
464
|
-
|
465
|
-
|
493
|
+
namespace SuiSystemStateInner {
|
494
|
+
const TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInner";
|
495
|
+
function type(): TypeDescriptor<SuiSystemStateInner>;
|
496
|
+
}
|
497
|
+
interface SystemEpochInfoEvent {
|
466
498
|
epoch: bigint;
|
467
499
|
protocol_version: bigint;
|
468
500
|
reference_gas_price: bigint;
|
@@ -476,12 +508,15 @@ export declare namespace sui_system_state_inner {
|
|
476
508
|
total_stake_rewards_distributed: bigint;
|
477
509
|
leftover_storage_fund_inflow: bigint;
|
478
510
|
}
|
511
|
+
namespace SystemEpochInfoEvent {
|
512
|
+
const TYPE_QNAME = "0x3::sui_system_state_inner::SystemEpochInfoEvent";
|
513
|
+
function type(): TypeDescriptor<SystemEpochInfoEvent>;
|
514
|
+
}
|
479
515
|
interface SystemEpochInfoEventInstance extends TypedEventInstance<SystemEpochInfoEvent> {
|
480
516
|
data_decoded: SystemEpochInfoEvent;
|
481
517
|
type_arguments: [];
|
482
518
|
}
|
483
|
-
|
484
|
-
static TYPE_QNAME: string;
|
519
|
+
interface SystemParameters {
|
485
520
|
epoch_duration_ms: bigint;
|
486
521
|
stake_subsidy_start_epoch: bigint;
|
487
522
|
max_validator_count: bigint;
|
@@ -491,6 +526,10 @@ export declare namespace sui_system_state_inner {
|
|
491
526
|
validator_low_stake_grace_period: bigint;
|
492
527
|
extra_fields: _0x2.bag.Bag;
|
493
528
|
}
|
529
|
+
namespace SystemParameters {
|
530
|
+
const TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
|
531
|
+
function type(): TypeDescriptor<SystemParameters>;
|
532
|
+
}
|
494
533
|
}
|
495
534
|
export declare class validator extends SuiBaseProcessor {
|
496
535
|
constructor(options: SuiBindOptions);
|
@@ -500,20 +539,22 @@ export declare class validator extends SuiBaseProcessor {
|
|
500
539
|
onEventUnstakingRequestEvent(func: (event: validator.UnstakingRequestEventInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): validator;
|
501
540
|
}
|
502
541
|
export declare namespace validator {
|
503
|
-
|
504
|
-
static TYPE_QNAME: string;
|
542
|
+
interface StakingRequestEvent {
|
505
543
|
pool_id: _0x2.object_.ID;
|
506
544
|
validator_address: SuiAddress;
|
507
545
|
staker_address: SuiAddress;
|
508
546
|
epoch: bigint;
|
509
547
|
amount: bigint;
|
510
548
|
}
|
549
|
+
namespace StakingRequestEvent {
|
550
|
+
const TYPE_QNAME = "0x3::validator::StakingRequestEvent";
|
551
|
+
function type(): TypeDescriptor<StakingRequestEvent>;
|
552
|
+
}
|
511
553
|
interface StakingRequestEventInstance extends TypedEventInstance<StakingRequestEvent> {
|
512
554
|
data_decoded: StakingRequestEvent;
|
513
555
|
type_arguments: [];
|
514
556
|
}
|
515
|
-
|
516
|
-
static TYPE_QNAME: string;
|
557
|
+
interface UnstakingRequestEvent {
|
517
558
|
pool_id: _0x2.object_.ID;
|
518
559
|
validator_address: SuiAddress;
|
519
560
|
staker_address: SuiAddress;
|
@@ -522,12 +563,15 @@ export declare namespace validator {
|
|
522
563
|
principal_amount: bigint;
|
523
564
|
reward_amount: bigint;
|
524
565
|
}
|
566
|
+
namespace UnstakingRequestEvent {
|
567
|
+
const TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
|
568
|
+
function type(): TypeDescriptor<UnstakingRequestEvent>;
|
569
|
+
}
|
525
570
|
interface UnstakingRequestEventInstance extends TypedEventInstance<UnstakingRequestEvent> {
|
526
571
|
data_decoded: UnstakingRequestEvent;
|
527
572
|
type_arguments: [];
|
528
573
|
}
|
529
|
-
|
530
|
-
static TYPE_QNAME: string;
|
574
|
+
interface Validator {
|
531
575
|
metadata: validator.ValidatorMetadata;
|
532
576
|
voting_power: bigint;
|
533
577
|
operation_cap_id: _0x2.object_.ID;
|
@@ -539,8 +583,11 @@ export declare namespace validator {
|
|
539
583
|
next_epoch_commission_rate: bigint;
|
540
584
|
extra_fields: _0x2.bag.Bag;
|
541
585
|
}
|
542
|
-
|
543
|
-
|
586
|
+
namespace Validator {
|
587
|
+
const TYPE_QNAME = "0x3::validator::Validator";
|
588
|
+
function type(): TypeDescriptor<Validator>;
|
589
|
+
}
|
590
|
+
interface ValidatorMetadata {
|
544
591
|
sui_address: SuiAddress;
|
545
592
|
protocol_pubkey_bytes: number[];
|
546
593
|
network_pubkey_bytes: number[];
|
@@ -564,17 +611,27 @@ export declare namespace validator {
|
|
564
611
|
next_epoch_worker_address: _0x1.option.Option<string>;
|
565
612
|
extra_fields: _0x2.bag.Bag;
|
566
613
|
}
|
614
|
+
namespace ValidatorMetadata {
|
615
|
+
const TYPE_QNAME = "0x3::validator::ValidatorMetadata";
|
616
|
+
function type(): TypeDescriptor<ValidatorMetadata>;
|
617
|
+
}
|
567
618
|
}
|
568
619
|
export declare namespace validator_cap {
|
569
|
-
|
570
|
-
static TYPE_QNAME: string;
|
620
|
+
interface UnverifiedValidatorOperationCap {
|
571
621
|
id: _0x2.object_.UID;
|
572
622
|
authorizer_validator_address: SuiAddress;
|
573
623
|
}
|
574
|
-
|
575
|
-
|
624
|
+
namespace UnverifiedValidatorOperationCap {
|
625
|
+
const TYPE_QNAME = "0x3::validator_cap::UnverifiedValidatorOperationCap";
|
626
|
+
function type(): TypeDescriptor<UnverifiedValidatorOperationCap>;
|
627
|
+
}
|
628
|
+
interface ValidatorOperationCap {
|
576
629
|
authorizer_validator_address: SuiAddress;
|
577
630
|
}
|
631
|
+
namespace ValidatorOperationCap {
|
632
|
+
const TYPE_QNAME = "0x3::validator_cap::ValidatorOperationCap";
|
633
|
+
function type(): TypeDescriptor<ValidatorOperationCap>;
|
634
|
+
}
|
578
635
|
}
|
579
636
|
export declare class validator_set extends SuiBaseProcessor {
|
580
637
|
constructor(options: SuiBindOptions);
|
@@ -585,8 +642,7 @@ export declare class validator_set extends SuiBaseProcessor {
|
|
585
642
|
onEventValidatorLeaveEvent(func: (event: validator_set.ValidatorLeaveEventInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): validator_set;
|
586
643
|
}
|
587
644
|
export declare namespace validator_set {
|
588
|
-
|
589
|
-
static TYPE_QNAME: string;
|
645
|
+
interface ValidatorEpochInfoEvent {
|
590
646
|
epoch: bigint;
|
591
647
|
validator_address: SuiAddress;
|
592
648
|
reference_gas_survey_quote: bigint;
|
@@ -598,33 +654,42 @@ export declare namespace validator_set {
|
|
598
654
|
tallying_rule_reporters: SuiAddress[];
|
599
655
|
tallying_rule_global_score: bigint;
|
600
656
|
}
|
657
|
+
namespace ValidatorEpochInfoEvent {
|
658
|
+
const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
|
659
|
+
function type(): TypeDescriptor<ValidatorEpochInfoEvent>;
|
660
|
+
}
|
601
661
|
interface ValidatorEpochInfoEventInstance extends TypedEventInstance<ValidatorEpochInfoEvent> {
|
602
662
|
data_decoded: ValidatorEpochInfoEvent;
|
603
663
|
type_arguments: [];
|
604
664
|
}
|
605
|
-
|
606
|
-
static TYPE_QNAME: string;
|
665
|
+
interface ValidatorJoinEvent {
|
607
666
|
epoch: bigint;
|
608
667
|
validator_address: SuiAddress;
|
609
668
|
staking_pool_id: _0x2.object_.ID;
|
610
669
|
}
|
670
|
+
namespace ValidatorJoinEvent {
|
671
|
+
const TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
|
672
|
+
function type(): TypeDescriptor<ValidatorJoinEvent>;
|
673
|
+
}
|
611
674
|
interface ValidatorJoinEventInstance extends TypedEventInstance<ValidatorJoinEvent> {
|
612
675
|
data_decoded: ValidatorJoinEvent;
|
613
676
|
type_arguments: [];
|
614
677
|
}
|
615
|
-
|
616
|
-
static TYPE_QNAME: string;
|
678
|
+
interface ValidatorLeaveEvent {
|
617
679
|
epoch: bigint;
|
618
680
|
validator_address: SuiAddress;
|
619
681
|
staking_pool_id: _0x2.object_.ID;
|
620
682
|
is_voluntary: Boolean;
|
621
683
|
}
|
684
|
+
namespace ValidatorLeaveEvent {
|
685
|
+
const TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
|
686
|
+
function type(): TypeDescriptor<ValidatorLeaveEvent>;
|
687
|
+
}
|
622
688
|
interface ValidatorLeaveEventInstance extends TypedEventInstance<ValidatorLeaveEvent> {
|
623
689
|
data_decoded: ValidatorLeaveEvent;
|
624
690
|
type_arguments: [];
|
625
691
|
}
|
626
|
-
|
627
|
-
static TYPE_QNAME: string;
|
692
|
+
interface ValidatorSet {
|
628
693
|
total_stake: bigint;
|
629
694
|
active_validators: validator.Validator[];
|
630
695
|
pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
|
@@ -635,18 +700,28 @@ export declare namespace validator_set {
|
|
635
700
|
at_risk_validators: _0x2.vec_map.VecMap<SuiAddress, bigint>;
|
636
701
|
extra_fields: _0x2.bag.Bag;
|
637
702
|
}
|
703
|
+
namespace ValidatorSet {
|
704
|
+
const TYPE_QNAME = "0x3::validator_set::ValidatorSet";
|
705
|
+
function type(): TypeDescriptor<ValidatorSet>;
|
706
|
+
}
|
638
707
|
}
|
639
708
|
export declare namespace validator_wrapper {
|
640
|
-
|
641
|
-
static TYPE_QNAME: string;
|
709
|
+
interface ValidatorWrapper {
|
642
710
|
inner: _0x2.versioned.Versioned;
|
643
711
|
}
|
712
|
+
namespace ValidatorWrapper {
|
713
|
+
const TYPE_QNAME = "0x3::validator_wrapper::ValidatorWrapper";
|
714
|
+
function type(): TypeDescriptor<ValidatorWrapper>;
|
715
|
+
}
|
644
716
|
}
|
645
717
|
export declare namespace voting_power {
|
646
|
-
|
647
|
-
static TYPE_QNAME: string;
|
718
|
+
interface VotingPowerInfo {
|
648
719
|
validator_index: bigint;
|
649
720
|
voting_power: bigint;
|
650
721
|
}
|
722
|
+
namespace VotingPowerInfo {
|
723
|
+
const TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
|
724
|
+
function type(): TypeDescriptor<VotingPowerInfo>;
|
725
|
+
}
|
651
726
|
}
|
652
727
|
export declare function loadAllTypes(coder: MoveCoder): void;
|