@sentio/sdk 2.15.6 → 2.15.7-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/lib/sui/builtin/0x2.d.ts +35 -0
- package/lib/sui/builtin/0x2.js +40 -1
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +68 -0
- package/lib/sui/builtin/0x3.js +43 -1
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/package.json +3 -3
- package/src/sui/abis/0x2.json +500 -0
- package/src/sui/abis/0x3.json +357 -111
- package/src/sui/builtin/0x2.ts +93 -1
- package/src/sui/builtin/0x3.ts +127 -1
package/lib/sui/builtin/0x3.d.ts
CHANGED
@@ -647,6 +647,28 @@ export declare namespace sui_system_state_inner {
|
|
647
647
|
const TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInner";
|
648
648
|
function type(): TypeDescriptor<SuiSystemStateInner>;
|
649
649
|
}
|
650
|
+
interface SuiSystemStateInnerV2 {
|
651
|
+
epoch: bigint;
|
652
|
+
protocol_version: bigint;
|
653
|
+
system_state_version: bigint;
|
654
|
+
validators: validator_set.ValidatorSet;
|
655
|
+
storage_fund: storage_fund.StorageFund;
|
656
|
+
parameters: sui_system_state_inner.SystemParametersV2;
|
657
|
+
reference_gas_price: bigint;
|
658
|
+
validator_report_records: _0x2.vec_map.VecMap<SuiAddress, _0x2.vec_set.VecSet<SuiAddress>>;
|
659
|
+
stake_subsidy: stake_subsidy.StakeSubsidy;
|
660
|
+
safe_mode: Boolean;
|
661
|
+
safe_mode_storage_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
|
662
|
+
safe_mode_computation_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
|
663
|
+
safe_mode_storage_rebates: bigint;
|
664
|
+
safe_mode_non_refundable_storage_fee: bigint;
|
665
|
+
epoch_start_timestamp_ms: bigint;
|
666
|
+
extra_fields: _0x2.bag.Bag;
|
667
|
+
}
|
668
|
+
namespace SuiSystemStateInnerV2 {
|
669
|
+
const TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInnerV2";
|
670
|
+
function type(): TypeDescriptor<SuiSystemStateInnerV2>;
|
671
|
+
}
|
650
672
|
interface SystemEpochInfoEvent {
|
651
673
|
epoch: bigint;
|
652
674
|
protocol_version: bigint;
|
@@ -683,6 +705,21 @@ export declare namespace sui_system_state_inner {
|
|
683
705
|
const TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
|
684
706
|
function type(): TypeDescriptor<SystemParameters>;
|
685
707
|
}
|
708
|
+
interface SystemParametersV2 {
|
709
|
+
epoch_duration_ms: bigint;
|
710
|
+
stake_subsidy_start_epoch: bigint;
|
711
|
+
min_validator_count: bigint;
|
712
|
+
max_validator_count: bigint;
|
713
|
+
min_validator_joining_stake: bigint;
|
714
|
+
validator_low_stake_threshold: bigint;
|
715
|
+
validator_very_low_stake_threshold: bigint;
|
716
|
+
validator_low_stake_grace_period: bigint;
|
717
|
+
extra_fields: _0x2.bag.Bag;
|
718
|
+
}
|
719
|
+
namespace SystemParametersV2 {
|
720
|
+
const TYPE_QNAME = "0x3::sui_system_state_inner::SystemParametersV2";
|
721
|
+
function type(): TypeDescriptor<SystemParametersV2>;
|
722
|
+
}
|
686
723
|
}
|
687
724
|
export declare class validator extends SuiBaseProcessor {
|
688
725
|
constructor(options: SuiBindOptions);
|
@@ -791,6 +828,7 @@ export declare class validator_set extends SuiBaseProcessor {
|
|
791
828
|
static DEFAULT_OPTIONS: SuiBindOptions;
|
792
829
|
static bind(options?: Partial<SuiBindOptions>): validator_set;
|
793
830
|
onEventValidatorEpochInfoEvent(func: (event: validator_set.ValidatorEpochInfoEventInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): validator_set;
|
831
|
+
onEventValidatorEpochInfoEventV2(func: (event: validator_set.ValidatorEpochInfoEventV2Instance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): validator_set;
|
794
832
|
onEventValidatorJoinEvent(func: (event: validator_set.ValidatorJoinEventInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): validator_set;
|
795
833
|
onEventValidatorLeaveEvent(func: (event: validator_set.ValidatorLeaveEventInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): validator_set;
|
796
834
|
}
|
@@ -815,6 +853,27 @@ export declare namespace validator_set {
|
|
815
853
|
data_decoded: ValidatorEpochInfoEvent;
|
816
854
|
type_arguments: [];
|
817
855
|
}
|
856
|
+
interface ValidatorEpochInfoEventV2 {
|
857
|
+
epoch: bigint;
|
858
|
+
validator_address: SuiAddress;
|
859
|
+
reference_gas_survey_quote: bigint;
|
860
|
+
stake: bigint;
|
861
|
+
voting_power: bigint;
|
862
|
+
commission_rate: bigint;
|
863
|
+
pool_staking_reward: bigint;
|
864
|
+
storage_fund_staking_reward: bigint;
|
865
|
+
pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
|
866
|
+
tallying_rule_reporters: SuiAddress[];
|
867
|
+
tallying_rule_global_score: bigint;
|
868
|
+
}
|
869
|
+
namespace ValidatorEpochInfoEventV2 {
|
870
|
+
const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEventV2";
|
871
|
+
function type(): TypeDescriptor<ValidatorEpochInfoEventV2>;
|
872
|
+
}
|
873
|
+
interface ValidatorEpochInfoEventV2Instance extends TypedEventInstance<ValidatorEpochInfoEventV2> {
|
874
|
+
data_decoded: ValidatorEpochInfoEventV2;
|
875
|
+
type_arguments: [];
|
876
|
+
}
|
818
877
|
interface ValidatorJoinEvent {
|
819
878
|
epoch: bigint;
|
820
879
|
validator_address: SuiAddress;
|
@@ -876,5 +935,14 @@ export declare namespace voting_power {
|
|
876
935
|
const TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
|
877
936
|
function type(): TypeDescriptor<VotingPowerInfo>;
|
878
937
|
}
|
938
|
+
interface VotingPowerInfoV2 {
|
939
|
+
validator_index: bigint;
|
940
|
+
voting_power: bigint;
|
941
|
+
stake: bigint;
|
942
|
+
}
|
943
|
+
namespace VotingPowerInfoV2 {
|
944
|
+
const TYPE_QNAME = "0x3::voting_power::VotingPowerInfoV2";
|
945
|
+
function type(): TypeDescriptor<VotingPowerInfoV2>;
|
946
|
+
}
|
879
947
|
}
|
880
948
|
export declare function loadAllTypes(coder: MoveCoder): void;
|