@typemove/aptos 1.5.2-rc.1 → 1.5.2-rc.3
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 +188 -1
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +326 -3
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x4.d.ts +46 -0
- package/dist/cjs/builtin/0x4.d.ts.map +1 -1
- package/dist/cjs/builtin/0x4.js +52 -1
- package/dist/cjs/builtin/0x4.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +188 -1
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +324 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x4.d.ts +46 -0
- package/dist/esm/builtin/0x4.d.ts.map +1 -1
- package/dist/esm/builtin/0x4.js +52 -1
- package/dist/esm/builtin/0x4.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x1.json +751 -60
- package/src/abis/0x4.json +129 -3
- package/src/builtin/0x1.ts +521 -2
- package/src/builtin/0x4.ts +104 -1
|
@@ -1019,10 +1019,26 @@ export declare namespace voting {
|
|
|
1019
1019
|
typeArguments: [MoveStructId];
|
|
1020
1020
|
functionArguments: [MoveAddressType, bigint];
|
|
1021
1021
|
}, version?: bigint): Promise<[bigint]>;
|
|
1022
|
+
function getProposalMetadata<T0 = any>(client: Aptos, request: {
|
|
1023
|
+
typeArguments: [MoveStructId];
|
|
1024
|
+
functionArguments: [MoveAddressType, bigint];
|
|
1025
|
+
}, version?: bigint): Promise<[simple_map.SimpleMap<string, string>]>;
|
|
1026
|
+
function getProposalMetadataValue<T0 = any>(client: Aptos, request: {
|
|
1027
|
+
typeArguments: [MoveStructId];
|
|
1028
|
+
functionArguments: [MoveAddressType, bigint, string];
|
|
1029
|
+
}, version?: bigint): Promise<[string]>;
|
|
1022
1030
|
function getProposalState<T0 = any>(client: Aptos, request: {
|
|
1023
1031
|
typeArguments: [MoveStructId];
|
|
1024
1032
|
functionArguments: [MoveAddressType, bigint];
|
|
1025
1033
|
}, version?: bigint): Promise<[bigint]>;
|
|
1034
|
+
function getProposer<T0 = any>(client: Aptos, request: {
|
|
1035
|
+
typeArguments: [MoveStructId];
|
|
1036
|
+
functionArguments: [MoveAddressType, bigint];
|
|
1037
|
+
}, version?: bigint): Promise<[MoveAddressType]>;
|
|
1038
|
+
function getResolutionTimeSecs<T0 = any>(client: Aptos, request: {
|
|
1039
|
+
typeArguments: [MoveStructId];
|
|
1040
|
+
functionArguments: [MoveAddressType, bigint];
|
|
1041
|
+
}, version?: bigint): Promise<[bigint]>;
|
|
1026
1042
|
function getVotes<T0 = any>(client: Aptos, request: {
|
|
1027
1043
|
typeArguments: [MoveStructId];
|
|
1028
1044
|
functionArguments: [MoveAddressType, bigint];
|
|
@@ -1762,7 +1778,11 @@ export declare namespace features {
|
|
|
1762
1778
|
function type(): TypeDescriptor<Features>;
|
|
1763
1779
|
}
|
|
1764
1780
|
namespace entry { }
|
|
1765
|
-
namespace view {
|
|
1781
|
+
namespace view {
|
|
1782
|
+
function isEnabled(client: Aptos, request: {
|
|
1783
|
+
functionArguments: [bigint];
|
|
1784
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
1785
|
+
}
|
|
1766
1786
|
}
|
|
1767
1787
|
export declare namespace from_bcs {
|
|
1768
1788
|
namespace entry { }
|
|
@@ -2280,6 +2300,18 @@ export declare namespace string_utils {
|
|
|
2280
2300
|
namespace view { }
|
|
2281
2301
|
}
|
|
2282
2302
|
export declare namespace aggregator_v2 {
|
|
2303
|
+
interface Aggregator<T0> {
|
|
2304
|
+
value: T0;
|
|
2305
|
+
max_value: T0;
|
|
2306
|
+
}
|
|
2307
|
+
namespace Aggregator {
|
|
2308
|
+
const TYPE_QNAME = "0x1::aggregator_v2::Aggregator";
|
|
2309
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Aggregator<T0>>;
|
|
2310
|
+
}
|
|
2311
|
+
interface AggregatorInstance extends TypedEventInstance<Aggregator<any>> {
|
|
2312
|
+
data_decoded: Aggregator<any>;
|
|
2313
|
+
type_arguments: [string];
|
|
2314
|
+
}
|
|
2283
2315
|
interface AggregatorSnapshot<T0> {
|
|
2284
2316
|
value: T0;
|
|
2285
2317
|
}
|
|
@@ -2346,6 +2378,122 @@ export declare namespace aptos_account {
|
|
|
2346
2378
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2347
2379
|
}
|
|
2348
2380
|
}
|
|
2381
|
+
export declare namespace bn254_algebra {
|
|
2382
|
+
interface FormatFq12LscLsb {
|
|
2383
|
+
dummy_field: Boolean;
|
|
2384
|
+
}
|
|
2385
|
+
namespace FormatFq12LscLsb {
|
|
2386
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatFq12LscLsb";
|
|
2387
|
+
function type(): TypeDescriptor<FormatFq12LscLsb>;
|
|
2388
|
+
}
|
|
2389
|
+
interface FormatFqLsb {
|
|
2390
|
+
dummy_field: Boolean;
|
|
2391
|
+
}
|
|
2392
|
+
namespace FormatFqLsb {
|
|
2393
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatFqLsb";
|
|
2394
|
+
function type(): TypeDescriptor<FormatFqLsb>;
|
|
2395
|
+
}
|
|
2396
|
+
interface FormatFqMsb {
|
|
2397
|
+
dummy_field: Boolean;
|
|
2398
|
+
}
|
|
2399
|
+
namespace FormatFqMsb {
|
|
2400
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatFqMsb";
|
|
2401
|
+
function type(): TypeDescriptor<FormatFqMsb>;
|
|
2402
|
+
}
|
|
2403
|
+
interface FormatFrLsb {
|
|
2404
|
+
dummy_field: Boolean;
|
|
2405
|
+
}
|
|
2406
|
+
namespace FormatFrLsb {
|
|
2407
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatFrLsb";
|
|
2408
|
+
function type(): TypeDescriptor<FormatFrLsb>;
|
|
2409
|
+
}
|
|
2410
|
+
interface FormatFrMsb {
|
|
2411
|
+
dummy_field: Boolean;
|
|
2412
|
+
}
|
|
2413
|
+
namespace FormatFrMsb {
|
|
2414
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatFrMsb";
|
|
2415
|
+
function type(): TypeDescriptor<FormatFrMsb>;
|
|
2416
|
+
}
|
|
2417
|
+
interface FormatG1Compr {
|
|
2418
|
+
dummy_field: Boolean;
|
|
2419
|
+
}
|
|
2420
|
+
namespace FormatG1Compr {
|
|
2421
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatG1Compr";
|
|
2422
|
+
function type(): TypeDescriptor<FormatG1Compr>;
|
|
2423
|
+
}
|
|
2424
|
+
interface FormatG1Uncompr {
|
|
2425
|
+
dummy_field: Boolean;
|
|
2426
|
+
}
|
|
2427
|
+
namespace FormatG1Uncompr {
|
|
2428
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatG1Uncompr";
|
|
2429
|
+
function type(): TypeDescriptor<FormatG1Uncompr>;
|
|
2430
|
+
}
|
|
2431
|
+
interface FormatG2Compr {
|
|
2432
|
+
dummy_field: Boolean;
|
|
2433
|
+
}
|
|
2434
|
+
namespace FormatG2Compr {
|
|
2435
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatG2Compr";
|
|
2436
|
+
function type(): TypeDescriptor<FormatG2Compr>;
|
|
2437
|
+
}
|
|
2438
|
+
interface FormatG2Uncompr {
|
|
2439
|
+
dummy_field: Boolean;
|
|
2440
|
+
}
|
|
2441
|
+
namespace FormatG2Uncompr {
|
|
2442
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatG2Uncompr";
|
|
2443
|
+
function type(): TypeDescriptor<FormatG2Uncompr>;
|
|
2444
|
+
}
|
|
2445
|
+
interface FormatGt {
|
|
2446
|
+
dummy_field: Boolean;
|
|
2447
|
+
}
|
|
2448
|
+
namespace FormatGt {
|
|
2449
|
+
const TYPE_QNAME = "0x1::bn254_algebra::FormatGt";
|
|
2450
|
+
function type(): TypeDescriptor<FormatGt>;
|
|
2451
|
+
}
|
|
2452
|
+
interface Fq {
|
|
2453
|
+
dummy_field: Boolean;
|
|
2454
|
+
}
|
|
2455
|
+
namespace Fq {
|
|
2456
|
+
const TYPE_QNAME = "0x1::bn254_algebra::Fq";
|
|
2457
|
+
function type(): TypeDescriptor<Fq>;
|
|
2458
|
+
}
|
|
2459
|
+
interface Fq12 {
|
|
2460
|
+
dummy_field: Boolean;
|
|
2461
|
+
}
|
|
2462
|
+
namespace Fq12 {
|
|
2463
|
+
const TYPE_QNAME = "0x1::bn254_algebra::Fq12";
|
|
2464
|
+
function type(): TypeDescriptor<Fq12>;
|
|
2465
|
+
}
|
|
2466
|
+
interface Fr {
|
|
2467
|
+
dummy_field: Boolean;
|
|
2468
|
+
}
|
|
2469
|
+
namespace Fr {
|
|
2470
|
+
const TYPE_QNAME = "0x1::bn254_algebra::Fr";
|
|
2471
|
+
function type(): TypeDescriptor<Fr>;
|
|
2472
|
+
}
|
|
2473
|
+
interface G1 {
|
|
2474
|
+
dummy_field: Boolean;
|
|
2475
|
+
}
|
|
2476
|
+
namespace G1 {
|
|
2477
|
+
const TYPE_QNAME = "0x1::bn254_algebra::G1";
|
|
2478
|
+
function type(): TypeDescriptor<G1>;
|
|
2479
|
+
}
|
|
2480
|
+
interface G2 {
|
|
2481
|
+
dummy_field: Boolean;
|
|
2482
|
+
}
|
|
2483
|
+
namespace G2 {
|
|
2484
|
+
const TYPE_QNAME = "0x1::bn254_algebra::G2";
|
|
2485
|
+
function type(): TypeDescriptor<G2>;
|
|
2486
|
+
}
|
|
2487
|
+
interface Gt {
|
|
2488
|
+
dummy_field: Boolean;
|
|
2489
|
+
}
|
|
2490
|
+
namespace Gt {
|
|
2491
|
+
const TYPE_QNAME = "0x1::bn254_algebra::Gt";
|
|
2492
|
+
function type(): TypeDescriptor<Gt>;
|
|
2493
|
+
}
|
|
2494
|
+
namespace entry { }
|
|
2495
|
+
namespace view { }
|
|
2496
|
+
}
|
|
2349
2497
|
export declare namespace create_signer {
|
|
2350
2498
|
namespace entry { }
|
|
2351
2499
|
namespace view { }
|
|
@@ -2508,6 +2656,13 @@ export declare namespace fungible_asset {
|
|
|
2508
2656
|
data_decoded: BurnRef;
|
|
2509
2657
|
type_arguments: [];
|
|
2510
2658
|
}
|
|
2659
|
+
interface ConcurrentSupply {
|
|
2660
|
+
current: aggregator_v2.Aggregator<bigint>;
|
|
2661
|
+
}
|
|
2662
|
+
namespace ConcurrentSupply {
|
|
2663
|
+
const TYPE_QNAME = "0x1::fungible_asset::ConcurrentSupply";
|
|
2664
|
+
function type(): TypeDescriptor<ConcurrentSupply>;
|
|
2665
|
+
}
|
|
2511
2666
|
interface DepositEvent {
|
|
2512
2667
|
amount: bigint;
|
|
2513
2668
|
}
|
|
@@ -2702,6 +2857,19 @@ export declare namespace delegation_pool {
|
|
|
2702
2857
|
const TYPE_QNAME = "0x1::delegation_pool::BeneficiaryForOperator";
|
|
2703
2858
|
function type(): TypeDescriptor<BeneficiaryForOperator>;
|
|
2704
2859
|
}
|
|
2860
|
+
interface CommissionPercentageChange {
|
|
2861
|
+
pool_address: MoveAddressType;
|
|
2862
|
+
owner: MoveAddressType;
|
|
2863
|
+
commission_percentage_next_lockup_cycle: bigint;
|
|
2864
|
+
}
|
|
2865
|
+
namespace CommissionPercentageChange {
|
|
2866
|
+
const TYPE_QNAME = "0x1::delegation_pool::CommissionPercentageChange";
|
|
2867
|
+
function type(): TypeDescriptor<CommissionPercentageChange>;
|
|
2868
|
+
}
|
|
2869
|
+
interface CommissionPercentageChangeInstance extends TypedEventInstance<CommissionPercentageChange> {
|
|
2870
|
+
data_decoded: CommissionPercentageChange;
|
|
2871
|
+
type_arguments: [];
|
|
2872
|
+
}
|
|
2705
2873
|
interface CreateProposalEvent {
|
|
2706
2874
|
proposal_id: bigint;
|
|
2707
2875
|
voter: MoveAddressType;
|
|
@@ -2809,6 +2977,14 @@ export declare namespace delegation_pool {
|
|
|
2809
2977
|
const TYPE_QNAME = "0x1::delegation_pool::GovernanceRecords";
|
|
2810
2978
|
function type(): TypeDescriptor<GovernanceRecords>;
|
|
2811
2979
|
}
|
|
2980
|
+
interface NextCommissionPercentage {
|
|
2981
|
+
commission_percentage_next_lockup_cycle: bigint;
|
|
2982
|
+
effective_after_secs: bigint;
|
|
2983
|
+
}
|
|
2984
|
+
namespace NextCommissionPercentage {
|
|
2985
|
+
const TYPE_QNAME = "0x1::delegation_pool::NextCommissionPercentage";
|
|
2986
|
+
function type(): TypeDescriptor<NextCommissionPercentage>;
|
|
2987
|
+
}
|
|
2812
2988
|
interface ObservedLockupCycle {
|
|
2813
2989
|
index: bigint;
|
|
2814
2990
|
}
|
|
@@ -2957,6 +3133,10 @@ export declare namespace delegation_pool {
|
|
|
2957
3133
|
typeArguments: [];
|
|
2958
3134
|
functionArguments: [MoveAddressType, bigint];
|
|
2959
3135
|
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
3136
|
+
function updateCommissionPercentage(client: Aptos, account: AptosAccount, request: {
|
|
3137
|
+
typeArguments: [];
|
|
3138
|
+
functionArguments: [bigint];
|
|
3139
|
+
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
2960
3140
|
function vote(client: Aptos, account: AptosAccount, request: {
|
|
2961
3141
|
typeArguments: [];
|
|
2962
3142
|
functionArguments: [MoveAddressType, bigint, bigint, Boolean];
|
|
@@ -3003,12 +3183,19 @@ export declare namespace delegation_pool {
|
|
|
3003
3183
|
function getStake(client: Aptos, request: {
|
|
3004
3184
|
functionArguments: [MoveAddressType, MoveAddressType];
|
|
3005
3185
|
}, version?: bigint): Promise<[bigint, bigint, bigint]>;
|
|
3186
|
+
function isNextCommissionPercentageEffective(client: Aptos, request: {
|
|
3187
|
+
functionArguments: [MoveAddressType];
|
|
3188
|
+
}, version?: bigint): Promise<[Boolean]>;
|
|
3189
|
+
function minRemainingSecsForCommissionChange(client: Aptos, version?: bigint): Promise<[bigint]>;
|
|
3006
3190
|
function observedLockupCycle(client: Aptos, request: {
|
|
3007
3191
|
functionArguments: [MoveAddressType];
|
|
3008
3192
|
}, version?: bigint): Promise<[bigint]>;
|
|
3009
3193
|
function operatorCommissionPercentage(client: Aptos, request: {
|
|
3010
3194
|
functionArguments: [MoveAddressType];
|
|
3011
3195
|
}, version?: bigint): Promise<[bigint]>;
|
|
3196
|
+
function operatorCommissionPercentageNextLockupCycle(client: Aptos, request: {
|
|
3197
|
+
functionArguments: [MoveAddressType];
|
|
3198
|
+
}, version?: bigint): Promise<[bigint]>;
|
|
3012
3199
|
function ownerCapExists(client: Aptos, request: {
|
|
3013
3200
|
functionArguments: [MoveAddressType];
|
|
3014
3201
|
}, version?: bigint): Promise<[Boolean]>;
|