@typemove/aptos 1.0.0-rc.13 → 1.0.0-rc.15

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.
@@ -1,6 +1,7 @@
1
1
  import { TypeDescriptor } from "@typemove/move";
2
2
  import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
3
3
  import { Address } from "@typemove/aptos";
4
+ import { AptosClient } from "aptos";
4
5
  export declare namespace acl {
5
6
  interface ACL {
6
7
  list: Address[];
@@ -9,6 +10,7 @@ export declare namespace acl {
9
10
  const TYPE_QNAME = "0x1::acl::ACL";
10
11
  function type(): TypeDescriptor<ACL>;
11
12
  }
13
+ namespace view { }
12
14
  }
13
15
  export declare namespace any_ {
14
16
  interface Any {
@@ -19,8 +21,11 @@ export declare namespace any_ {
19
21
  const TYPE_QNAME = "0x1::any::Any";
20
22
  function type(): TypeDescriptor<Any>;
21
23
  }
24
+ namespace view { }
25
+ }
26
+ export declare namespace bcs {
27
+ namespace view { }
22
28
  }
23
- export declare namespace bcs { }
24
29
  export declare namespace code {
25
30
  interface AllowedDep {
26
31
  account: Address;
@@ -76,6 +81,7 @@ export declare namespace code {
76
81
  const TYPE_QNAME = "0x1::code::UpgradePolicy";
77
82
  function type(): TypeDescriptor<UpgradePolicy>;
78
83
  }
84
+ namespace view { }
79
85
  }
80
86
  export declare namespace coin {
81
87
  interface AggregatableCoin<T0> {
@@ -162,6 +168,36 @@ export declare namespace coin {
162
168
  data_decoded: WithdrawEvent;
163
169
  type_arguments: [];
164
170
  }
171
+ namespace view {
172
+ function balance<T0 = any>(client: AptosClient, request: {
173
+ type_arguments: [string];
174
+ arguments: [Address];
175
+ }, version?: bigint): Promise<[bigint]>;
176
+ function decimals<T0 = any>(client: AptosClient, request: {
177
+ type_arguments: [string];
178
+ arguments: [];
179
+ }, version?: bigint): Promise<[number]>;
180
+ function isAccountRegistered<T0 = any>(client: AptosClient, request: {
181
+ type_arguments: [string];
182
+ arguments: [Address];
183
+ }, version?: bigint): Promise<[Boolean]>;
184
+ function isCoinInitialized<T0 = any>(client: AptosClient, request: {
185
+ type_arguments: [string];
186
+ arguments: [];
187
+ }, version?: bigint): Promise<[Boolean]>;
188
+ function name<T0 = any>(client: AptosClient, request: {
189
+ type_arguments: [string];
190
+ arguments: [];
191
+ }, version?: bigint): Promise<[string]>;
192
+ function supply<T0 = any>(client: AptosClient, request: {
193
+ type_arguments: [string];
194
+ arguments: [];
195
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
196
+ function symbol<T0 = any>(client: AptosClient, request: {
197
+ type_arguments: [string];
198
+ arguments: [];
199
+ }, version?: bigint): Promise<[string]>;
200
+ }
165
201
  }
166
202
  export declare namespace guid {
167
203
  interface GUID {
@@ -179,9 +215,14 @@ export declare namespace guid {
179
215
  const TYPE_QNAME = "0x1::guid::ID";
180
216
  function type(): TypeDescriptor<ID>;
181
217
  }
218
+ namespace view { }
219
+ }
220
+ export declare namespace hash {
221
+ namespace view { }
222
+ }
223
+ export declare namespace util {
224
+ namespace view { }
182
225
  }
183
- export declare namespace hash { }
184
- export declare namespace util { }
185
226
  export declare namespace block {
186
227
  interface BlockResource {
187
228
  height: bigint;
@@ -223,9 +264,23 @@ export declare namespace block {
223
264
  data_decoded: UpdateEpochIntervalEvent;
224
265
  type_arguments: [];
225
266
  }
267
+ namespace view {
268
+ function getCurrentBlockHeight(client: AptosClient, request: {
269
+ type_arguments: [];
270
+ arguments: [];
271
+ }, version?: bigint): Promise<[bigint]>;
272
+ function getEpochIntervalSecs(client: AptosClient, request: {
273
+ type_arguments: [];
274
+ arguments: [];
275
+ }, version?: bigint): Promise<[bigint]>;
276
+ }
277
+ }
278
+ export declare namespace debug {
279
+ namespace view { }
280
+ }
281
+ export declare namespace error {
282
+ namespace view { }
226
283
  }
227
- export declare namespace debug { }
228
- export declare namespace error { }
229
284
  export declare namespace event {
230
285
  interface EventHandle<T0> {
231
286
  counter: bigint;
@@ -235,6 +290,7 @@ export declare namespace event {
235
290
  const TYPE_QNAME = "0x1::event::EventHandle";
236
291
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<EventHandle<T0>>;
237
292
  }
293
+ namespace view { }
238
294
  }
239
295
  export declare namespace stake {
240
296
  interface AddStakeEvent {
@@ -483,6 +539,52 @@ export declare namespace stake {
483
539
  data_decoded: WithdrawStakeEvent;
484
540
  type_arguments: [];
485
541
  }
542
+ namespace view {
543
+ function getCurrentEpochProposalCounts(client: AptosClient, request: {
544
+ type_arguments: [];
545
+ arguments: [bigint];
546
+ }, version?: bigint): Promise<[bigint, bigint]>;
547
+ function getCurrentEpochVotingPower(client: AptosClient, request: {
548
+ type_arguments: [];
549
+ arguments: [Address];
550
+ }, version?: bigint): Promise<[bigint]>;
551
+ function getDelegatedVoter(client: AptosClient, request: {
552
+ type_arguments: [];
553
+ arguments: [Address];
554
+ }, version?: bigint): Promise<[Address]>;
555
+ function getLockupSecs(client: AptosClient, request: {
556
+ type_arguments: [];
557
+ arguments: [Address];
558
+ }, version?: bigint): Promise<[bigint]>;
559
+ function getOperator(client: AptosClient, request: {
560
+ type_arguments: [];
561
+ arguments: [Address];
562
+ }, version?: bigint): Promise<[Address]>;
563
+ function getRemainingLockupSecs(client: AptosClient, request: {
564
+ type_arguments: [];
565
+ arguments: [Address];
566
+ }, version?: bigint): Promise<[bigint]>;
567
+ function getStake(client: AptosClient, request: {
568
+ type_arguments: [];
569
+ arguments: [Address];
570
+ }, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
571
+ function getValidatorConfig(client: AptosClient, request: {
572
+ type_arguments: [];
573
+ arguments: [Address];
574
+ }, version?: bigint): Promise<[string, string, string]>;
575
+ function getValidatorIndex(client: AptosClient, request: {
576
+ type_arguments: [];
577
+ arguments: [Address];
578
+ }, version?: bigint): Promise<[bigint]>;
579
+ function getValidatorState(client: AptosClient, request: {
580
+ type_arguments: [];
581
+ arguments: [Address];
582
+ }, version?: bigint): Promise<[bigint]>;
583
+ function stakePoolExists(client: AptosClient, request: {
584
+ type_arguments: [];
585
+ arguments: [Address];
586
+ }, version?: bigint): Promise<[Boolean]>;
587
+ }
486
588
  }
487
589
  export declare namespace table {
488
590
  interface Box<T0> {
@@ -499,8 +601,11 @@ export declare namespace table {
499
601
  const TYPE_QNAME = "0x1::table::Table";
500
602
  function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Table<T0, T1>>;
501
603
  }
604
+ namespace view { }
605
+ }
606
+ export declare namespace math64 {
607
+ namespace view { }
502
608
  }
503
- export declare namespace math64 { }
504
609
  export declare namespace object_ {
505
610
  interface ConstructorRef {
506
611
  self: Address;
@@ -517,6 +622,13 @@ export declare namespace object_ {
517
622
  const TYPE_QNAME = "0x1::object::DeleteRef";
518
623
  function type(): TypeDescriptor<DeleteRef>;
519
624
  }
625
+ interface DeriveRef {
626
+ self: Address;
627
+ }
628
+ namespace DeriveRef {
629
+ const TYPE_QNAME = "0x1::object::DeriveRef";
630
+ function type(): TypeDescriptor<DeriveRef>;
631
+ }
520
632
  interface ExtendRef {
521
633
  self: Address;
522
634
  }
@@ -576,6 +688,7 @@ export declare namespace object_ {
576
688
  const TYPE_QNAME = "0x1::object::TransferRef";
577
689
  function type(): TypeDescriptor<TransferRef>;
578
690
  }
691
+ namespace view { }
579
692
  }
580
693
  export declare namespace option {
581
694
  interface Option<T0> {
@@ -585,8 +698,11 @@ export declare namespace option {
585
698
  const TYPE_QNAME = "0x1::option::Option";
586
699
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Option<T0>>;
587
700
  }
701
+ namespace view { }
702
+ }
703
+ export declare namespace signer {
704
+ namespace view { }
588
705
  }
589
- export declare namespace signer { }
590
706
  export declare namespace string_ {
591
707
  interface String {
592
708
  bytes: string;
@@ -595,8 +711,11 @@ export declare namespace string_ {
595
711
  const TYPE_QNAME = "0x1::string::String";
596
712
  function type(): TypeDescriptor<String>;
597
713
  }
714
+ namespace view { }
715
+ }
716
+ export declare namespace vector {
717
+ namespace view { }
598
718
  }
599
- export declare namespace vector { }
600
719
  export declare namespace voting {
601
720
  interface CreateProposalEvent {
602
721
  proposal_id: bigint;
@@ -689,6 +808,52 @@ export declare namespace voting {
689
808
  const TYPE_QNAME = "0x1::voting::VotingForum";
690
809
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<VotingForum<T0>>;
691
810
  }
811
+ namespace view {
812
+ function getEarlyResolutionVoteThreshold<T0 = any>(client: AptosClient, request: {
813
+ type_arguments: [string];
814
+ arguments: [Address, bigint];
815
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
816
+ function getExecutionHash<T0 = any>(client: AptosClient, request: {
817
+ type_arguments: [string];
818
+ arguments: [Address, bigint];
819
+ }, version?: bigint): Promise<[string]>;
820
+ function getMinVoteThreshold<T0 = any>(client: AptosClient, request: {
821
+ type_arguments: [string];
822
+ arguments: [Address, bigint];
823
+ }, version?: bigint): Promise<[bigint]>;
824
+ function getProposalCreationSecs<T0 = any>(client: AptosClient, request: {
825
+ type_arguments: [string];
826
+ arguments: [Address, bigint];
827
+ }, version?: bigint): Promise<[bigint]>;
828
+ function getProposalExpirationSecs<T0 = any>(client: AptosClient, request: {
829
+ type_arguments: [string];
830
+ arguments: [Address, bigint];
831
+ }, version?: bigint): Promise<[bigint]>;
832
+ function getProposalState<T0 = any>(client: AptosClient, request: {
833
+ type_arguments: [string];
834
+ arguments: [Address, bigint];
835
+ }, version?: bigint): Promise<[bigint]>;
836
+ function getVotes<T0 = any>(client: AptosClient, request: {
837
+ type_arguments: [string];
838
+ arguments: [Address, bigint];
839
+ }, version?: bigint): Promise<[bigint, bigint]>;
840
+ function isMultiStepProposalInExecution<T0 = any>(client: AptosClient, request: {
841
+ type_arguments: [string];
842
+ arguments: [Address, bigint];
843
+ }, version?: bigint): Promise<[Boolean]>;
844
+ function isResolved<T0 = any>(client: AptosClient, request: {
845
+ type_arguments: [string];
846
+ arguments: [Address, bigint];
847
+ }, version?: bigint): Promise<[Boolean]>;
848
+ function isVotingClosed<T0 = any>(client: AptosClient, request: {
849
+ type_arguments: [string];
850
+ arguments: [Address, bigint];
851
+ }, version?: bigint): Promise<[Boolean]>;
852
+ function nextProposalId<T0 = any>(client: AptosClient, request: {
853
+ type_arguments: [string];
854
+ arguments: [Address];
855
+ }, version?: bigint): Promise<[bigint]>;
856
+ }
692
857
  }
693
858
  export declare namespace account {
694
859
  interface Account {
@@ -800,6 +965,32 @@ export declare namespace account {
800
965
  const TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallengeV2";
801
966
  function type(): TypeDescriptor<SignerCapabilityOfferProofChallengeV2>;
802
967
  }
968
+ namespace view {
969
+ function existsAt(client: AptosClient, request: {
970
+ type_arguments: [];
971
+ arguments: [Address];
972
+ }, version?: bigint): Promise<[Boolean]>;
973
+ function getAuthenticationKey(client: AptosClient, request: {
974
+ type_arguments: [];
975
+ arguments: [Address];
976
+ }, version?: bigint): Promise<[string]>;
977
+ function getGuidNextCreationNum(client: AptosClient, request: {
978
+ type_arguments: [];
979
+ arguments: [Address];
980
+ }, version?: bigint): Promise<[bigint]>;
981
+ function getSequenceNumber(client: AptosClient, request: {
982
+ type_arguments: [];
983
+ arguments: [Address];
984
+ }, version?: bigint): Promise<[bigint]>;
985
+ function getSignerCapabilityOfferFor(client: AptosClient, request: {
986
+ type_arguments: [];
987
+ arguments: [Address];
988
+ }, version?: bigint): Promise<[Address]>;
989
+ function isSignerCapabilityOffered(client: AptosClient, request: {
990
+ type_arguments: [];
991
+ arguments: [Address];
992
+ }, version?: bigint): Promise<[Boolean]>;
993
+ }
803
994
  }
804
995
  export declare namespace ed25519 {
805
996
  interface Signature {
@@ -831,6 +1022,7 @@ export declare namespace ed25519 {
831
1022
  const TYPE_QNAME = "0x1::ed25519::ValidatedPublicKey";
832
1023
  function type(): TypeDescriptor<ValidatedPublicKey>;
833
1024
  }
1025
+ namespace view { }
834
1026
  }
835
1027
  export declare namespace genesis {
836
1028
  interface AccountMap {
@@ -875,8 +1067,11 @@ export declare namespace genesis {
875
1067
  const TYPE_QNAME = "0x1::genesis::ValidatorConfigurationWithCommission";
876
1068
  function type(): TypeDescriptor<ValidatorConfigurationWithCommission>;
877
1069
  }
1070
+ namespace view { }
1071
+ }
1072
+ export declare namespace math128 {
1073
+ namespace view { }
878
1074
  }
879
- export declare namespace math128 { }
880
1075
  export declare namespace version {
881
1076
  interface SetVersionCapability {
882
1077
  dummy_field: Boolean;
@@ -892,6 +1087,7 @@ export declare namespace version {
892
1087
  const TYPE_QNAME = "0x1::version::Version";
893
1088
  function type(): TypeDescriptor<Version>;
894
1089
  }
1090
+ namespace view { }
895
1091
  }
896
1092
  export declare namespace vesting {
897
1093
  interface AdminStore {
@@ -1098,6 +1294,64 @@ export declare namespace vesting {
1098
1294
  const TYPE_QNAME = "0x1::vesting::VestingSchedule";
1099
1295
  function type(): TypeDescriptor<VestingSchedule>;
1100
1296
  }
1297
+ namespace view {
1298
+ function accumulatedRewards(client: AptosClient, request: {
1299
+ type_arguments: [];
1300
+ arguments: [Address, Address];
1301
+ }, version?: bigint): Promise<[bigint]>;
1302
+ function beneficiary(client: AptosClient, request: {
1303
+ type_arguments: [];
1304
+ arguments: [Address, Address];
1305
+ }, version?: bigint): Promise<[Address]>;
1306
+ function operator(client: AptosClient, request: {
1307
+ type_arguments: [];
1308
+ arguments: [Address];
1309
+ }, version?: bigint): Promise<[Address]>;
1310
+ function operatorCommissionPercentage(client: AptosClient, request: {
1311
+ type_arguments: [];
1312
+ arguments: [Address];
1313
+ }, version?: bigint): Promise<[bigint]>;
1314
+ function periodDurationSecs(client: AptosClient, request: {
1315
+ type_arguments: [];
1316
+ arguments: [Address];
1317
+ }, version?: bigint): Promise<[bigint]>;
1318
+ function remainingGrant(client: AptosClient, request: {
1319
+ type_arguments: [];
1320
+ arguments: [Address];
1321
+ }, version?: bigint): Promise<[bigint]>;
1322
+ function shareholder(client: AptosClient, request: {
1323
+ type_arguments: [];
1324
+ arguments: [Address, Address];
1325
+ }, version?: bigint): Promise<[Address]>;
1326
+ function shareholders(client: AptosClient, request: {
1327
+ type_arguments: [];
1328
+ arguments: [Address];
1329
+ }, version?: bigint): Promise<[Address[]]>;
1330
+ function stakePoolAddress(client: AptosClient, request: {
1331
+ type_arguments: [];
1332
+ arguments: [Address];
1333
+ }, version?: bigint): Promise<[Address]>;
1334
+ function totalAccumulatedRewards(client: AptosClient, request: {
1335
+ type_arguments: [];
1336
+ arguments: [Address];
1337
+ }, version?: bigint): Promise<[bigint]>;
1338
+ function vestingContracts(client: AptosClient, request: {
1339
+ type_arguments: [];
1340
+ arguments: [Address];
1341
+ }, version?: bigint): Promise<[Address[]]>;
1342
+ function vestingSchedule(client: AptosClient, request: {
1343
+ type_arguments: [];
1344
+ arguments: [Address];
1345
+ }, version?: bigint): Promise<[vesting.VestingSchedule]>;
1346
+ function vestingStartSecs(client: AptosClient, request: {
1347
+ type_arguments: [];
1348
+ arguments: [Address];
1349
+ }, version?: bigint): Promise<[bigint]>;
1350
+ function voter(client: AptosClient, request: {
1351
+ type_arguments: [];
1352
+ arguments: [Address];
1353
+ }, version?: bigint): Promise<[Address]>;
1354
+ }
1101
1355
  }
1102
1356
  export declare namespace bls12381 {
1103
1357
  interface AggrOrMultiSignature {
@@ -1142,6 +1396,7 @@ export declare namespace bls12381 {
1142
1396
  const TYPE_QNAME = "0x1::bls12381::Signature";
1143
1397
  function type(): TypeDescriptor<Signature>;
1144
1398
  }
1399
+ namespace view { }
1145
1400
  }
1146
1401
  export declare namespace chain_id {
1147
1402
  interface ChainId {
@@ -1151,6 +1406,12 @@ export declare namespace chain_id {
1151
1406
  const TYPE_QNAME = "0x1::chain_id::ChainId";
1152
1407
  function type(): TypeDescriptor<ChainId>;
1153
1408
  }
1409
+ namespace view {
1410
+ function get(client: AptosClient, request: {
1411
+ type_arguments: [];
1412
+ arguments: [];
1413
+ }, version?: bigint): Promise<[number]>;
1414
+ }
1154
1415
  }
1155
1416
  export declare namespace features {
1156
1417
  interface Features {
@@ -1160,8 +1421,11 @@ export declare namespace features {
1160
1421
  const TYPE_QNAME = "0x1::features::Features";
1161
1422
  function type(): TypeDescriptor<Features>;
1162
1423
  }
1424
+ namespace view { }
1425
+ }
1426
+ export declare namespace from_bcs {
1427
+ namespace view { }
1163
1428
  }
1164
- export declare namespace from_bcs { }
1165
1429
  export declare namespace pool_u64 {
1166
1430
  interface Pool {
1167
1431
  shareholders_limit: bigint;
@@ -1175,6 +1439,7 @@ export declare namespace pool_u64 {
1175
1439
  const TYPE_QNAME = "0x1::pool_u64::Pool";
1176
1440
  function type(): TypeDescriptor<Pool>;
1177
1441
  }
1442
+ namespace view { }
1178
1443
  }
1179
1444
  export declare namespace secp256k1 {
1180
1445
  interface ECDSARawPublicKey {
@@ -1191,6 +1456,7 @@ export declare namespace secp256k1 {
1191
1456
  const TYPE_QNAME = "0x1::secp256k1::ECDSASignature";
1192
1457
  function type(): TypeDescriptor<ECDSASignature>;
1193
1458
  }
1459
+ namespace view { }
1194
1460
  }
1195
1461
  export declare namespace timestamp {
1196
1462
  interface CurrentTimeMicroseconds {
@@ -1200,6 +1466,16 @@ export declare namespace timestamp {
1200
1466
  const TYPE_QNAME = "0x1::timestamp::CurrentTimeMicroseconds";
1201
1467
  function type(): TypeDescriptor<CurrentTimeMicroseconds>;
1202
1468
  }
1469
+ namespace view {
1470
+ function nowMicroseconds(client: AptosClient, request: {
1471
+ type_arguments: [];
1472
+ arguments: [];
1473
+ }, version?: bigint): Promise<[bigint]>;
1474
+ function nowSeconds(client: AptosClient, request: {
1475
+ type_arguments: [];
1476
+ arguments: [];
1477
+ }, version?: bigint): Promise<[bigint]>;
1478
+ }
1203
1479
  }
1204
1480
  export declare namespace type_info {
1205
1481
  interface TypeInfo {
@@ -1211,6 +1487,7 @@ export declare namespace type_info {
1211
1487
  const TYPE_QNAME = "0x1::type_info::TypeInfo";
1212
1488
  function type(): TypeDescriptor<TypeInfo>;
1213
1489
  }
1490
+ namespace view { }
1214
1491
  }
1215
1492
  export declare namespace aggregator {
1216
1493
  interface Aggregator {
@@ -1222,6 +1499,7 @@ export declare namespace aggregator {
1222
1499
  const TYPE_QNAME = "0x1::aggregator::Aggregator";
1223
1500
  function type(): TypeDescriptor<Aggregator>;
1224
1501
  }
1502
+ namespace view { }
1225
1503
  }
1226
1504
  export declare namespace aptos_coin {
1227
1505
  interface AptosCoin {
@@ -1252,8 +1530,11 @@ export declare namespace aptos_coin {
1252
1530
  const TYPE_QNAME = "0x1::aptos_coin::MintCapStore";
1253
1531
  function type(): TypeDescriptor<MintCapStore>;
1254
1532
  }
1533
+ namespace view { }
1534
+ }
1535
+ export declare namespace aptos_hash {
1536
+ namespace view { }
1255
1537
  }
1256
- export declare namespace aptos_hash { }
1257
1538
  export declare namespace big_vector {
1258
1539
  interface BigVector<T0> {
1259
1540
  buckets: table_with_length.TableWithLength<bigint, T0[] | string>;
@@ -1264,6 +1545,7 @@ export declare namespace big_vector {
1264
1545
  const TYPE_QNAME = "0x1::big_vector::BigVector";
1265
1546
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<BigVector<T0>>;
1266
1547
  }
1548
+ namespace view { }
1267
1549
  }
1268
1550
  export declare namespace bit_vector {
1269
1551
  interface BitVector {
@@ -1274,6 +1556,7 @@ export declare namespace bit_vector {
1274
1556
  const TYPE_QNAME = "0x1::bit_vector::BitVector";
1275
1557
  function type(): TypeDescriptor<BitVector>;
1276
1558
  }
1559
+ namespace view { }
1277
1560
  }
1278
1561
  export declare namespace capability {
1279
1562
  interface Cap<T0> {
@@ -1304,6 +1587,7 @@ export declare namespace capability {
1304
1587
  const TYPE_QNAME = "0x1::capability::LinearCap";
1305
1588
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<LinearCap<T0>>;
1306
1589
  }
1590
+ namespace view { }
1307
1591
  }
1308
1592
  export declare namespace comparator {
1309
1593
  interface Result {
@@ -1313,8 +1597,11 @@ export declare namespace comparator {
1313
1597
  const TYPE_QNAME = "0x1::comparator::Result";
1314
1598
  function type(): TypeDescriptor<Result>;
1315
1599
  }
1600
+ namespace view { }
1601
+ }
1602
+ export declare namespace math_fixed {
1603
+ namespace view { }
1316
1604
  }
1317
- export declare namespace math_fixed { }
1318
1605
  export declare namespace simple_map {
1319
1606
  interface Element<T0, T1> {
1320
1607
  key: T0;
@@ -1331,6 +1618,7 @@ export declare namespace simple_map {
1331
1618
  const TYPE_QNAME = "0x1::simple_map::SimpleMap";
1332
1619
  function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<SimpleMap<T0, T1>>;
1333
1620
  }
1621
+ namespace view { }
1334
1622
  }
1335
1623
  export declare namespace smart_table {
1336
1624
  interface Entry<T0, T1> {
@@ -1354,6 +1642,7 @@ export declare namespace smart_table {
1354
1642
  const TYPE_QNAME = "0x1::smart_table::SmartTable";
1355
1643
  function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<SmartTable<T0, T1>>;
1356
1644
  }
1645
+ namespace view { }
1357
1646
  }
1358
1647
  export declare namespace storage_gas {
1359
1648
  interface GasCurve {
@@ -1403,6 +1692,7 @@ export declare namespace storage_gas {
1403
1692
  const TYPE_QNAME = "0x1::storage_gas::UsageGasConfig";
1404
1693
  function type(): TypeDescriptor<UsageGasConfig>;
1405
1694
  }
1695
+ namespace view { }
1406
1696
  }
1407
1697
  export declare namespace chain_status {
1408
1698
  interface GenesisEndMarker {
@@ -1412,6 +1702,16 @@ export declare namespace chain_status {
1412
1702
  const TYPE_QNAME = "0x1::chain_status::GenesisEndMarker";
1413
1703
  function type(): TypeDescriptor<GenesisEndMarker>;
1414
1704
  }
1705
+ namespace view {
1706
+ function isGenesis(client: AptosClient, request: {
1707
+ type_arguments: [];
1708
+ arguments: [];
1709
+ }, version?: bigint): Promise<[Boolean]>;
1710
+ function isOperating(client: AptosClient, request: {
1711
+ type_arguments: [];
1712
+ arguments: [];
1713
+ }, version?: bigint): Promise<[Boolean]>;
1714
+ }
1415
1715
  }
1416
1716
  export declare namespace copyable_any {
1417
1717
  interface Any {
@@ -1422,6 +1722,7 @@ export declare namespace copyable_any {
1422
1722
  const TYPE_QNAME = "0x1::copyable_any::Any";
1423
1723
  function type(): TypeDescriptor<Any>;
1424
1724
  }
1725
+ namespace view { }
1425
1726
  }
1426
1727
  export declare namespace gas_schedule {
1427
1728
  interface GasEntry {
@@ -1447,6 +1748,7 @@ export declare namespace gas_schedule {
1447
1748
  const TYPE_QNAME = "0x1::gas_schedule::GasScheduleV2";
1448
1749
  function type(): TypeDescriptor<GasScheduleV2>;
1449
1750
  }
1751
+ namespace view { }
1450
1752
  }
1451
1753
  export declare namespace managed_coin {
1452
1754
  interface Capabilities<T0> {
@@ -1458,6 +1760,10 @@ export declare namespace managed_coin {
1458
1760
  const TYPE_QNAME = "0x1::managed_coin::Capabilities";
1459
1761
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Capabilities<T0>>;
1460
1762
  }
1763
+ namespace view { }
1764
+ }
1765
+ export declare namespace math_fixed64 {
1766
+ namespace view { }
1461
1767
  }
1462
1768
  export declare namespace ristretto255 {
1463
1769
  interface CompressedRistretto {
@@ -1481,11 +1787,12 @@ export declare namespace ristretto255 {
1481
1787
  const TYPE_QNAME = "0x1::ristretto255::Scalar";
1482
1788
  function type(): TypeDescriptor<Scalar>;
1483
1789
  }
1790
+ namespace view { }
1484
1791
  }
1485
1792
  export declare namespace smart_vector {
1486
1793
  interface SmartVector<T0> {
1487
1794
  inline_vec: T0[] | string;
1488
- big_vec: big_vector.BigVector<T0>[];
1795
+ big_vec: option.Option<big_vector.BigVector<T0>>;
1489
1796
  inline_capacity: option.Option<bigint>;
1490
1797
  bucket_size: option.Option<bigint>;
1491
1798
  }
@@ -1493,6 +1800,33 @@ export declare namespace smart_vector {
1493
1800
  const TYPE_QNAME = "0x1::smart_vector::SmartVector";
1494
1801
  function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SmartVector<T0>>;
1495
1802
  }
1803
+ namespace view { }
1804
+ }
1805
+ export declare namespace string_utils {
1806
+ interface Cons<T0, T1> {
1807
+ car: T0;
1808
+ cdr: T1;
1809
+ }
1810
+ namespace Cons {
1811
+ const TYPE_QNAME = "0x1::string_utils::Cons";
1812
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Cons<T0, T1>>;
1813
+ }
1814
+ interface FakeCons<T0, T1> {
1815
+ car: T0;
1816
+ cdr: T1;
1817
+ }
1818
+ namespace FakeCons {
1819
+ const TYPE_QNAME = "0x1::string_utils::FakeCons";
1820
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<FakeCons<T0, T1>>;
1821
+ }
1822
+ interface NIL {
1823
+ dummy_field: Boolean;
1824
+ }
1825
+ namespace NIL {
1826
+ const TYPE_QNAME = "0x1::string_utils::NIL";
1827
+ function type(): TypeDescriptor<NIL>;
1828
+ }
1829
+ namespace view { }
1496
1830
  }
1497
1831
  export declare namespace aptos_account {
1498
1832
  interface DirectCoinTransferConfigUpdatedEvent {
@@ -1514,8 +1848,16 @@ export declare namespace aptos_account {
1514
1848
  const TYPE_QNAME = "0x1::aptos_account::DirectTransferConfig";
1515
1849
  function type(): TypeDescriptor<DirectTransferConfig>;
1516
1850
  }
1851
+ namespace view {
1852
+ function canReceiveDirectCoinTransfers(client: AptosClient, request: {
1853
+ type_arguments: [];
1854
+ arguments: [Address];
1855
+ }, version?: bigint): Promise<[Boolean]>;
1856
+ }
1857
+ }
1858
+ export declare namespace create_signer {
1859
+ namespace view { }
1517
1860
  }
1518
- export declare namespace create_signer { }
1519
1861
  export declare namespace fixed_point32 {
1520
1862
  interface FixedPoint32 {
1521
1863
  value: bigint;
@@ -1524,6 +1866,17 @@ export declare namespace fixed_point32 {
1524
1866
  const TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
1525
1867
  function type(): TypeDescriptor<FixedPoint32>;
1526
1868
  }
1869
+ namespace view { }
1870
+ }
1871
+ export declare namespace fixed_point64 {
1872
+ interface FixedPoint64 {
1873
+ value: bigint;
1874
+ }
1875
+ namespace FixedPoint64 {
1876
+ const TYPE_QNAME = "0x1::fixed_point64::FixedPoint64";
1877
+ function type(): TypeDescriptor<FixedPoint64>;
1878
+ }
1879
+ namespace view { }
1527
1880
  }
1528
1881
  export declare namespace multi_ed25519 {
1529
1882
  interface Signature {
@@ -1547,8 +1900,11 @@ export declare namespace multi_ed25519 {
1547
1900
  const TYPE_QNAME = "0x1::multi_ed25519::ValidatedPublicKey";
1548
1901
  function type(): TypeDescriptor<ValidatedPublicKey>;
1549
1902
  }
1903
+ namespace view { }
1904
+ }
1905
+ export declare namespace staking_proxy {
1906
+ namespace view { }
1550
1907
  }
1551
- export declare namespace staking_proxy { }
1552
1908
  export declare namespace state_storage {
1553
1909
  interface GasParameter {
1554
1910
  usage: state_storage.Usage;
@@ -1573,6 +1929,156 @@ export declare namespace state_storage {
1573
1929
  const TYPE_QNAME = "0x1::state_storage::Usage";
1574
1930
  function type(): TypeDescriptor<Usage>;
1575
1931
  }
1932
+ namespace view { }
1933
+ }
1934
+ export declare namespace crypto_algebra {
1935
+ interface Element<T0> {
1936
+ handle: bigint;
1937
+ }
1938
+ namespace Element {
1939
+ const TYPE_QNAME = "0x1::crypto_algebra::Element";
1940
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Element<T0>>;
1941
+ }
1942
+ namespace view { }
1943
+ }
1944
+ export declare namespace fungible_asset {
1945
+ interface BurnRef {
1946
+ metadata: object_.Object<fungible_asset.Metadata>;
1947
+ }
1948
+ namespace BurnRef {
1949
+ const TYPE_QNAME = "0x1::fungible_asset::BurnRef";
1950
+ function type(): TypeDescriptor<BurnRef>;
1951
+ }
1952
+ interface DepositEvent {
1953
+ amount: bigint;
1954
+ }
1955
+ namespace DepositEvent {
1956
+ const TYPE_QNAME = "0x1::fungible_asset::DepositEvent";
1957
+ function type(): TypeDescriptor<DepositEvent>;
1958
+ }
1959
+ interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
1960
+ data_decoded: DepositEvent;
1961
+ type_arguments: [];
1962
+ }
1963
+ interface FrozenEvent {
1964
+ frozen: Boolean;
1965
+ }
1966
+ namespace FrozenEvent {
1967
+ const TYPE_QNAME = "0x1::fungible_asset::FrozenEvent";
1968
+ function type(): TypeDescriptor<FrozenEvent>;
1969
+ }
1970
+ interface FrozenEventInstance extends TypedEventInstance<FrozenEvent> {
1971
+ data_decoded: FrozenEvent;
1972
+ type_arguments: [];
1973
+ }
1974
+ interface FungibleAsset {
1975
+ metadata: object_.Object<fungible_asset.Metadata>;
1976
+ amount: bigint;
1977
+ }
1978
+ namespace FungibleAsset {
1979
+ const TYPE_QNAME = "0x1::fungible_asset::FungibleAsset";
1980
+ function type(): TypeDescriptor<FungibleAsset>;
1981
+ }
1982
+ interface FungibleAssetEvents {
1983
+ deposit_events: event.EventHandle<fungible_asset.DepositEvent>;
1984
+ withdraw_events: event.EventHandle<fungible_asset.WithdrawEvent>;
1985
+ frozen_events: event.EventHandle<fungible_asset.FrozenEvent>;
1986
+ }
1987
+ namespace FungibleAssetEvents {
1988
+ const TYPE_QNAME = "0x1::fungible_asset::FungibleAssetEvents";
1989
+ function type(): TypeDescriptor<FungibleAssetEvents>;
1990
+ }
1991
+ interface FungibleStore {
1992
+ metadata: object_.Object<fungible_asset.Metadata>;
1993
+ balance: bigint;
1994
+ frozen: Boolean;
1995
+ }
1996
+ namespace FungibleStore {
1997
+ const TYPE_QNAME = "0x1::fungible_asset::FungibleStore";
1998
+ function type(): TypeDescriptor<FungibleStore>;
1999
+ }
2000
+ interface Metadata {
2001
+ name: string;
2002
+ symbol: string;
2003
+ decimals: number;
2004
+ icon_uri: string;
2005
+ project_uri: string;
2006
+ }
2007
+ namespace Metadata {
2008
+ const TYPE_QNAME = "0x1::fungible_asset::Metadata";
2009
+ function type(): TypeDescriptor<Metadata>;
2010
+ }
2011
+ interface MintRef {
2012
+ metadata: object_.Object<fungible_asset.Metadata>;
2013
+ }
2014
+ namespace MintRef {
2015
+ const TYPE_QNAME = "0x1::fungible_asset::MintRef";
2016
+ function type(): TypeDescriptor<MintRef>;
2017
+ }
2018
+ interface Supply {
2019
+ current: bigint;
2020
+ maximum: option.Option<bigint>;
2021
+ }
2022
+ namespace Supply {
2023
+ const TYPE_QNAME = "0x1::fungible_asset::Supply";
2024
+ function type(): TypeDescriptor<Supply>;
2025
+ }
2026
+ interface TransferRef {
2027
+ metadata: object_.Object<fungible_asset.Metadata>;
2028
+ }
2029
+ namespace TransferRef {
2030
+ const TYPE_QNAME = "0x1::fungible_asset::TransferRef";
2031
+ function type(): TypeDescriptor<TransferRef>;
2032
+ }
2033
+ interface WithdrawEvent {
2034
+ amount: bigint;
2035
+ }
2036
+ namespace WithdrawEvent {
2037
+ const TYPE_QNAME = "0x1::fungible_asset::WithdrawEvent";
2038
+ function type(): TypeDescriptor<WithdrawEvent>;
2039
+ }
2040
+ interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
2041
+ data_decoded: WithdrawEvent;
2042
+ type_arguments: [];
2043
+ }
2044
+ namespace view {
2045
+ function balance<T0 = any>(client: AptosClient, request: {
2046
+ type_arguments: [string];
2047
+ arguments: [object_.Object<T0>];
2048
+ }, version?: bigint): Promise<[bigint]>;
2049
+ function decimals<T0 = any>(client: AptosClient, request: {
2050
+ type_arguments: [string];
2051
+ arguments: [object_.Object<T0>];
2052
+ }, version?: bigint): Promise<[number]>;
2053
+ function isFrozen<T0 = any>(client: AptosClient, request: {
2054
+ type_arguments: [string];
2055
+ arguments: [object_.Object<T0>];
2056
+ }, version?: bigint): Promise<[Boolean]>;
2057
+ function maximum<T0 = any>(client: AptosClient, request: {
2058
+ type_arguments: [string];
2059
+ arguments: [object_.Object<T0>];
2060
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
2061
+ function name<T0 = any>(client: AptosClient, request: {
2062
+ type_arguments: [string];
2063
+ arguments: [object_.Object<T0>];
2064
+ }, version?: bigint): Promise<[string]>;
2065
+ function storeExists(client: AptosClient, request: {
2066
+ type_arguments: [];
2067
+ arguments: [Address];
2068
+ }, version?: bigint): Promise<[Boolean]>;
2069
+ function storeMetadata<T0 = any>(client: AptosClient, request: {
2070
+ type_arguments: [string];
2071
+ arguments: [object_.Object<T0>];
2072
+ }, version?: bigint): Promise<[object_.Object<fungible_asset.Metadata>]>;
2073
+ function supply<T0 = any>(client: AptosClient, request: {
2074
+ type_arguments: [string];
2075
+ arguments: [object_.Object<T0>];
2076
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
2077
+ function symbol<T0 = any>(client: AptosClient, request: {
2078
+ type_arguments: [string];
2079
+ arguments: [object_.Object<T0>];
2080
+ }, version?: bigint): Promise<[string]>;
2081
+ }
1576
2082
  }
1577
2083
  export declare namespace staking_config {
1578
2084
  interface StakingConfig {
@@ -1588,6 +2094,18 @@ export declare namespace staking_config {
1588
2094
  const TYPE_QNAME = "0x1::staking_config::StakingConfig";
1589
2095
  function type(): TypeDescriptor<StakingConfig>;
1590
2096
  }
2097
+ interface StakingRewardsConfig {
2098
+ rewards_rate: fixed_point64.FixedPoint64;
2099
+ min_rewards_rate: fixed_point64.FixedPoint64;
2100
+ rewards_rate_period_in_secs: bigint;
2101
+ last_rewards_rate_period_start_in_secs: bigint;
2102
+ rewards_rate_decrease_rate: fixed_point64.FixedPoint64;
2103
+ }
2104
+ namespace StakingRewardsConfig {
2105
+ const TYPE_QNAME = "0x1::staking_config::StakingRewardsConfig";
2106
+ function type(): TypeDescriptor<StakingRewardsConfig>;
2107
+ }
2108
+ namespace view { }
1591
2109
  }
1592
2110
  export declare namespace delegation_pool {
1593
2111
  interface AddStakeEvent {
@@ -1689,6 +2207,52 @@ export declare namespace delegation_pool {
1689
2207
  data_decoded: WithdrawStakeEvent;
1690
2208
  type_arguments: [];
1691
2209
  }
2210
+ namespace view {
2211
+ function canWithdrawPendingInactive(client: AptosClient, request: {
2212
+ type_arguments: [];
2213
+ arguments: [Address];
2214
+ }, version?: bigint): Promise<[Boolean]>;
2215
+ function delegationPoolExists(client: AptosClient, request: {
2216
+ type_arguments: [];
2217
+ arguments: [Address];
2218
+ }, version?: bigint): Promise<[Boolean]>;
2219
+ function getAddStakeFee(client: AptosClient, request: {
2220
+ type_arguments: [];
2221
+ arguments: [Address, bigint];
2222
+ }, version?: bigint): Promise<[bigint]>;
2223
+ function getDelegationPoolStake(client: AptosClient, request: {
2224
+ type_arguments: [];
2225
+ arguments: [Address];
2226
+ }, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
2227
+ function getOwnedPoolAddress(client: AptosClient, request: {
2228
+ type_arguments: [];
2229
+ arguments: [Address];
2230
+ }, version?: bigint): Promise<[Address]>;
2231
+ function getPendingWithdrawal(client: AptosClient, request: {
2232
+ type_arguments: [];
2233
+ arguments: [Address, Address];
2234
+ }, version?: bigint): Promise<[Boolean, bigint]>;
2235
+ function getStake(client: AptosClient, request: {
2236
+ type_arguments: [];
2237
+ arguments: [Address, Address];
2238
+ }, version?: bigint): Promise<[bigint, bigint, bigint]>;
2239
+ function observedLockupCycle(client: AptosClient, request: {
2240
+ type_arguments: [];
2241
+ arguments: [Address];
2242
+ }, version?: bigint): Promise<[bigint]>;
2243
+ function operatorCommissionPercentage(client: AptosClient, request: {
2244
+ type_arguments: [];
2245
+ arguments: [Address];
2246
+ }, version?: bigint): Promise<[bigint]>;
2247
+ function ownerCapExists(client: AptosClient, request: {
2248
+ type_arguments: [];
2249
+ arguments: [Address];
2250
+ }, version?: bigint): Promise<[Boolean]>;
2251
+ function shareholdersCountActivePool(client: AptosClient, request: {
2252
+ type_arguments: [];
2253
+ arguments: [Address];
2254
+ }, version?: bigint): Promise<[bigint]>;
2255
+ }
1692
2256
  }
1693
2257
  export declare namespace reconfiguration {
1694
2258
  interface Configuration {
@@ -1718,6 +2282,7 @@ export declare namespace reconfiguration {
1718
2282
  data_decoded: NewEpochEvent;
1719
2283
  type_arguments: [];
1720
2284
  }
2285
+ namespace view { }
1721
2286
  }
1722
2287
  export declare namespace transaction_fee {
1723
2288
  interface AptosCoinCapabilities {
@@ -1736,6 +2301,7 @@ export declare namespace transaction_fee {
1736
2301
  const TYPE_QNAME = "0x1::transaction_fee::CollectedFeesPerBlock";
1737
2302
  function type(): TypeDescriptor<CollectedFeesPerBlock>;
1738
2303
  }
2304
+ namespace view { }
1739
2305
  }
1740
2306
  export declare namespace aptos_governance {
1741
2307
  interface ApprovedExecutionHashes {
@@ -1828,6 +2394,128 @@ export declare namespace aptos_governance {
1828
2394
  const TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
1829
2395
  function type(): TypeDescriptor<VotingRecords>;
1830
2396
  }
2397
+ namespace view {
2398
+ function getMinVotingThreshold(client: AptosClient, request: {
2399
+ type_arguments: [];
2400
+ arguments: [];
2401
+ }, version?: bigint): Promise<[bigint]>;
2402
+ function getRequiredProposerStake(client: AptosClient, request: {
2403
+ type_arguments: [];
2404
+ arguments: [];
2405
+ }, version?: bigint): Promise<[bigint]>;
2406
+ function getVotingDurationSecs(client: AptosClient, request: {
2407
+ type_arguments: [];
2408
+ arguments: [];
2409
+ }, version?: bigint): Promise<[bigint]>;
2410
+ }
2411
+ }
2412
+ export declare namespace bls12381_algebra {
2413
+ interface FormatFq12LscLsb {
2414
+ dummy_field: Boolean;
2415
+ }
2416
+ namespace FormatFq12LscLsb {
2417
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatFq12LscLsb";
2418
+ function type(): TypeDescriptor<FormatFq12LscLsb>;
2419
+ }
2420
+ interface FormatFrLsb {
2421
+ dummy_field: Boolean;
2422
+ }
2423
+ namespace FormatFrLsb {
2424
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatFrLsb";
2425
+ function type(): TypeDescriptor<FormatFrLsb>;
2426
+ }
2427
+ interface FormatFrMsb {
2428
+ dummy_field: Boolean;
2429
+ }
2430
+ namespace FormatFrMsb {
2431
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatFrMsb";
2432
+ function type(): TypeDescriptor<FormatFrMsb>;
2433
+ }
2434
+ interface FormatG1Compr {
2435
+ dummy_field: Boolean;
2436
+ }
2437
+ namespace FormatG1Compr {
2438
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG1Compr";
2439
+ function type(): TypeDescriptor<FormatG1Compr>;
2440
+ }
2441
+ interface FormatG1Uncompr {
2442
+ dummy_field: Boolean;
2443
+ }
2444
+ namespace FormatG1Uncompr {
2445
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG1Uncompr";
2446
+ function type(): TypeDescriptor<FormatG1Uncompr>;
2447
+ }
2448
+ interface FormatG2Compr {
2449
+ dummy_field: Boolean;
2450
+ }
2451
+ namespace FormatG2Compr {
2452
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG2Compr";
2453
+ function type(): TypeDescriptor<FormatG2Compr>;
2454
+ }
2455
+ interface FormatG2Uncompr {
2456
+ dummy_field: Boolean;
2457
+ }
2458
+ namespace FormatG2Uncompr {
2459
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG2Uncompr";
2460
+ function type(): TypeDescriptor<FormatG2Uncompr>;
2461
+ }
2462
+ interface FormatGt {
2463
+ dummy_field: Boolean;
2464
+ }
2465
+ namespace FormatGt {
2466
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatGt";
2467
+ function type(): TypeDescriptor<FormatGt>;
2468
+ }
2469
+ interface Fq12 {
2470
+ dummy_field: Boolean;
2471
+ }
2472
+ namespace Fq12 {
2473
+ const TYPE_QNAME = "0x1::bls12381_algebra::Fq12";
2474
+ function type(): TypeDescriptor<Fq12>;
2475
+ }
2476
+ interface Fr {
2477
+ dummy_field: Boolean;
2478
+ }
2479
+ namespace Fr {
2480
+ const TYPE_QNAME = "0x1::bls12381_algebra::Fr";
2481
+ function type(): TypeDescriptor<Fr>;
2482
+ }
2483
+ interface G1 {
2484
+ dummy_field: Boolean;
2485
+ }
2486
+ namespace G1 {
2487
+ const TYPE_QNAME = "0x1::bls12381_algebra::G1";
2488
+ function type(): TypeDescriptor<G1>;
2489
+ }
2490
+ interface G2 {
2491
+ dummy_field: Boolean;
2492
+ }
2493
+ namespace G2 {
2494
+ const TYPE_QNAME = "0x1::bls12381_algebra::G2";
2495
+ function type(): TypeDescriptor<G2>;
2496
+ }
2497
+ interface Gt {
2498
+ dummy_field: Boolean;
2499
+ }
2500
+ namespace Gt {
2501
+ const TYPE_QNAME = "0x1::bls12381_algebra::Gt";
2502
+ function type(): TypeDescriptor<Gt>;
2503
+ }
2504
+ interface HashG1XmdSha256SswuRo {
2505
+ dummy_field: Boolean;
2506
+ }
2507
+ namespace HashG1XmdSha256SswuRo {
2508
+ const TYPE_QNAME = "0x1::bls12381_algebra::HashG1XmdSha256SswuRo";
2509
+ function type(): TypeDescriptor<HashG1XmdSha256SswuRo>;
2510
+ }
2511
+ interface HashG2XmdSha256SswuRo {
2512
+ dummy_field: Boolean;
2513
+ }
2514
+ namespace HashG2XmdSha256SswuRo {
2515
+ const TYPE_QNAME = "0x1::bls12381_algebra::HashG2XmdSha256SswuRo";
2516
+ function type(): TypeDescriptor<HashG2XmdSha256SswuRo>;
2517
+ }
2518
+ namespace view { }
1831
2519
  }
1832
2520
  export declare namespace consensus_config {
1833
2521
  interface ConsensusConfig {
@@ -1837,6 +2525,17 @@ export declare namespace consensus_config {
1837
2525
  const TYPE_QNAME = "0x1::consensus_config::ConsensusConfig";
1838
2526
  function type(): TypeDescriptor<ConsensusConfig>;
1839
2527
  }
2528
+ namespace view { }
2529
+ }
2530
+ export declare namespace execution_config {
2531
+ interface ExecutionConfig {
2532
+ config: string;
2533
+ }
2534
+ namespace ExecutionConfig {
2535
+ const TYPE_QNAME = "0x1::execution_config::ExecutionConfig";
2536
+ function type(): TypeDescriptor<ExecutionConfig>;
2537
+ }
2538
+ namespace view { }
1840
2539
  }
1841
2540
  export declare namespace multisig_account {
1842
2541
  interface AddOwnersEvent {
@@ -2006,6 +2705,56 @@ export declare namespace multisig_account {
2006
2705
  data_decoded: VoteEvent;
2007
2706
  type_arguments: [];
2008
2707
  }
2708
+ namespace view {
2709
+ function canBeExecuted(client: AptosClient, request: {
2710
+ type_arguments: [];
2711
+ arguments: [Address, bigint];
2712
+ }, version?: bigint): Promise<[Boolean]>;
2713
+ function canBeRejected(client: AptosClient, request: {
2714
+ type_arguments: [];
2715
+ arguments: [Address, bigint];
2716
+ }, version?: bigint): Promise<[Boolean]>;
2717
+ function getNextMultisigAccountAddress(client: AptosClient, request: {
2718
+ type_arguments: [];
2719
+ arguments: [Address];
2720
+ }, version?: bigint): Promise<[Address]>;
2721
+ function getNextTransactionPayload(client: AptosClient, request: {
2722
+ type_arguments: [];
2723
+ arguments: [Address, string];
2724
+ }, version?: bigint): Promise<[string]>;
2725
+ function getPendingTransactions(client: AptosClient, request: {
2726
+ type_arguments: [];
2727
+ arguments: [Address];
2728
+ }, version?: bigint): Promise<[multisig_account.MultisigTransaction[]]>;
2729
+ function getTransaction(client: AptosClient, request: {
2730
+ type_arguments: [];
2731
+ arguments: [Address, bigint];
2732
+ }, version?: bigint): Promise<[multisig_account.MultisigTransaction]>;
2733
+ function lastResolvedSequenceNumber(client: AptosClient, request: {
2734
+ type_arguments: [];
2735
+ arguments: [Address];
2736
+ }, version?: bigint): Promise<[bigint]>;
2737
+ function metadata(client: AptosClient, request: {
2738
+ type_arguments: [];
2739
+ arguments: [Address];
2740
+ }, version?: bigint): Promise<[simple_map.SimpleMap<string, string>]>;
2741
+ function nextSequenceNumber(client: AptosClient, request: {
2742
+ type_arguments: [];
2743
+ arguments: [Address];
2744
+ }, version?: bigint): Promise<[bigint]>;
2745
+ function numSignaturesRequired(client: AptosClient, request: {
2746
+ type_arguments: [];
2747
+ arguments: [Address];
2748
+ }, version?: bigint): Promise<[bigint]>;
2749
+ function owners(client: AptosClient, request: {
2750
+ type_arguments: [];
2751
+ arguments: [Address];
2752
+ }, version?: bigint): Promise<[Address[]]>;
2753
+ function vote(client: AptosClient, request: {
2754
+ type_arguments: [];
2755
+ arguments: [Address, bigint, Address];
2756
+ }, version?: bigint): Promise<[Boolean, Boolean]>;
2757
+ }
2009
2758
  }
2010
2759
  export declare namespace pool_u64_unbound {
2011
2760
  interface Pool {
@@ -2018,6 +2767,7 @@ export declare namespace pool_u64_unbound {
2018
2767
  const TYPE_QNAME = "0x1::pool_u64_unbound::Pool";
2019
2768
  function type(): TypeDescriptor<Pool>;
2020
2769
  }
2770
+ namespace view { }
2021
2771
  }
2022
2772
  export declare namespace resource_account {
2023
2773
  interface Container {
@@ -2027,6 +2777,7 @@ export declare namespace resource_account {
2027
2777
  const TYPE_QNAME = "0x1::resource_account::Container";
2028
2778
  function type(): TypeDescriptor<Container>;
2029
2779
  }
2780
+ namespace view { }
2030
2781
  }
2031
2782
  export declare namespace staking_contract {
2032
2783
  interface AddDistributionEvent {
@@ -2207,8 +2958,36 @@ export declare namespace staking_contract {
2207
2958
  data_decoded: UpdateVoterEvent;
2208
2959
  type_arguments: [];
2209
2960
  }
2961
+ namespace view {
2962
+ function commissionPercentage(client: AptosClient, request: {
2963
+ type_arguments: [];
2964
+ arguments: [Address, Address];
2965
+ }, version?: bigint): Promise<[bigint]>;
2966
+ function lastRecordedPrincipal(client: AptosClient, request: {
2967
+ type_arguments: [];
2968
+ arguments: [Address, Address];
2969
+ }, version?: bigint): Promise<[bigint]>;
2970
+ function pendingDistributionCounts(client: AptosClient, request: {
2971
+ type_arguments: [];
2972
+ arguments: [Address, Address];
2973
+ }, version?: bigint): Promise<[bigint]>;
2974
+ function stakePoolAddress(client: AptosClient, request: {
2975
+ type_arguments: [];
2976
+ arguments: [Address, Address];
2977
+ }, version?: bigint): Promise<[Address]>;
2978
+ function stakingContractAmounts(client: AptosClient, request: {
2979
+ type_arguments: [];
2980
+ arguments: [Address, Address];
2981
+ }, version?: bigint): Promise<[bigint, bigint, bigint]>;
2982
+ function stakingContractExists(client: AptosClient, request: {
2983
+ type_arguments: [];
2984
+ arguments: [Address, Address];
2985
+ }, version?: bigint): Promise<[Boolean]>;
2986
+ }
2987
+ }
2988
+ export declare namespace system_addresses {
2989
+ namespace view { }
2210
2990
  }
2211
- export declare namespace system_addresses { }
2212
2991
  export declare namespace table_with_length {
2213
2992
  interface TableWithLength<T0, T1> {
2214
2993
  inner: table.Table<T0, T1>;
@@ -2218,6 +2997,7 @@ export declare namespace table_with_length {
2218
2997
  const TYPE_QNAME = "0x1::table_with_length::TableWithLength";
2219
2998
  function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<TableWithLength<T0, T1>>;
2220
2999
  }
3000
+ namespace view { }
2221
3001
  }
2222
3002
  export declare namespace aggregator_factory {
2223
3003
  interface AggregatorFactory {
@@ -2227,6 +3007,7 @@ export declare namespace aggregator_factory {
2227
3007
  const TYPE_QNAME = "0x1::aggregator_factory::AggregatorFactory";
2228
3008
  function type(): TypeDescriptor<AggregatorFactory>;
2229
3009
  }
3010
+ namespace view { }
2230
3011
  }
2231
3012
  export declare namespace governance_proposal {
2232
3013
  interface GovernanceProposal {
@@ -2236,6 +3017,7 @@ export declare namespace governance_proposal {
2236
3017
  const TYPE_QNAME = "0x1::governance_proposal::GovernanceProposal";
2237
3018
  function type(): TypeDescriptor<GovernanceProposal>;
2238
3019
  }
3020
+ namespace view { }
2239
3021
  }
2240
3022
  export declare namespace optional_aggregator {
2241
3023
  interface Integer {
@@ -2254,8 +3036,42 @@ export declare namespace optional_aggregator {
2254
3036
  const TYPE_QNAME = "0x1::optional_aggregator::OptionalAggregator";
2255
3037
  function type(): TypeDescriptor<OptionalAggregator>;
2256
3038
  }
3039
+ namespace view { }
3040
+ }
3041
+ export declare namespace transaction_context {
3042
+ namespace view { }
3043
+ }
3044
+ export declare namespace primary_fungible_store {
3045
+ interface DeriveRefPod {
3046
+ metadata_derive_ref: object_.DeriveRef;
3047
+ }
3048
+ namespace DeriveRefPod {
3049
+ const TYPE_QNAME = "0x1::primary_fungible_store::DeriveRefPod";
3050
+ function type(): TypeDescriptor<DeriveRefPod>;
3051
+ }
3052
+ namespace view {
3053
+ function balance<T0 = any>(client: AptosClient, request: {
3054
+ type_arguments: [string];
3055
+ arguments: [Address, object_.Object<T0>];
3056
+ }, version?: bigint): Promise<[bigint]>;
3057
+ function isFrozen<T0 = any>(client: AptosClient, request: {
3058
+ type_arguments: [string];
3059
+ arguments: [Address, object_.Object<T0>];
3060
+ }, version?: bigint): Promise<[Boolean]>;
3061
+ function primaryStore<T0 = any>(client: AptosClient, request: {
3062
+ type_arguments: [string];
3063
+ arguments: [Address, object_.Object<T0>];
3064
+ }, version?: bigint): Promise<[object_.Object<fungible_asset.FungibleStore>]>;
3065
+ function primaryStoreAddress<T0 = any>(client: AptosClient, request: {
3066
+ type_arguments: [string];
3067
+ arguments: [Address, object_.Object<T0>];
3068
+ }, version?: bigint): Promise<[Address]>;
3069
+ function primaryStoreExists<T0 = any>(client: AptosClient, request: {
3070
+ type_arguments: [string];
3071
+ arguments: [Address, object_.Object<T0>];
3072
+ }, version?: bigint): Promise<[Boolean]>;
3073
+ }
2257
3074
  }
2258
- export declare namespace transaction_context { }
2259
3075
  export declare namespace transaction_validation {
2260
3076
  interface TransactionValidation {
2261
3077
  module_addr: Address;
@@ -2269,6 +3085,7 @@ export declare namespace transaction_validation {
2269
3085
  const TYPE_QNAME = "0x1::transaction_validation::TransactionValidation";
2270
3086
  function type(): TypeDescriptor<TransactionValidation>;
2271
3087
  }
3088
+ namespace view { }
2272
3089
  }
2273
3090
  export declare function loadAllTypes(coder: MoveCoder): void;
2274
3091
  //# sourceMappingURL=0x1.d.ts.map