@typemove/aptos 1.2.7-rc.1 → 1.2.7
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/cjs/builtin/0x1.d.ts +335 -1
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +502 -3
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x3.js +1 -1
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/builtin/0x4.d.ts +406 -0
- package/dist/cjs/builtin/0x4.d.ts.map +1 -0
- package/dist/cjs/builtin/0x4.js +614 -0
- package/dist/cjs/builtin/0x4.js.map +1 -0
- package/dist/cjs/builtin/index.d.ts +1 -0
- package/dist/cjs/builtin/index.d.ts.map +1 -1
- package/dist/cjs/builtin/index.js +2 -1
- package/dist/cjs/builtin/index.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +335 -1
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +500 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x3.js +1 -1
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/builtin/0x4.d.ts +406 -0
- package/dist/esm/builtin/0x4.d.ts.map +1 -0
- package/dist/esm/builtin/0x4.js +609 -0
- package/dist/esm/builtin/0x4.js.map +1 -0
- package/dist/esm/builtin/index.d.ts +1 -0
- package/dist/esm/builtin/index.d.ts.map +1 -1
- package/dist/esm/builtin/index.js +1 -0
- package/dist/esm/builtin/index.js.map +1 -1
- package/package.json +4 -3
- package/src/abis/0x1.json +9395 -2153
- package/src/abis/0x3.json +889 -219
- package/src/abis/0x4.json +2238 -0
- package/src/builtin/0x1.ts +1044 -54
- package/src/builtin/0x3.ts +1 -1
- package/src/builtin/0x4.ts +1165 -0
- package/src/builtin/index.ts +1 -0
|
@@ -238,6 +238,10 @@ export declare namespace coin {
|
|
|
238
238
|
function isCoinInitialized<T0 = any>(client: AptosClient, request: {
|
|
239
239
|
type_arguments: [string];
|
|
240
240
|
}, version?: bigint): Promise<[Boolean]>;
|
|
241
|
+
function isCoinStoreFrozen<T0 = any>(client: AptosClient, request: {
|
|
242
|
+
type_arguments: [string];
|
|
243
|
+
arguments: [Address];
|
|
244
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
241
245
|
function name<T0 = any>(client: AptosClient, request: {
|
|
242
246
|
type_arguments: [string];
|
|
243
247
|
}, version?: bigint): Promise<[string]>;
|
|
@@ -804,6 +808,13 @@ export declare namespace object_ {
|
|
|
804
808
|
const TYPE_QNAME = "0x1::object::ObjectGroup";
|
|
805
809
|
function type(): TypeDescriptor<ObjectGroup>;
|
|
806
810
|
}
|
|
811
|
+
interface TombStone {
|
|
812
|
+
original_owner: Address;
|
|
813
|
+
}
|
|
814
|
+
namespace TombStone {
|
|
815
|
+
const TYPE_QNAME = "0x1::object::TombStone";
|
|
816
|
+
function type(): TypeDescriptor<TombStone>;
|
|
817
|
+
}
|
|
807
818
|
interface TransferEvent {
|
|
808
819
|
object: Address;
|
|
809
820
|
from: Address;
|
|
@@ -829,6 +840,10 @@ export declare namespace object_ {
|
|
|
829
840
|
type_arguments: [];
|
|
830
841
|
}
|
|
831
842
|
namespace entry {
|
|
843
|
+
function burn<T0 = any>(client: AptosClient, account: AptosAccount, request: {
|
|
844
|
+
type_arguments: [string];
|
|
845
|
+
arguments: [object_.Object<T0>];
|
|
846
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
832
847
|
function transfer<T0 = any>(client: AptosClient, account: AptosAccount, request: {
|
|
833
848
|
type_arguments: [string];
|
|
834
849
|
arguments: [object_.Object<T0>, Address];
|
|
@@ -841,8 +856,17 @@ export declare namespace object_ {
|
|
|
841
856
|
type_arguments: [string, string];
|
|
842
857
|
arguments: [object_.Object<T0>, object_.Object<T1>];
|
|
843
858
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
859
|
+
function unburn<T0 = any>(client: AptosClient, account: AptosAccount, request: {
|
|
860
|
+
type_arguments: [string];
|
|
861
|
+
arguments: [object_.Object<T0>];
|
|
862
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
863
|
+
}
|
|
864
|
+
namespace view {
|
|
865
|
+
function isBurnt<T0 = any>(client: AptosClient, request: {
|
|
866
|
+
type_arguments: [string];
|
|
867
|
+
arguments: [object_.Object<T0>];
|
|
868
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
844
869
|
}
|
|
845
|
-
namespace view { }
|
|
846
870
|
}
|
|
847
871
|
export declare namespace option {
|
|
848
872
|
interface Option<T0> {
|
|
@@ -1184,12 +1208,18 @@ export declare namespace account {
|
|
|
1184
1208
|
function getGuidNextCreationNum(client: AptosClient, request: {
|
|
1185
1209
|
arguments: [Address];
|
|
1186
1210
|
}, version?: bigint): Promise<[bigint]>;
|
|
1211
|
+
function getRotationCapabilityOfferFor(client: AptosClient, request: {
|
|
1212
|
+
arguments: [Address];
|
|
1213
|
+
}, version?: bigint): Promise<[Address]>;
|
|
1187
1214
|
function getSequenceNumber(client: AptosClient, request: {
|
|
1188
1215
|
arguments: [Address];
|
|
1189
1216
|
}, version?: bigint): Promise<[bigint]>;
|
|
1190
1217
|
function getSignerCapabilityOfferFor(client: AptosClient, request: {
|
|
1191
1218
|
arguments: [Address];
|
|
1192
1219
|
}, version?: bigint): Promise<[Address]>;
|
|
1220
|
+
function isRotationCapabilityOffered(client: AptosClient, request: {
|
|
1221
|
+
arguments: [Address];
|
|
1222
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
1193
1223
|
function isSignerCapabilityOffered(client: AptosClient, request: {
|
|
1194
1224
|
arguments: [Address];
|
|
1195
1225
|
}, version?: bigint): Promise<[Boolean]>;
|
|
@@ -1567,6 +1597,10 @@ export declare namespace vesting {
|
|
|
1567
1597
|
type_arguments: [];
|
|
1568
1598
|
arguments: [Address[]];
|
|
1569
1599
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
1600
|
+
function updateCommissionPercentage(client: AptosClient, account: AptosAccount, request: {
|
|
1601
|
+
type_arguments: [];
|
|
1602
|
+
arguments: [Address, bigint];
|
|
1603
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
1570
1604
|
function updateOperator(client: AptosClient, account: AptosAccount, request: {
|
|
1571
1605
|
type_arguments: [];
|
|
1572
1606
|
arguments: [Address, Address, bigint];
|
|
@@ -2242,6 +2276,21 @@ export declare namespace string_utils {
|
|
|
2242
2276
|
namespace entry { }
|
|
2243
2277
|
namespace view { }
|
|
2244
2278
|
}
|
|
2279
|
+
export declare namespace aggregator_v2 {
|
|
2280
|
+
interface AggregatorSnapshot<T0> {
|
|
2281
|
+
value: T0;
|
|
2282
|
+
}
|
|
2283
|
+
namespace AggregatorSnapshot {
|
|
2284
|
+
const TYPE_QNAME = "0x1::aggregator_v2::AggregatorSnapshot";
|
|
2285
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<AggregatorSnapshot<T0>>;
|
|
2286
|
+
}
|
|
2287
|
+
interface AggregatorSnapshotInstance extends TypedEventInstance<AggregatorSnapshot<any>> {
|
|
2288
|
+
data_decoded: AggregatorSnapshot<any>;
|
|
2289
|
+
type_arguments: [string];
|
|
2290
|
+
}
|
|
2291
|
+
namespace entry { }
|
|
2292
|
+
namespace view { }
|
|
2293
|
+
}
|
|
2245
2294
|
export declare namespace aptos_account {
|
|
2246
2295
|
interface DirectCoinTransferConfigUpdatedEvent {
|
|
2247
2296
|
new_allow_direct_transfers: Boolean;
|
|
@@ -2643,6 +2692,46 @@ export declare namespace delegation_pool {
|
|
|
2643
2692
|
data_decoded: AddStakeEvent;
|
|
2644
2693
|
type_arguments: [];
|
|
2645
2694
|
}
|
|
2695
|
+
interface CreateProposalEvent {
|
|
2696
|
+
proposal_id: bigint;
|
|
2697
|
+
voter: Address;
|
|
2698
|
+
delegation_pool: Address;
|
|
2699
|
+
}
|
|
2700
|
+
namespace CreateProposalEvent {
|
|
2701
|
+
const TYPE_QNAME = "0x1::delegation_pool::CreateProposalEvent";
|
|
2702
|
+
function type(): TypeDescriptor<CreateProposalEvent>;
|
|
2703
|
+
}
|
|
2704
|
+
interface CreateProposalEventInstance extends TypedEventInstance<CreateProposalEvent> {
|
|
2705
|
+
data_decoded: CreateProposalEvent;
|
|
2706
|
+
type_arguments: [];
|
|
2707
|
+
}
|
|
2708
|
+
interface DelegateVotingPowerEvent {
|
|
2709
|
+
pool_address: Address;
|
|
2710
|
+
delegator: Address;
|
|
2711
|
+
voter: Address;
|
|
2712
|
+
}
|
|
2713
|
+
namespace DelegateVotingPowerEvent {
|
|
2714
|
+
const TYPE_QNAME = "0x1::delegation_pool::DelegateVotingPowerEvent";
|
|
2715
|
+
function type(): TypeDescriptor<DelegateVotingPowerEvent>;
|
|
2716
|
+
}
|
|
2717
|
+
interface DelegateVotingPowerEventInstance extends TypedEventInstance<DelegateVotingPowerEvent> {
|
|
2718
|
+
data_decoded: DelegateVotingPowerEvent;
|
|
2719
|
+
type_arguments: [];
|
|
2720
|
+
}
|
|
2721
|
+
interface DelegatedVotes {
|
|
2722
|
+
active_shares: bigint;
|
|
2723
|
+
pending_inactive_shares: bigint;
|
|
2724
|
+
active_shares_next_lockup: bigint;
|
|
2725
|
+
last_locked_until_secs: bigint;
|
|
2726
|
+
}
|
|
2727
|
+
namespace DelegatedVotes {
|
|
2728
|
+
const TYPE_QNAME = "0x1::delegation_pool::DelegatedVotes";
|
|
2729
|
+
function type(): TypeDescriptor<DelegatedVotes>;
|
|
2730
|
+
}
|
|
2731
|
+
interface DelegatedVotesInstance extends TypedEventInstance<DelegatedVotes> {
|
|
2732
|
+
data_decoded: DelegatedVotes;
|
|
2733
|
+
type_arguments: [];
|
|
2734
|
+
}
|
|
2646
2735
|
interface DelegationPool {
|
|
2647
2736
|
active_shares: pool_u64_unbound.Pool;
|
|
2648
2737
|
observed_lockup_cycle: delegation_pool.ObservedLockupCycle;
|
|
@@ -2682,6 +2771,19 @@ export declare namespace delegation_pool {
|
|
|
2682
2771
|
data_decoded: DistributeCommissionEvent;
|
|
2683
2772
|
type_arguments: [];
|
|
2684
2773
|
}
|
|
2774
|
+
interface GovernanceRecords {
|
|
2775
|
+
votes: smart_table.SmartTable<delegation_pool.VotingRecordKey, bigint>;
|
|
2776
|
+
votes_per_proposal: smart_table.SmartTable<bigint, bigint>;
|
|
2777
|
+
vote_delegation: smart_table.SmartTable<Address, delegation_pool.VoteDelegation>;
|
|
2778
|
+
delegated_votes: smart_table.SmartTable<Address, delegation_pool.DelegatedVotes>;
|
|
2779
|
+
vote_events: event.EventHandle<delegation_pool.VoteEvent>;
|
|
2780
|
+
create_proposal_events: event.EventHandle<delegation_pool.CreateProposalEvent>;
|
|
2781
|
+
delegate_voting_power_events: event.EventHandle<delegation_pool.DelegateVotingPowerEvent>;
|
|
2782
|
+
}
|
|
2783
|
+
namespace GovernanceRecords {
|
|
2784
|
+
const TYPE_QNAME = "0x1::delegation_pool::GovernanceRecords";
|
|
2785
|
+
function type(): TypeDescriptor<GovernanceRecords>;
|
|
2786
|
+
}
|
|
2685
2787
|
interface ObservedLockupCycle {
|
|
2686
2788
|
index: bigint;
|
|
2687
2789
|
}
|
|
@@ -2719,6 +2821,46 @@ export declare namespace delegation_pool {
|
|
|
2719
2821
|
data_decoded: UnlockStakeEvent;
|
|
2720
2822
|
type_arguments: [];
|
|
2721
2823
|
}
|
|
2824
|
+
interface VoteDelegation {
|
|
2825
|
+
voter: Address;
|
|
2826
|
+
pending_voter: Address;
|
|
2827
|
+
last_locked_until_secs: bigint;
|
|
2828
|
+
}
|
|
2829
|
+
namespace VoteDelegation {
|
|
2830
|
+
const TYPE_QNAME = "0x1::delegation_pool::VoteDelegation";
|
|
2831
|
+
function type(): TypeDescriptor<VoteDelegation>;
|
|
2832
|
+
}
|
|
2833
|
+
interface VoteDelegationInstance extends TypedEventInstance<VoteDelegation> {
|
|
2834
|
+
data_decoded: VoteDelegation;
|
|
2835
|
+
type_arguments: [];
|
|
2836
|
+
}
|
|
2837
|
+
interface VoteEvent {
|
|
2838
|
+
voter: Address;
|
|
2839
|
+
proposal_id: bigint;
|
|
2840
|
+
delegation_pool: Address;
|
|
2841
|
+
num_votes: bigint;
|
|
2842
|
+
should_pass: Boolean;
|
|
2843
|
+
}
|
|
2844
|
+
namespace VoteEvent {
|
|
2845
|
+
const TYPE_QNAME = "0x1::delegation_pool::VoteEvent";
|
|
2846
|
+
function type(): TypeDescriptor<VoteEvent>;
|
|
2847
|
+
}
|
|
2848
|
+
interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
|
|
2849
|
+
data_decoded: VoteEvent;
|
|
2850
|
+
type_arguments: [];
|
|
2851
|
+
}
|
|
2852
|
+
interface VotingRecordKey {
|
|
2853
|
+
voter: Address;
|
|
2854
|
+
proposal_id: bigint;
|
|
2855
|
+
}
|
|
2856
|
+
namespace VotingRecordKey {
|
|
2857
|
+
const TYPE_QNAME = "0x1::delegation_pool::VotingRecordKey";
|
|
2858
|
+
function type(): TypeDescriptor<VotingRecordKey>;
|
|
2859
|
+
}
|
|
2860
|
+
interface VotingRecordKeyInstance extends TypedEventInstance<VotingRecordKey> {
|
|
2861
|
+
data_decoded: VotingRecordKey;
|
|
2862
|
+
type_arguments: [];
|
|
2863
|
+
}
|
|
2722
2864
|
interface WithdrawStakeEvent {
|
|
2723
2865
|
pool_address: Address;
|
|
2724
2866
|
delegator_address: Address;
|
|
@@ -2737,6 +2879,18 @@ export declare namespace delegation_pool {
|
|
|
2737
2879
|
type_arguments: [];
|
|
2738
2880
|
arguments: [Address, bigint];
|
|
2739
2881
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2882
|
+
function createProposal(client: AptosClient, account: AptosAccount, request: {
|
|
2883
|
+
type_arguments: [];
|
|
2884
|
+
arguments: [Address, string, string, string, Boolean];
|
|
2885
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2886
|
+
function delegateVotingPower(client: AptosClient, account: AptosAccount, request: {
|
|
2887
|
+
type_arguments: [];
|
|
2888
|
+
arguments: [Address, Address];
|
|
2889
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2890
|
+
function enablePartialGovernanceVoting(client: AptosClient, account: AptosAccount, request: {
|
|
2891
|
+
type_arguments: [];
|
|
2892
|
+
arguments: [Address];
|
|
2893
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2740
2894
|
function initializeDelegationPool(client: AptosClient, account: AptosAccount, request: {
|
|
2741
2895
|
type_arguments: [];
|
|
2742
2896
|
arguments: [bigint, string];
|
|
@@ -2761,12 +2915,25 @@ export declare namespace delegation_pool {
|
|
|
2761
2915
|
type_arguments: [];
|
|
2762
2916
|
arguments: [Address, bigint];
|
|
2763
2917
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2918
|
+
function vote(client: AptosClient, account: AptosAccount, request: {
|
|
2919
|
+
type_arguments: [];
|
|
2920
|
+
arguments: [Address, bigint, bigint, Boolean];
|
|
2921
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2764
2922
|
function withdraw(client: AptosClient, account: AptosAccount, request: {
|
|
2765
2923
|
type_arguments: [];
|
|
2766
2924
|
arguments: [Address, bigint];
|
|
2767
2925
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2768
2926
|
}
|
|
2769
2927
|
namespace view {
|
|
2928
|
+
function calculateAndUpdateDelegatorVoter(client: AptosClient, request: {
|
|
2929
|
+
arguments: [Address, Address];
|
|
2930
|
+
}, version?: bigint): Promise<[Address]>;
|
|
2931
|
+
function calculateAndUpdateRemainingVotingPower(client: AptosClient, request: {
|
|
2932
|
+
arguments: [Address, Address, bigint];
|
|
2933
|
+
}, version?: bigint): Promise<[bigint]>;
|
|
2934
|
+
function calculateAndUpdateVoterTotalVotingPower(client: AptosClient, request: {
|
|
2935
|
+
arguments: [Address, Address];
|
|
2936
|
+
}, version?: bigint): Promise<[bigint]>;
|
|
2770
2937
|
function canWithdrawPendingInactive(client: AptosClient, request: {
|
|
2771
2938
|
arguments: [Address];
|
|
2772
2939
|
}, version?: bigint): Promise<[Boolean]>;
|
|
@@ -2779,6 +2946,9 @@ export declare namespace delegation_pool {
|
|
|
2779
2946
|
function getDelegationPoolStake(client: AptosClient, request: {
|
|
2780
2947
|
arguments: [Address];
|
|
2781
2948
|
}, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
|
|
2949
|
+
function getExpectedStakePoolAddress(client: AptosClient, request: {
|
|
2950
|
+
arguments: [Address, string];
|
|
2951
|
+
}, version?: bigint): Promise<[Address]>;
|
|
2782
2952
|
function getOwnedPoolAddress(client: AptosClient, request: {
|
|
2783
2953
|
arguments: [Address];
|
|
2784
2954
|
}, version?: bigint): Promise<[Address]>;
|
|
@@ -2797,6 +2967,9 @@ export declare namespace delegation_pool {
|
|
|
2797
2967
|
function ownerCapExists(client: AptosClient, request: {
|
|
2798
2968
|
arguments: [Address];
|
|
2799
2969
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2970
|
+
function partialGovernanceVotingEnabled(client: AptosClient, request: {
|
|
2971
|
+
arguments: [Address];
|
|
2972
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
2800
2973
|
function shareholdersCountActivePool(client: AptosClient, request: {
|
|
2801
2974
|
arguments: [Address];
|
|
2802
2975
|
}, version?: bigint): Promise<[bigint]>;
|
|
@@ -2841,6 +3014,13 @@ export declare namespace transaction_fee {
|
|
|
2841
3014
|
const TYPE_QNAME = "0x1::transaction_fee::AptosCoinCapabilities";
|
|
2842
3015
|
function type(): TypeDescriptor<AptosCoinCapabilities>;
|
|
2843
3016
|
}
|
|
3017
|
+
interface AptosCoinMintCapability {
|
|
3018
|
+
mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
|
|
3019
|
+
}
|
|
3020
|
+
namespace AptosCoinMintCapability {
|
|
3021
|
+
const TYPE_QNAME = "0x1::transaction_fee::AptosCoinMintCapability";
|
|
3022
|
+
function type(): TypeDescriptor<AptosCoinMintCapability>;
|
|
3023
|
+
}
|
|
2844
3024
|
interface CollectedFeesPerBlock {
|
|
2845
3025
|
amount: coin.AggregatableCoin<aptos_coin.AptosCoin>;
|
|
2846
3026
|
proposer: option.Option<Address>;
|
|
@@ -2850,6 +3030,21 @@ export declare namespace transaction_fee {
|
|
|
2850
3030
|
const TYPE_QNAME = "0x1::transaction_fee::CollectedFeesPerBlock";
|
|
2851
3031
|
function type(): TypeDescriptor<CollectedFeesPerBlock>;
|
|
2852
3032
|
}
|
|
3033
|
+
interface FeeStatement {
|
|
3034
|
+
total_charge_gas_units: bigint;
|
|
3035
|
+
execution_gas_units: bigint;
|
|
3036
|
+
io_gas_units: bigint;
|
|
3037
|
+
storage_fee_octas: bigint;
|
|
3038
|
+
storage_fee_refund_octas: bigint;
|
|
3039
|
+
}
|
|
3040
|
+
namespace FeeStatement {
|
|
3041
|
+
const TYPE_QNAME = "0x1::transaction_fee::FeeStatement";
|
|
3042
|
+
function type(): TypeDescriptor<FeeStatement>;
|
|
3043
|
+
}
|
|
3044
|
+
interface FeeStatementInstance extends TypedEventInstance<FeeStatement> {
|
|
3045
|
+
data_decoded: FeeStatement;
|
|
3046
|
+
type_arguments: [];
|
|
3047
|
+
}
|
|
2853
3048
|
namespace entry { }
|
|
2854
3049
|
namespace view { }
|
|
2855
3050
|
}
|
|
@@ -2948,6 +3143,13 @@ export declare namespace aptos_governance {
|
|
|
2948
3143
|
const TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
|
|
2949
3144
|
function type(): TypeDescriptor<VotingRecords>;
|
|
2950
3145
|
}
|
|
3146
|
+
interface VotingRecordsV2 {
|
|
3147
|
+
votes: smart_table.SmartTable<aptos_governance.RecordKey, bigint>;
|
|
3148
|
+
}
|
|
3149
|
+
namespace VotingRecordsV2 {
|
|
3150
|
+
const TYPE_QNAME = "0x1::aptos_governance::VotingRecordsV2";
|
|
3151
|
+
function type(): TypeDescriptor<VotingRecordsV2>;
|
|
3152
|
+
}
|
|
2951
3153
|
namespace entry {
|
|
2952
3154
|
function addApprovedScriptHashScript(client: AptosClient, account: AptosAccount, request: {
|
|
2953
3155
|
type_arguments: [];
|
|
@@ -2961,6 +3163,10 @@ export declare namespace aptos_governance {
|
|
|
2961
3163
|
type_arguments: [];
|
|
2962
3164
|
arguments: [Address, string, string, string, Boolean];
|
|
2963
3165
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3166
|
+
function partialVote(client: AptosClient, account: AptosAccount, request: {
|
|
3167
|
+
type_arguments: [];
|
|
3168
|
+
arguments: [Address, bigint, bigint, Boolean];
|
|
3169
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2964
3170
|
function vote(client: AptosClient, account: AptosAccount, request: {
|
|
2965
3171
|
type_arguments: [];
|
|
2966
3172
|
arguments: [Address, bigint, Boolean];
|
|
@@ -2968,8 +3174,17 @@ export declare namespace aptos_governance {
|
|
|
2968
3174
|
}
|
|
2969
3175
|
namespace view {
|
|
2970
3176
|
function getMinVotingThreshold(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
3177
|
+
function getRemainingVotingPower(client: AptosClient, request: {
|
|
3178
|
+
arguments: [Address, bigint];
|
|
3179
|
+
}, version?: bigint): Promise<[bigint]>;
|
|
2971
3180
|
function getRequiredProposerStake(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
2972
3181
|
function getVotingDurationSecs(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
3182
|
+
function getVotingPower(client: AptosClient, request: {
|
|
3183
|
+
arguments: [Address];
|
|
3184
|
+
}, version?: bigint): Promise<[bigint]>;
|
|
3185
|
+
function hasEntirelyVoted(client: AptosClient, request: {
|
|
3186
|
+
arguments: [Address, bigint];
|
|
3187
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
2973
3188
|
}
|
|
2974
3189
|
}
|
|
2975
3190
|
export declare namespace bls12381_algebra {
|
|
@@ -3199,6 +3414,17 @@ export declare namespace multisig_account {
|
|
|
3199
3414
|
const TYPE_QNAME = "0x1::multisig_account::MultisigAccountCreationMessage";
|
|
3200
3415
|
function type(): TypeDescriptor<MultisigAccountCreationMessage>;
|
|
3201
3416
|
}
|
|
3417
|
+
interface MultisigAccountCreationWithAuthKeyRevocationMessage {
|
|
3418
|
+
chain_id: number;
|
|
3419
|
+
account_address: Address;
|
|
3420
|
+
sequence_number: bigint;
|
|
3421
|
+
owners: Address[];
|
|
3422
|
+
num_signatures_required: bigint;
|
|
3423
|
+
}
|
|
3424
|
+
namespace MultisigAccountCreationWithAuthKeyRevocationMessage {
|
|
3425
|
+
const TYPE_QNAME = "0x1::multisig_account::MultisigAccountCreationWithAuthKeyRevocationMessage";
|
|
3426
|
+
function type(): TypeDescriptor<MultisigAccountCreationWithAuthKeyRevocationMessage>;
|
|
3427
|
+
}
|
|
3202
3428
|
interface MultisigTransaction {
|
|
3203
3429
|
payload: option.Option<string>;
|
|
3204
3430
|
payload_hash: option.Option<string>;
|
|
@@ -3288,6 +3514,10 @@ export declare namespace multisig_account {
|
|
|
3288
3514
|
type_arguments: [];
|
|
3289
3515
|
arguments: [Address[]];
|
|
3290
3516
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3517
|
+
function addOwnersAndUpdateSignaturesRequired(client: AptosClient, account: AptosAccount, request: {
|
|
3518
|
+
type_arguments: [];
|
|
3519
|
+
arguments: [Address[], bigint];
|
|
3520
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3291
3521
|
function approveTransaction(client: AptosClient, account: AptosAccount, request: {
|
|
3292
3522
|
type_arguments: [];
|
|
3293
3523
|
arguments: [Address, bigint];
|
|
@@ -3317,10 +3547,27 @@ export declare namespace multisig_account {
|
|
|
3317
3547
|
string[]
|
|
3318
3548
|
];
|
|
3319
3549
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3550
|
+
function createWithExistingAccountAndRevokeAuthKey(client: AptosClient, account: AptosAccount, request: {
|
|
3551
|
+
type_arguments: [];
|
|
3552
|
+
arguments: [
|
|
3553
|
+
Address,
|
|
3554
|
+
Address[],
|
|
3555
|
+
bigint,
|
|
3556
|
+
number,
|
|
3557
|
+
string,
|
|
3558
|
+
string,
|
|
3559
|
+
string[],
|
|
3560
|
+
string[]
|
|
3561
|
+
];
|
|
3562
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3320
3563
|
function createWithOwners(client: AptosClient, account: AptosAccount, request: {
|
|
3321
3564
|
type_arguments: [];
|
|
3322
3565
|
arguments: [Address[], bigint, string[], string[]];
|
|
3323
3566
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3567
|
+
function createWithOwnersThenRemoveBootstrapper(client: AptosClient, account: AptosAccount, request: {
|
|
3568
|
+
type_arguments: [];
|
|
3569
|
+
arguments: [Address[], bigint, string[], string[]];
|
|
3570
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3324
3571
|
function executeRejectedTransaction(client: AptosClient, account: AptosAccount, request: {
|
|
3325
3572
|
type_arguments: [];
|
|
3326
3573
|
arguments: [Address];
|
|
@@ -3337,6 +3584,18 @@ export declare namespace multisig_account {
|
|
|
3337
3584
|
type_arguments: [];
|
|
3338
3585
|
arguments: [Address[]];
|
|
3339
3586
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3587
|
+
function swapOwner(client: AptosClient, account: AptosAccount, request: {
|
|
3588
|
+
type_arguments: [];
|
|
3589
|
+
arguments: [Address, Address];
|
|
3590
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3591
|
+
function swapOwners(client: AptosClient, account: AptosAccount, request: {
|
|
3592
|
+
type_arguments: [];
|
|
3593
|
+
arguments: [Address[], Address[]];
|
|
3594
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3595
|
+
function swapOwnersAndUpdateSignaturesRequired(client: AptosClient, account: AptosAccount, request: {
|
|
3596
|
+
type_arguments: [];
|
|
3597
|
+
arguments: [Address[], Address[], bigint];
|
|
3598
|
+
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
3340
3599
|
function updateMetadata(client: AptosClient, account: AptosAccount, request: {
|
|
3341
3600
|
type_arguments: [];
|
|
3342
3601
|
arguments: [string[], string[]];
|
|
@@ -3656,6 +3915,9 @@ export declare namespace staking_contract {
|
|
|
3656
3915
|
function commissionPercentage(client: AptosClient, request: {
|
|
3657
3916
|
arguments: [Address, Address];
|
|
3658
3917
|
}, version?: bigint): Promise<[bigint]>;
|
|
3918
|
+
function getExpectedStakePoolAddress(client: AptosClient, request: {
|
|
3919
|
+
arguments: [Address, Address, string];
|
|
3920
|
+
}, version?: bigint): Promise<[Address]>;
|
|
3659
3921
|
function lastRecordedPrincipal(client: AptosClient, request: {
|
|
3660
3922
|
arguments: [Address, Address];
|
|
3661
3923
|
}, version?: bigint): Promise<[bigint]>;
|
|
@@ -3736,6 +3998,63 @@ export declare namespace optional_aggregator {
|
|
|
3736
3998
|
namespace view { }
|
|
3737
3999
|
}
|
|
3738
4000
|
export declare namespace transaction_context {
|
|
4001
|
+
interface AUID {
|
|
4002
|
+
unique_address: Address;
|
|
4003
|
+
}
|
|
4004
|
+
namespace AUID {
|
|
4005
|
+
const TYPE_QNAME = "0x1::transaction_context::AUID";
|
|
4006
|
+
function type(): TypeDescriptor<AUID>;
|
|
4007
|
+
}
|
|
4008
|
+
interface AUIDInstance extends TypedEventInstance<AUID> {
|
|
4009
|
+
data_decoded: AUID;
|
|
4010
|
+
type_arguments: [];
|
|
4011
|
+
}
|
|
4012
|
+
namespace entry { }
|
|
4013
|
+
namespace view { }
|
|
4014
|
+
}
|
|
4015
|
+
export declare namespace ristretto255_elgamal {
|
|
4016
|
+
interface Ciphertext {
|
|
4017
|
+
left: ristretto255.RistrettoPoint;
|
|
4018
|
+
right: ristretto255.RistrettoPoint;
|
|
4019
|
+
}
|
|
4020
|
+
namespace Ciphertext {
|
|
4021
|
+
const TYPE_QNAME = "0x1::ristretto255_elgamal::Ciphertext";
|
|
4022
|
+
function type(): TypeDescriptor<Ciphertext>;
|
|
4023
|
+
}
|
|
4024
|
+
interface CompressedCiphertext {
|
|
4025
|
+
left: ristretto255.CompressedRistretto;
|
|
4026
|
+
right: ristretto255.CompressedRistretto;
|
|
4027
|
+
}
|
|
4028
|
+
namespace CompressedCiphertext {
|
|
4029
|
+
const TYPE_QNAME = "0x1::ristretto255_elgamal::CompressedCiphertext";
|
|
4030
|
+
function type(): TypeDescriptor<CompressedCiphertext>;
|
|
4031
|
+
}
|
|
4032
|
+
interface CompressedCiphertextInstance extends TypedEventInstance<CompressedCiphertext> {
|
|
4033
|
+
data_decoded: CompressedCiphertext;
|
|
4034
|
+
type_arguments: [];
|
|
4035
|
+
}
|
|
4036
|
+
interface CompressedPubkey {
|
|
4037
|
+
point: ristretto255.CompressedRistretto;
|
|
4038
|
+
}
|
|
4039
|
+
namespace CompressedPubkey {
|
|
4040
|
+
const TYPE_QNAME = "0x1::ristretto255_elgamal::CompressedPubkey";
|
|
4041
|
+
function type(): TypeDescriptor<CompressedPubkey>;
|
|
4042
|
+
}
|
|
4043
|
+
interface CompressedPubkeyInstance extends TypedEventInstance<CompressedPubkey> {
|
|
4044
|
+
data_decoded: CompressedPubkey;
|
|
4045
|
+
type_arguments: [];
|
|
4046
|
+
}
|
|
4047
|
+
namespace entry { }
|
|
4048
|
+
namespace view { }
|
|
4049
|
+
}
|
|
4050
|
+
export declare namespace ristretto255_pedersen {
|
|
4051
|
+
interface Commitment {
|
|
4052
|
+
point: ristretto255.RistrettoPoint;
|
|
4053
|
+
}
|
|
4054
|
+
namespace Commitment {
|
|
4055
|
+
const TYPE_QNAME = "0x1::ristretto255_pedersen::Commitment";
|
|
4056
|
+
function type(): TypeDescriptor<Commitment>;
|
|
4057
|
+
}
|
|
3739
4058
|
namespace entry { }
|
|
3740
4059
|
namespace view { }
|
|
3741
4060
|
}
|
|
@@ -3792,5 +4111,20 @@ export declare namespace transaction_validation {
|
|
|
3792
4111
|
namespace entry { }
|
|
3793
4112
|
namespace view { }
|
|
3794
4113
|
}
|
|
4114
|
+
export declare namespace ristretto255_bulletproofs {
|
|
4115
|
+
interface RangeProof {
|
|
4116
|
+
bytes: string;
|
|
4117
|
+
}
|
|
4118
|
+
namespace RangeProof {
|
|
4119
|
+
const TYPE_QNAME = "0x1::ristretto255_bulletproofs::RangeProof";
|
|
4120
|
+
function type(): TypeDescriptor<RangeProof>;
|
|
4121
|
+
}
|
|
4122
|
+
interface RangeProofInstance extends TypedEventInstance<RangeProof> {
|
|
4123
|
+
data_decoded: RangeProof;
|
|
4124
|
+
type_arguments: [];
|
|
4125
|
+
}
|
|
4126
|
+
namespace entry { }
|
|
4127
|
+
namespace view { }
|
|
4128
|
+
}
|
|
3795
4129
|
export declare function loadAllTypes(coder: MoveCoder): void;
|
|
3796
4130
|
//# sourceMappingURL=0x1.d.ts.map
|