@typemove/aptos 1.9.1-rc.4 → 1.10.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/cjs/builtin/0x1.d.ts +185 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +285 -3
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts.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.map +1 -1
- package/dist/cjs/builtin/0x4.js +1 -1
- package/dist/cjs/builtin/0x4.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts +2 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +20 -2
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/move-coder.d.ts +2 -1
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +17 -0
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +185 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +282 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts.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.map +1 -1
- package/dist/esm/builtin/0x4.js +1 -1
- package/dist/esm/builtin/0x4.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts +2 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +20 -2
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/move-coder.d.ts +2 -1
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +17 -0
- package/dist/esm/move-coder.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x1.json +1040 -45
- package/src/abis/0x3.json +2 -2
- package/src/abis/0x4.json +17 -17
- package/src/builtin/0x1.ts +468 -1
- package/src/builtin/0x3.ts +2 -1
- package/src/builtin/0x4.ts +2 -1
- package/src/codegen/codegen.ts +23 -2
- package/src/move-coder.ts +20 -1
- package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts +1 -0
- package/src/tests/types/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.ts +1 -0
- package/src/tests/types/0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99.ts +1 -0
- package/src/tests/types/0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615.ts +1 -0
- package/src/tests/types/0x87978b35bf1eb73ae6cf04cfedcaa1f48254a683ebd00a21e7516a991edae3ac.ts +1 -0
- package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts +1 -0
|
@@ -1255,6 +1255,10 @@ export declare namespace table {
|
|
|
1255
1255
|
namespace entry { }
|
|
1256
1256
|
namespace view { }
|
|
1257
1257
|
}
|
|
1258
|
+
export declare namespace base16 {
|
|
1259
|
+
namespace entry { }
|
|
1260
|
+
namespace view { }
|
|
1261
|
+
}
|
|
1258
1262
|
export declare namespace math64 {
|
|
1259
1263
|
namespace entry { }
|
|
1260
1264
|
namespace view { }
|
|
@@ -1396,14 +1400,30 @@ export declare namespace object$ {
|
|
|
1396
1400
|
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
1397
1401
|
}
|
|
1398
1402
|
namespace view {
|
|
1403
|
+
function owner<T0 = any>(client: Aptos, request: {
|
|
1404
|
+
typeArguments: [MoveStructId];
|
|
1405
|
+
functionArguments: [object$.Object<T0>];
|
|
1406
|
+
}, version?: bigint): Promise<[MoveAddressType]>;
|
|
1399
1407
|
function isBurnt<T0 = any>(client: Aptos, request: {
|
|
1400
1408
|
typeArguments: [MoveStructId];
|
|
1401
1409
|
functionArguments: [object$.Object<T0>];
|
|
1402
1410
|
}, version?: bigint): Promise<[boolean]>;
|
|
1411
|
+
function isOwner<T0 = any>(client: Aptos, request: {
|
|
1412
|
+
typeArguments: [MoveStructId];
|
|
1413
|
+
functionArguments: [object$.Object<T0>, MoveAddressType];
|
|
1414
|
+
}, version?: bigint): Promise<[boolean]>;
|
|
1403
1415
|
function isUntransferable<T0 = any>(client: Aptos, request: {
|
|
1404
1416
|
typeArguments: [MoveStructId];
|
|
1405
1417
|
functionArguments: [object$.Object<T0>];
|
|
1406
1418
|
}, version?: bigint): Promise<[boolean]>;
|
|
1419
|
+
function owns<T0 = any>(client: Aptos, request: {
|
|
1420
|
+
typeArguments: [MoveStructId];
|
|
1421
|
+
functionArguments: [object$.Object<T0>, MoveAddressType];
|
|
1422
|
+
}, version?: bigint): Promise<[boolean]>;
|
|
1423
|
+
function rootOwner<T0 = any>(client: Aptos, request: {
|
|
1424
|
+
typeArguments: [MoveStructId];
|
|
1425
|
+
functionArguments: [object$.Object<T0>];
|
|
1426
|
+
}, version?: bigint): Promise<[MoveAddressType]>;
|
|
1407
1427
|
}
|
|
1408
1428
|
}
|
|
1409
1429
|
export declare namespace option {
|
|
@@ -1714,6 +1734,22 @@ export declare namespace account {
|
|
|
1714
1734
|
data_decoded: KeyRotationEvent;
|
|
1715
1735
|
type_arguments: [];
|
|
1716
1736
|
};
|
|
1737
|
+
interface KeyRotationToPublicKey {
|
|
1738
|
+
account: MoveAddressType;
|
|
1739
|
+
verified_public_key_bit_map: string;
|
|
1740
|
+
public_key_scheme: number;
|
|
1741
|
+
public_key: string;
|
|
1742
|
+
old_auth_key: string;
|
|
1743
|
+
new_auth_key: string;
|
|
1744
|
+
}
|
|
1745
|
+
namespace KeyRotationToPublicKey {
|
|
1746
|
+
const TYPE_QNAME = "0x1::account::KeyRotationToPublicKey";
|
|
1747
|
+
function type(): TypeDescriptor<KeyRotationToPublicKey>;
|
|
1748
|
+
}
|
|
1749
|
+
type KeyRotationToPublicKeyInstance = TypedEventInstance<KeyRotationToPublicKey> & {
|
|
1750
|
+
data_decoded: KeyRotationToPublicKey;
|
|
1751
|
+
type_arguments: [];
|
|
1752
|
+
};
|
|
1717
1753
|
interface OriginatingAddress {
|
|
1718
1754
|
address_map: table.Table<MoveAddressType, MoveAddressType>;
|
|
1719
1755
|
}
|
|
@@ -1813,6 +1849,10 @@ export declare namespace account {
|
|
|
1813
1849
|
typeArguments: [];
|
|
1814
1850
|
functionArguments: [string];
|
|
1815
1851
|
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
1852
|
+
function rotateAuthenticationKeyFromPublicKey(client: Aptos, account: AptosAccount, request: {
|
|
1853
|
+
typeArguments: [];
|
|
1854
|
+
functionArguments: [number, string];
|
|
1855
|
+
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
1816
1856
|
function rotateAuthenticationKeyWithRotationCapability(client: Aptos, account: AptosAccount, request: {
|
|
1817
1857
|
typeArguments: [];
|
|
1818
1858
|
functionArguments: [MoveAddressType, number, string, string];
|
|
@@ -1821,6 +1861,10 @@ export declare namespace account {
|
|
|
1821
1861
|
typeArguments: [];
|
|
1822
1862
|
functionArguments: [];
|
|
1823
1863
|
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
1864
|
+
function upsertEd25519BackupKeyOnKeylessAccount(client: Aptos, account: AptosAccount, request: {
|
|
1865
|
+
typeArguments: [];
|
|
1866
|
+
functionArguments: [string, string, string];
|
|
1867
|
+
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
1824
1868
|
}
|
|
1825
1869
|
namespace view {
|
|
1826
1870
|
function existsAt(client: Aptos, request: {
|
|
@@ -1931,6 +1975,18 @@ export declare namespace genesis {
|
|
|
1931
1975
|
namespace entry { }
|
|
1932
1976
|
namespace view { }
|
|
1933
1977
|
}
|
|
1978
|
+
export declare namespace keyless {
|
|
1979
|
+
interface PublicKey {
|
|
1980
|
+
iss: string;
|
|
1981
|
+
idc: string;
|
|
1982
|
+
}
|
|
1983
|
+
namespace PublicKey {
|
|
1984
|
+
const TYPE_QNAME = "0x1::keyless::PublicKey";
|
|
1985
|
+
function type(): TypeDescriptor<PublicKey>;
|
|
1986
|
+
}
|
|
1987
|
+
namespace entry { }
|
|
1988
|
+
namespace view { }
|
|
1989
|
+
}
|
|
1934
1990
|
export declare namespace math128 {
|
|
1935
1991
|
namespace entry { }
|
|
1936
1992
|
namespace view { }
|
|
@@ -2548,6 +2604,18 @@ export declare namespace auth_data {
|
|
|
2548
2604
|
namespace entry { }
|
|
2549
2605
|
namespace view { }
|
|
2550
2606
|
}
|
|
2607
|
+
export declare namespace multi_key {
|
|
2608
|
+
interface MultiKey {
|
|
2609
|
+
public_keys: single_key.AnyPublicKey[];
|
|
2610
|
+
signatures_required: number;
|
|
2611
|
+
}
|
|
2612
|
+
namespace MultiKey {
|
|
2613
|
+
const TYPE_QNAME = "0x1::multi_key::MultiKey";
|
|
2614
|
+
function type(): TypeDescriptor<MultiKey>;
|
|
2615
|
+
}
|
|
2616
|
+
namespace entry { }
|
|
2617
|
+
namespace view { }
|
|
2618
|
+
}
|
|
2551
2619
|
export declare namespace secp256k1 {
|
|
2552
2620
|
interface ECDSARawPublicKey {
|
|
2553
2621
|
bytes: string;
|
|
@@ -2566,6 +2634,17 @@ export declare namespace secp256k1 {
|
|
|
2566
2634
|
namespace entry { }
|
|
2567
2635
|
namespace view { }
|
|
2568
2636
|
}
|
|
2637
|
+
export declare namespace secp256r1 {
|
|
2638
|
+
interface ECDSARawPublicKey {
|
|
2639
|
+
bytes: string;
|
|
2640
|
+
}
|
|
2641
|
+
namespace ECDSARawPublicKey {
|
|
2642
|
+
const TYPE_QNAME = "0x1::secp256r1::ECDSARawPublicKey";
|
|
2643
|
+
function type(): TypeDescriptor<ECDSARawPublicKey>;
|
|
2644
|
+
}
|
|
2645
|
+
namespace entry { }
|
|
2646
|
+
namespace view { }
|
|
2647
|
+
}
|
|
2569
2648
|
export declare namespace timestamp {
|
|
2570
2649
|
interface CurrentTimeMicroseconds {
|
|
2571
2650
|
microseconds: bigint;
|
|
@@ -2787,6 +2866,16 @@ export declare namespace simple_map {
|
|
|
2787
2866
|
namespace entry { }
|
|
2788
2867
|
namespace view { }
|
|
2789
2868
|
}
|
|
2869
|
+
export declare namespace single_key {
|
|
2870
|
+
interface AnyPublicKey {
|
|
2871
|
+
}
|
|
2872
|
+
namespace AnyPublicKey {
|
|
2873
|
+
const TYPE_QNAME = "0x1::single_key::AnyPublicKey";
|
|
2874
|
+
function type(): TypeDescriptor<AnyPublicKey>;
|
|
2875
|
+
}
|
|
2876
|
+
namespace entry { }
|
|
2877
|
+
namespace view { }
|
|
2878
|
+
}
|
|
2790
2879
|
export declare namespace ordered_map {
|
|
2791
2880
|
interface Entry<T0, T1> {
|
|
2792
2881
|
key: T0;
|
|
@@ -5279,6 +5368,52 @@ export declare namespace multisig_account {
|
|
|
5279
5368
|
}, version?: bigint): Promise<[bigint]>;
|
|
5280
5369
|
}
|
|
5281
5370
|
}
|
|
5371
|
+
export declare namespace nonce_validation {
|
|
5372
|
+
interface Bucket {
|
|
5373
|
+
nonces_ordered_by_exp_time: big_ordered_map.BigOrderedMap<nonce_validation.NonceKeyWithExpTime, boolean>;
|
|
5374
|
+
nonce_to_exp_time_map: big_ordered_map.BigOrderedMap<nonce_validation.NonceKey, bigint>;
|
|
5375
|
+
}
|
|
5376
|
+
namespace Bucket {
|
|
5377
|
+
const TYPE_QNAME = "0x1::nonce_validation::Bucket";
|
|
5378
|
+
function type(): TypeDescriptor<Bucket>;
|
|
5379
|
+
}
|
|
5380
|
+
interface NonceHistory {
|
|
5381
|
+
nonce_table: table.Table<bigint, nonce_validation.Bucket>;
|
|
5382
|
+
next_key: bigint;
|
|
5383
|
+
}
|
|
5384
|
+
namespace NonceHistory {
|
|
5385
|
+
const TYPE_QNAME = "0x1::nonce_validation::NonceHistory";
|
|
5386
|
+
function type(): TypeDescriptor<NonceHistory>;
|
|
5387
|
+
}
|
|
5388
|
+
interface NonceKey {
|
|
5389
|
+
sender_address: MoveAddressType;
|
|
5390
|
+
nonce: bigint;
|
|
5391
|
+
}
|
|
5392
|
+
namespace NonceKey {
|
|
5393
|
+
const TYPE_QNAME = "0x1::nonce_validation::NonceKey";
|
|
5394
|
+
function type(): TypeDescriptor<NonceKey>;
|
|
5395
|
+
}
|
|
5396
|
+
interface NonceKeyWithExpTime {
|
|
5397
|
+
txn_expiration_time: bigint;
|
|
5398
|
+
sender_address: MoveAddressType;
|
|
5399
|
+
nonce: bigint;
|
|
5400
|
+
}
|
|
5401
|
+
namespace NonceKeyWithExpTime {
|
|
5402
|
+
const TYPE_QNAME = "0x1::nonce_validation::NonceKeyWithExpTime";
|
|
5403
|
+
function type(): TypeDescriptor<NonceKeyWithExpTime>;
|
|
5404
|
+
}
|
|
5405
|
+
namespace entry {
|
|
5406
|
+
function addNonceBuckets(client: Aptos, account: AptosAccount, request: {
|
|
5407
|
+
typeArguments: [];
|
|
5408
|
+
functionArguments: [bigint];
|
|
5409
|
+
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
5410
|
+
function initializeNonceTable(client: Aptos, account: AptosAccount, request: {
|
|
5411
|
+
typeArguments: [];
|
|
5412
|
+
functionArguments: [];
|
|
5413
|
+
}, options?: InputGenerateTransactionOptions): Promise<PendingTransactionResponse>;
|
|
5414
|
+
}
|
|
5415
|
+
namespace view { }
|
|
5416
|
+
}
|
|
5282
5417
|
export declare namespace pool_u64_unbound {
|
|
5283
5418
|
interface Pool {
|
|
5284
5419
|
total_coins: bigint;
|
|
@@ -5743,6 +5878,18 @@ export declare namespace system_addresses {
|
|
|
5743
5878
|
namespace entry { }
|
|
5744
5879
|
namespace view { }
|
|
5745
5880
|
}
|
|
5881
|
+
export declare namespace federated_keyless {
|
|
5882
|
+
interface PublicKey {
|
|
5883
|
+
jwk_address: MoveAddressType;
|
|
5884
|
+
keyless_public_key: keyless.PublicKey;
|
|
5885
|
+
}
|
|
5886
|
+
namespace PublicKey {
|
|
5887
|
+
const TYPE_QNAME = "0x1::federated_keyless::PublicKey";
|
|
5888
|
+
function type(): TypeDescriptor<PublicKey>;
|
|
5889
|
+
}
|
|
5890
|
+
namespace entry { }
|
|
5891
|
+
namespace view { }
|
|
5892
|
+
}
|
|
5746
5893
|
export declare namespace randomness_config {
|
|
5747
5894
|
interface ConfigOff {
|
|
5748
5895
|
dummy_field: boolean;
|
|
@@ -6217,6 +6364,12 @@ export declare namespace transaction_validation {
|
|
|
6217
6364
|
const TYPE_QNAME = "0x1::transaction_validation::GasPermission";
|
|
6218
6365
|
function type(): TypeDescriptor<GasPermission>;
|
|
6219
6366
|
}
|
|
6367
|
+
interface ReplayProtector {
|
|
6368
|
+
}
|
|
6369
|
+
namespace ReplayProtector {
|
|
6370
|
+
const TYPE_QNAME = "0x1::transaction_validation::ReplayProtector";
|
|
6371
|
+
function type(): TypeDescriptor<ReplayProtector>;
|
|
6372
|
+
}
|
|
6220
6373
|
interface TransactionValidation {
|
|
6221
6374
|
module_addr: MoveAddressType;
|
|
6222
6375
|
module_name: string;
|
|
@@ -6318,6 +6471,16 @@ export declare namespace reconfiguration_with_dkg {
|
|
|
6318
6471
|
namespace entry { }
|
|
6319
6472
|
namespace view { }
|
|
6320
6473
|
}
|
|
6474
|
+
export declare namespace solana_derivable_account {
|
|
6475
|
+
interface SIWSAbstractSignature {
|
|
6476
|
+
}
|
|
6477
|
+
namespace SIWSAbstractSignature {
|
|
6478
|
+
const TYPE_QNAME = "0x1::solana_derivable_account::SIWSAbstractSignature";
|
|
6479
|
+
function type(): TypeDescriptor<SIWSAbstractSignature>;
|
|
6480
|
+
}
|
|
6481
|
+
namespace entry { }
|
|
6482
|
+
namespace view { }
|
|
6483
|
+
}
|
|
6321
6484
|
export declare namespace validator_consensus_info {
|
|
6322
6485
|
interface ValidatorConsensusInfo {
|
|
6323
6486
|
addr: MoveAddressType;
|
|
@@ -6342,6 +6505,24 @@ export declare namespace ristretto255_bulletproofs {
|
|
|
6342
6505
|
namespace entry { }
|
|
6343
6506
|
namespace view { }
|
|
6344
6507
|
}
|
|
6508
|
+
export declare namespace ethereum_derivable_account {
|
|
6509
|
+
interface SIWEAbstractPublicKey {
|
|
6510
|
+
ethereum_address: string;
|
|
6511
|
+
domain: string;
|
|
6512
|
+
}
|
|
6513
|
+
namespace SIWEAbstractPublicKey {
|
|
6514
|
+
const TYPE_QNAME = "0x1::ethereum_derivable_account::SIWEAbstractPublicKey";
|
|
6515
|
+
function type(): TypeDescriptor<SIWEAbstractPublicKey>;
|
|
6516
|
+
}
|
|
6517
|
+
interface SIWEAbstractSignature {
|
|
6518
|
+
}
|
|
6519
|
+
namespace SIWEAbstractSignature {
|
|
6520
|
+
const TYPE_QNAME = "0x1::ethereum_derivable_account::SIWEAbstractSignature";
|
|
6521
|
+
function type(): TypeDescriptor<SIWEAbstractSignature>;
|
|
6522
|
+
}
|
|
6523
|
+
namespace entry { }
|
|
6524
|
+
namespace view { }
|
|
6525
|
+
}
|
|
6345
6526
|
export declare namespace dispatchable_fungible_asset {
|
|
6346
6527
|
interface TransferRefStore {
|
|
6347
6528
|
transfer_ref: fungible_asset.TransferRef;
|
|
@@ -6380,5 +6561,9 @@ export declare namespace dispatchable_fungible_asset {
|
|
|
6380
6561
|
}, version?: bigint): Promise<[boolean]>;
|
|
6381
6562
|
}
|
|
6382
6563
|
}
|
|
6564
|
+
export declare namespace common_account_abstractions_utils {
|
|
6565
|
+
namespace entry { }
|
|
6566
|
+
namespace view { }
|
|
6567
|
+
}
|
|
6383
6568
|
export declare function loadAllTypes(coder: MoveCoder): void;
|
|
6384
6569
|
//# sourceMappingURL=0x1.d.ts.map
|