@typemove/aptos 1.0.0-rc.22 → 1.0.0-rc.24
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/Readme.md +45 -0
- package/dist/cjs/builtin/0x1.d.ts +10 -107
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +97 -97
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +0 -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/client.test.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +10 -107
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +97 -97
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +0 -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/client.test.js.map +1 -1
- package/dist/esm/codegen/codegen.js +9 -5
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/codegen/run.js +14 -1
- package/dist/esm/codegen/run.js.map +1 -1
- package/package.json +5 -4
- package/src/builtin/0x1.ts +97 -194
- package/src/builtin/0x3.ts +1 -2
- package/src/codegen/codegen.ts +9 -5
- package/src/codegen/run.ts +14 -1
- package/src/tests/abis/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.json +3265 -0
- package/src/tests/abis/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.json +637 -0
- package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts +2657 -0
- package/src/tests/types/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.ts +84 -0
- package/src/tests/types/index.ts +5 -0
package/Readme.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Typemove
|
|
2
|
+
Generate TypeScript bindings for Aptos contracts.
|
|
3
|
+
## Features
|
|
4
|
+
- Code generation for Aptos smart contract based on ABI
|
|
5
|
+
- Typesafe encode/decoding, object filtering, transaction building, etc
|
|
6
|
+
- Automatically manage depended modules
|
|
7
|
+
## Usage
|
|
8
|
+
### Install package
|
|
9
|
+
```shell
|
|
10
|
+
yarn add @typemove/aptos
|
|
11
|
+
```
|
|
12
|
+
or
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
pnpm add @typemove/aptos
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Code Generation
|
|
19
|
+
```typescript
|
|
20
|
+
yarn typemove-aptos <abi-address | path-of-entry-abi-file> <path-of-target-ts-directory> <testnet|mainnet>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
e.g.
|
|
24
|
+
```typescript
|
|
25
|
+
yarn typemove-aptos 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af ./src/types mainnet
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Decode object
|
|
29
|
+
```typescript
|
|
30
|
+
import { defaultMoveCoder } from '@typemove/aptos'
|
|
31
|
+
import { stable_pool } from "./types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af";
|
|
32
|
+
|
|
33
|
+
const pool = await defaultMoveCoder().decodedType(stable_pool.StablePool.type(), object)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Checkout our [tests](./src/tests/move-coder.test.ts) for more examples。
|
|
37
|
+
|
|
38
|
+
### View function
|
|
39
|
+
```typescript
|
|
40
|
+
const aptosClient = new AptosClient("https://fullnode.mainnet.aptoslabs.com")
|
|
41
|
+
const [lpName] = await stable_pool.view.lpNameById(client, { arguments: [3n] })
|
|
42
|
+
const [poolBalances, weights, supply] = await stable_pool.view.poolInfo(client, { arguments: [lpName] })
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Checkout our [tests](./src/tests/move-call.test.ts) for more examples。
|
|
@@ -202,7 +202,6 @@ export declare namespace coin {
|
|
|
202
202
|
}, version?: bigint): Promise<[bigint]>;
|
|
203
203
|
function decimals<T0 = any>(client: AptosClient, request: {
|
|
204
204
|
type_arguments: [string];
|
|
205
|
-
arguments: [];
|
|
206
205
|
}, version?: bigint): Promise<[number]>;
|
|
207
206
|
function isAccountRegistered<T0 = any>(client: AptosClient, request: {
|
|
208
207
|
type_arguments: [string];
|
|
@@ -210,19 +209,15 @@ export declare namespace coin {
|
|
|
210
209
|
}, version?: bigint): Promise<[Boolean]>;
|
|
211
210
|
function isCoinInitialized<T0 = any>(client: AptosClient, request: {
|
|
212
211
|
type_arguments: [string];
|
|
213
|
-
arguments: [];
|
|
214
212
|
}, version?: bigint): Promise<[Boolean]>;
|
|
215
213
|
function name<T0 = any>(client: AptosClient, request: {
|
|
216
214
|
type_arguments: [string];
|
|
217
|
-
arguments: [];
|
|
218
215
|
}, version?: bigint): Promise<[string]>;
|
|
219
216
|
function supply<T0 = any>(client: AptosClient, request: {
|
|
220
217
|
type_arguments: [string];
|
|
221
|
-
arguments: [];
|
|
222
218
|
}, version?: bigint): Promise<[option.Option<bigint>]>;
|
|
223
219
|
function symbol<T0 = any>(client: AptosClient, request: {
|
|
224
220
|
type_arguments: [string];
|
|
225
|
-
arguments: [];
|
|
226
221
|
}, version?: bigint): Promise<[string]>;
|
|
227
222
|
}
|
|
228
223
|
}
|
|
@@ -296,14 +291,8 @@ export declare namespace block {
|
|
|
296
291
|
}
|
|
297
292
|
namespace entry { }
|
|
298
293
|
namespace view {
|
|
299
|
-
function getCurrentBlockHeight(client: AptosClient,
|
|
300
|
-
|
|
301
|
-
arguments: [];
|
|
302
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
303
|
-
function getEpochIntervalSecs(client: AptosClient, request: {
|
|
304
|
-
type_arguments: [];
|
|
305
|
-
arguments: [];
|
|
306
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
294
|
+
function getCurrentBlockHeight(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
295
|
+
function getEpochIntervalSecs(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
307
296
|
}
|
|
308
297
|
}
|
|
309
298
|
export declare namespace debug {
|
|
@@ -629,47 +618,36 @@ export declare namespace stake {
|
|
|
629
618
|
}
|
|
630
619
|
namespace view {
|
|
631
620
|
function getCurrentEpochProposalCounts(client: AptosClient, request: {
|
|
632
|
-
type_arguments: [];
|
|
633
621
|
arguments: [bigint];
|
|
634
622
|
}, version?: bigint): Promise<[bigint, bigint]>;
|
|
635
623
|
function getCurrentEpochVotingPower(client: AptosClient, request: {
|
|
636
|
-
type_arguments: [];
|
|
637
624
|
arguments: [Address];
|
|
638
625
|
}, version?: bigint): Promise<[bigint]>;
|
|
639
626
|
function getDelegatedVoter(client: AptosClient, request: {
|
|
640
|
-
type_arguments: [];
|
|
641
627
|
arguments: [Address];
|
|
642
628
|
}, version?: bigint): Promise<[Address]>;
|
|
643
629
|
function getLockupSecs(client: AptosClient, request: {
|
|
644
|
-
type_arguments: [];
|
|
645
630
|
arguments: [Address];
|
|
646
631
|
}, version?: bigint): Promise<[bigint]>;
|
|
647
632
|
function getOperator(client: AptosClient, request: {
|
|
648
|
-
type_arguments: [];
|
|
649
633
|
arguments: [Address];
|
|
650
634
|
}, version?: bigint): Promise<[Address]>;
|
|
651
635
|
function getRemainingLockupSecs(client: AptosClient, request: {
|
|
652
|
-
type_arguments: [];
|
|
653
636
|
arguments: [Address];
|
|
654
637
|
}, version?: bigint): Promise<[bigint]>;
|
|
655
638
|
function getStake(client: AptosClient, request: {
|
|
656
|
-
type_arguments: [];
|
|
657
639
|
arguments: [Address];
|
|
658
640
|
}, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
|
|
659
641
|
function getValidatorConfig(client: AptosClient, request: {
|
|
660
|
-
type_arguments: [];
|
|
661
642
|
arguments: [Address];
|
|
662
643
|
}, version?: bigint): Promise<[string, string, string]>;
|
|
663
644
|
function getValidatorIndex(client: AptosClient, request: {
|
|
664
|
-
type_arguments: [];
|
|
665
645
|
arguments: [Address];
|
|
666
646
|
}, version?: bigint): Promise<[bigint]>;
|
|
667
647
|
function getValidatorState(client: AptosClient, request: {
|
|
668
|
-
type_arguments: [];
|
|
669
648
|
arguments: [Address];
|
|
670
649
|
}, version?: bigint): Promise<[bigint]>;
|
|
671
650
|
function stakePoolExists(client: AptosClient, request: {
|
|
672
|
-
type_arguments: [];
|
|
673
651
|
arguments: [Address];
|
|
674
652
|
}, version?: bigint): Promise<[Boolean]>;
|
|
675
653
|
}
|
|
@@ -1110,27 +1088,21 @@ export declare namespace account {
|
|
|
1110
1088
|
}
|
|
1111
1089
|
namespace view {
|
|
1112
1090
|
function existsAt(client: AptosClient, request: {
|
|
1113
|
-
type_arguments: [];
|
|
1114
1091
|
arguments: [Address];
|
|
1115
1092
|
}, version?: bigint): Promise<[Boolean]>;
|
|
1116
1093
|
function getAuthenticationKey(client: AptosClient, request: {
|
|
1117
|
-
type_arguments: [];
|
|
1118
1094
|
arguments: [Address];
|
|
1119
1095
|
}, version?: bigint): Promise<[string]>;
|
|
1120
1096
|
function getGuidNextCreationNum(client: AptosClient, request: {
|
|
1121
|
-
type_arguments: [];
|
|
1122
1097
|
arguments: [Address];
|
|
1123
1098
|
}, version?: bigint): Promise<[bigint]>;
|
|
1124
1099
|
function getSequenceNumber(client: AptosClient, request: {
|
|
1125
|
-
type_arguments: [];
|
|
1126
1100
|
arguments: [Address];
|
|
1127
1101
|
}, version?: bigint): Promise<[bigint]>;
|
|
1128
1102
|
function getSignerCapabilityOfferFor(client: AptosClient, request: {
|
|
1129
|
-
type_arguments: [];
|
|
1130
1103
|
arguments: [Address];
|
|
1131
1104
|
}, version?: bigint): Promise<[Address]>;
|
|
1132
1105
|
function isSignerCapabilityOffered(client: AptosClient, request: {
|
|
1133
|
-
type_arguments: [];
|
|
1134
1106
|
arguments: [Address];
|
|
1135
1107
|
}, version?: bigint): Promise<[Boolean]>;
|
|
1136
1108
|
}
|
|
@@ -1514,59 +1486,45 @@ export declare namespace vesting {
|
|
|
1514
1486
|
}
|
|
1515
1487
|
namespace view {
|
|
1516
1488
|
function accumulatedRewards(client: AptosClient, request: {
|
|
1517
|
-
type_arguments: [];
|
|
1518
1489
|
arguments: [Address, Address];
|
|
1519
1490
|
}, version?: bigint): Promise<[bigint]>;
|
|
1520
1491
|
function beneficiary(client: AptosClient, request: {
|
|
1521
|
-
type_arguments: [];
|
|
1522
1492
|
arguments: [Address, Address];
|
|
1523
1493
|
}, version?: bigint): Promise<[Address]>;
|
|
1524
1494
|
function operator(client: AptosClient, request: {
|
|
1525
|
-
type_arguments: [];
|
|
1526
1495
|
arguments: [Address];
|
|
1527
1496
|
}, version?: bigint): Promise<[Address]>;
|
|
1528
1497
|
function operatorCommissionPercentage(client: AptosClient, request: {
|
|
1529
|
-
type_arguments: [];
|
|
1530
1498
|
arguments: [Address];
|
|
1531
1499
|
}, version?: bigint): Promise<[bigint]>;
|
|
1532
1500
|
function periodDurationSecs(client: AptosClient, request: {
|
|
1533
|
-
type_arguments: [];
|
|
1534
1501
|
arguments: [Address];
|
|
1535
1502
|
}, version?: bigint): Promise<[bigint]>;
|
|
1536
1503
|
function remainingGrant(client: AptosClient, request: {
|
|
1537
|
-
type_arguments: [];
|
|
1538
1504
|
arguments: [Address];
|
|
1539
1505
|
}, version?: bigint): Promise<[bigint]>;
|
|
1540
1506
|
function shareholder(client: AptosClient, request: {
|
|
1541
|
-
type_arguments: [];
|
|
1542
1507
|
arguments: [Address, Address];
|
|
1543
1508
|
}, version?: bigint): Promise<[Address]>;
|
|
1544
1509
|
function shareholders(client: AptosClient, request: {
|
|
1545
|
-
type_arguments: [];
|
|
1546
1510
|
arguments: [Address];
|
|
1547
1511
|
}, version?: bigint): Promise<[Address[]]>;
|
|
1548
1512
|
function stakePoolAddress(client: AptosClient, request: {
|
|
1549
|
-
type_arguments: [];
|
|
1550
1513
|
arguments: [Address];
|
|
1551
1514
|
}, version?: bigint): Promise<[Address]>;
|
|
1552
1515
|
function totalAccumulatedRewards(client: AptosClient, request: {
|
|
1553
|
-
type_arguments: [];
|
|
1554
1516
|
arguments: [Address];
|
|
1555
1517
|
}, version?: bigint): Promise<[bigint]>;
|
|
1556
1518
|
function vestingContracts(client: AptosClient, request: {
|
|
1557
|
-
type_arguments: [];
|
|
1558
1519
|
arguments: [Address];
|
|
1559
1520
|
}, version?: bigint): Promise<[Address[]]>;
|
|
1560
1521
|
function vestingSchedule(client: AptosClient, request: {
|
|
1561
|
-
type_arguments: [];
|
|
1562
1522
|
arguments: [Address];
|
|
1563
1523
|
}, version?: bigint): Promise<[vesting.VestingSchedule]>;
|
|
1564
1524
|
function vestingStartSecs(client: AptosClient, request: {
|
|
1565
|
-
type_arguments: [];
|
|
1566
1525
|
arguments: [Address];
|
|
1567
1526
|
}, version?: bigint): Promise<[bigint]>;
|
|
1568
1527
|
function voter(client: AptosClient, request: {
|
|
1569
|
-
type_arguments: [];
|
|
1570
1528
|
arguments: [Address];
|
|
1571
1529
|
}, version?: bigint): Promise<[Address]>;
|
|
1572
1530
|
}
|
|
@@ -1627,10 +1585,7 @@ export declare namespace chain_id {
|
|
|
1627
1585
|
}
|
|
1628
1586
|
namespace entry { }
|
|
1629
1587
|
namespace view {
|
|
1630
|
-
function get(client: AptosClient,
|
|
1631
|
-
type_arguments: [];
|
|
1632
|
-
arguments: [];
|
|
1633
|
-
}, version?: bigint): Promise<[number]>;
|
|
1588
|
+
function get(client: AptosClient, version?: bigint): Promise<[number]>;
|
|
1634
1589
|
}
|
|
1635
1590
|
}
|
|
1636
1591
|
export declare namespace features {
|
|
@@ -1692,14 +1647,8 @@ export declare namespace timestamp {
|
|
|
1692
1647
|
}
|
|
1693
1648
|
namespace entry { }
|
|
1694
1649
|
namespace view {
|
|
1695
|
-
function nowMicroseconds(client: AptosClient,
|
|
1696
|
-
|
|
1697
|
-
arguments: [];
|
|
1698
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
1699
|
-
function nowSeconds(client: AptosClient, request: {
|
|
1700
|
-
type_arguments: [];
|
|
1701
|
-
arguments: [];
|
|
1702
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
1650
|
+
function nowMicroseconds(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
1651
|
+
function nowSeconds(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
1703
1652
|
}
|
|
1704
1653
|
}
|
|
1705
1654
|
export declare namespace type_info {
|
|
@@ -1954,14 +1903,8 @@ export declare namespace chain_status {
|
|
|
1954
1903
|
}
|
|
1955
1904
|
namespace entry { }
|
|
1956
1905
|
namespace view {
|
|
1957
|
-
function isGenesis(client: AptosClient,
|
|
1958
|
-
|
|
1959
|
-
arguments: [];
|
|
1960
|
-
}, version?: bigint): Promise<[Boolean]>;
|
|
1961
|
-
function isOperating(client: AptosClient, request: {
|
|
1962
|
-
type_arguments: [];
|
|
1963
|
-
arguments: [];
|
|
1964
|
-
}, version?: bigint): Promise<[Boolean]>;
|
|
1906
|
+
function isGenesis(client: AptosClient, version?: bigint): Promise<[Boolean]>;
|
|
1907
|
+
function isOperating(client: AptosClient, version?: bigint): Promise<[Boolean]>;
|
|
1965
1908
|
}
|
|
1966
1909
|
}
|
|
1967
1910
|
export declare namespace copyable_any {
|
|
@@ -2151,7 +2094,6 @@ export declare namespace aptos_account {
|
|
|
2151
2094
|
}
|
|
2152
2095
|
namespace view {
|
|
2153
2096
|
function canReceiveDirectCoinTransfers(client: AptosClient, request: {
|
|
2154
|
-
type_arguments: [];
|
|
2155
2097
|
arguments: [Address];
|
|
2156
2098
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2157
2099
|
}
|
|
@@ -2410,7 +2352,6 @@ export declare namespace fungible_asset {
|
|
|
2410
2352
|
arguments: [object_.Object<T0>];
|
|
2411
2353
|
}, version?: bigint): Promise<[string]>;
|
|
2412
2354
|
function storeExists(client: AptosClient, request: {
|
|
2413
|
-
type_arguments: [];
|
|
2414
2355
|
arguments: [Address];
|
|
2415
2356
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2416
2357
|
function storeMetadata<T0 = any>(client: AptosClient, request: {
|
|
@@ -2591,47 +2532,36 @@ export declare namespace delegation_pool {
|
|
|
2591
2532
|
}
|
|
2592
2533
|
namespace view {
|
|
2593
2534
|
function canWithdrawPendingInactive(client: AptosClient, request: {
|
|
2594
|
-
type_arguments: [];
|
|
2595
2535
|
arguments: [Address];
|
|
2596
2536
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2597
2537
|
function delegationPoolExists(client: AptosClient, request: {
|
|
2598
|
-
type_arguments: [];
|
|
2599
2538
|
arguments: [Address];
|
|
2600
2539
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2601
2540
|
function getAddStakeFee(client: AptosClient, request: {
|
|
2602
|
-
type_arguments: [];
|
|
2603
2541
|
arguments: [Address, bigint];
|
|
2604
2542
|
}, version?: bigint): Promise<[bigint]>;
|
|
2605
2543
|
function getDelegationPoolStake(client: AptosClient, request: {
|
|
2606
|
-
type_arguments: [];
|
|
2607
2544
|
arguments: [Address];
|
|
2608
2545
|
}, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
|
|
2609
2546
|
function getOwnedPoolAddress(client: AptosClient, request: {
|
|
2610
|
-
type_arguments: [];
|
|
2611
2547
|
arguments: [Address];
|
|
2612
2548
|
}, version?: bigint): Promise<[Address]>;
|
|
2613
2549
|
function getPendingWithdrawal(client: AptosClient, request: {
|
|
2614
|
-
type_arguments: [];
|
|
2615
2550
|
arguments: [Address, Address];
|
|
2616
2551
|
}, version?: bigint): Promise<[Boolean, bigint]>;
|
|
2617
2552
|
function getStake(client: AptosClient, request: {
|
|
2618
|
-
type_arguments: [];
|
|
2619
2553
|
arguments: [Address, Address];
|
|
2620
2554
|
}, version?: bigint): Promise<[bigint, bigint, bigint]>;
|
|
2621
2555
|
function observedLockupCycle(client: AptosClient, request: {
|
|
2622
|
-
type_arguments: [];
|
|
2623
2556
|
arguments: [Address];
|
|
2624
2557
|
}, version?: bigint): Promise<[bigint]>;
|
|
2625
2558
|
function operatorCommissionPercentage(client: AptosClient, request: {
|
|
2626
|
-
type_arguments: [];
|
|
2627
2559
|
arguments: [Address];
|
|
2628
2560
|
}, version?: bigint): Promise<[bigint]>;
|
|
2629
2561
|
function ownerCapExists(client: AptosClient, request: {
|
|
2630
|
-
type_arguments: [];
|
|
2631
2562
|
arguments: [Address];
|
|
2632
2563
|
}, version?: bigint): Promise<[Boolean]>;
|
|
2633
2564
|
function shareholdersCountActivePool(client: AptosClient, request: {
|
|
2634
|
-
type_arguments: [];
|
|
2635
2565
|
arguments: [Address];
|
|
2636
2566
|
}, version?: bigint): Promise<[bigint]>;
|
|
2637
2567
|
}
|
|
@@ -2797,18 +2727,9 @@ export declare namespace aptos_governance {
|
|
|
2797
2727
|
}, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
|
|
2798
2728
|
}
|
|
2799
2729
|
namespace view {
|
|
2800
|
-
function getMinVotingThreshold(client: AptosClient,
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
2804
|
-
function getRequiredProposerStake(client: AptosClient, request: {
|
|
2805
|
-
type_arguments: [];
|
|
2806
|
-
arguments: [];
|
|
2807
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
2808
|
-
function getVotingDurationSecs(client: AptosClient, request: {
|
|
2809
|
-
type_arguments: [];
|
|
2810
|
-
arguments: [];
|
|
2811
|
-
}, version?: bigint): Promise<[bigint]>;
|
|
2730
|
+
function getMinVotingThreshold(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
2731
|
+
function getRequiredProposerStake(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
2732
|
+
function getVotingDurationSecs(client: AptosClient, version?: bigint): Promise<[bigint]>;
|
|
2812
2733
|
}
|
|
2813
2734
|
}
|
|
2814
2735
|
export declare namespace bls12381_algebra {
|
|
@@ -3183,51 +3104,39 @@ export declare namespace multisig_account {
|
|
|
3183
3104
|
}
|
|
3184
3105
|
namespace view {
|
|
3185
3106
|
function canBeExecuted(client: AptosClient, request: {
|
|
3186
|
-
type_arguments: [];
|
|
3187
3107
|
arguments: [Address, bigint];
|
|
3188
3108
|
}, version?: bigint): Promise<[Boolean]>;
|
|
3189
3109
|
function canBeRejected(client: AptosClient, request: {
|
|
3190
|
-
type_arguments: [];
|
|
3191
3110
|
arguments: [Address, bigint];
|
|
3192
3111
|
}, version?: bigint): Promise<[Boolean]>;
|
|
3193
3112
|
function getNextMultisigAccountAddress(client: AptosClient, request: {
|
|
3194
|
-
type_arguments: [];
|
|
3195
3113
|
arguments: [Address];
|
|
3196
3114
|
}, version?: bigint): Promise<[Address]>;
|
|
3197
3115
|
function getNextTransactionPayload(client: AptosClient, request: {
|
|
3198
|
-
type_arguments: [];
|
|
3199
3116
|
arguments: [Address, string];
|
|
3200
3117
|
}, version?: bigint): Promise<[string]>;
|
|
3201
3118
|
function getPendingTransactions(client: AptosClient, request: {
|
|
3202
|
-
type_arguments: [];
|
|
3203
3119
|
arguments: [Address];
|
|
3204
3120
|
}, version?: bigint): Promise<[multisig_account.MultisigTransaction[]]>;
|
|
3205
3121
|
function getTransaction(client: AptosClient, request: {
|
|
3206
|
-
type_arguments: [];
|
|
3207
3122
|
arguments: [Address, bigint];
|
|
3208
3123
|
}, version?: bigint): Promise<[multisig_account.MultisigTransaction]>;
|
|
3209
3124
|
function lastResolvedSequenceNumber(client: AptosClient, request: {
|
|
3210
|
-
type_arguments: [];
|
|
3211
3125
|
arguments: [Address];
|
|
3212
3126
|
}, version?: bigint): Promise<[bigint]>;
|
|
3213
3127
|
function metadata(client: AptosClient, request: {
|
|
3214
|
-
type_arguments: [];
|
|
3215
3128
|
arguments: [Address];
|
|
3216
3129
|
}, version?: bigint): Promise<[simple_map.SimpleMap<string, string>]>;
|
|
3217
3130
|
function nextSequenceNumber(client: AptosClient, request: {
|
|
3218
|
-
type_arguments: [];
|
|
3219
3131
|
arguments: [Address];
|
|
3220
3132
|
}, version?: bigint): Promise<[bigint]>;
|
|
3221
3133
|
function numSignaturesRequired(client: AptosClient, request: {
|
|
3222
|
-
type_arguments: [];
|
|
3223
3134
|
arguments: [Address];
|
|
3224
3135
|
}, version?: bigint): Promise<[bigint]>;
|
|
3225
3136
|
function owners(client: AptosClient, request: {
|
|
3226
|
-
type_arguments: [];
|
|
3227
3137
|
arguments: [Address];
|
|
3228
3138
|
}, version?: bigint): Promise<[Address[]]>;
|
|
3229
3139
|
function vote(client: AptosClient, request: {
|
|
3230
|
-
type_arguments: [];
|
|
3231
3140
|
arguments: [Address, bigint, Address];
|
|
3232
3141
|
}, version?: bigint): Promise<[Boolean, Boolean]>;
|
|
3233
3142
|
}
|
|
@@ -3497,27 +3406,21 @@ export declare namespace staking_contract {
|
|
|
3497
3406
|
}
|
|
3498
3407
|
namespace view {
|
|
3499
3408
|
function commissionPercentage(client: AptosClient, request: {
|
|
3500
|
-
type_arguments: [];
|
|
3501
3409
|
arguments: [Address, Address];
|
|
3502
3410
|
}, version?: bigint): Promise<[bigint]>;
|
|
3503
3411
|
function lastRecordedPrincipal(client: AptosClient, request: {
|
|
3504
|
-
type_arguments: [];
|
|
3505
3412
|
arguments: [Address, Address];
|
|
3506
3413
|
}, version?: bigint): Promise<[bigint]>;
|
|
3507
3414
|
function pendingDistributionCounts(client: AptosClient, request: {
|
|
3508
|
-
type_arguments: [];
|
|
3509
3415
|
arguments: [Address, Address];
|
|
3510
3416
|
}, version?: bigint): Promise<[bigint]>;
|
|
3511
3417
|
function stakePoolAddress(client: AptosClient, request: {
|
|
3512
|
-
type_arguments: [];
|
|
3513
3418
|
arguments: [Address, Address];
|
|
3514
3419
|
}, version?: bigint): Promise<[Address]>;
|
|
3515
3420
|
function stakingContractAmounts(client: AptosClient, request: {
|
|
3516
|
-
type_arguments: [];
|
|
3517
3421
|
arguments: [Address, Address];
|
|
3518
3422
|
}, version?: bigint): Promise<[bigint, bigint, bigint]>;
|
|
3519
3423
|
function stakingContractExists(client: AptosClient, request: {
|
|
3520
|
-
type_arguments: [];
|
|
3521
3424
|
arguments: [Address, Address];
|
|
3522
3425
|
}, version?: bigint): Promise<[Boolean]>;
|
|
3523
3426
|
}
|