@aeternity/aepp-sdk 14.1.1 → 15.0.0

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.
Files changed (82) hide show
  1. package/dist/aepp-sdk.browser-script.cjs +1 -1
  2. package/dist/aepp-sdk.browser-script.cjs.map +1 -1
  3. package/dist/aepp-sdk.browser.cjs +1 -1
  4. package/dist/aepp-sdk.browser.cjs.map +1 -1
  5. package/dist/aepp-sdk.cjs +3068 -502
  6. package/dist/aepp-sdk.cjs.map +1 -1
  7. package/es/account/Base.d.ts +6 -1
  8. package/es/account/Base.js.map +1 -1
  9. package/es/account/Generalized.d.ts +1 -1
  10. package/es/account/Generalized.js +7 -1
  11. package/es/account/Generalized.js.map +1 -1
  12. package/es/apis/node/models/index.d.ts +405 -79
  13. package/es/apis/node/models/index.js.map +1 -1
  14. package/es/apis/node/models/mappers.d.ts +54 -4
  15. package/es/apis/node/models/mappers.js +1910 -500
  16. package/es/apis/node/models/mappers.js.map +1 -1
  17. package/es/apis/node/node.d.ts +28 -6
  18. package/es/apis/node/node.js +276 -5
  19. package/es/apis/node/node.js.map +1 -1
  20. package/es/channel/Contract.d.ts +5 -0
  21. package/es/channel/Contract.js +8 -2
  22. package/es/channel/Contract.js.map +1 -1
  23. package/es/channel/handlers.js +3 -3
  24. package/es/channel/handlers.js.map +1 -1
  25. package/es/contract/ga.d.ts +5 -2
  26. package/es/contract/ga.js +53 -21
  27. package/es/contract/ga.js.map +1 -1
  28. package/es/index-browser.d.ts +3 -1
  29. package/es/index-browser.js +2 -1
  30. package/es/index-browser.js.map +1 -1
  31. package/es/tx/builder/constants.d.ts +12 -2
  32. package/es/tx/builder/constants.js +11 -1
  33. package/es/tx/builder/constants.js.map +1 -1
  34. package/es/tx/builder/entry/index.js +6 -0
  35. package/es/tx/builder/entry/index.js.map +1 -1
  36. package/es/tx/builder/entry/schema.d.ts +10 -10
  37. package/es/tx/builder/field-types/ct-version.d.ts +14 -0
  38. package/es/tx/builder/field-types/ct-version.js +14 -0
  39. package/es/tx/builder/field-types/ct-version.js.map +1 -1
  40. package/es/tx/builder/field-types/fee.d.ts +9 -7
  41. package/es/tx/builder/field-types/fee.js +75 -66
  42. package/es/tx/builder/field-types/fee.js.map +1 -1
  43. package/es/tx/builder/field-types/gas-limit.d.ts +5 -3
  44. package/es/tx/builder/field-types/gas-limit.js +25 -14
  45. package/es/tx/builder/field-types/gas-limit.js.map +1 -1
  46. package/es/tx/builder/field-types/gas-price.d.ts +6 -4
  47. package/es/tx/builder/field-types/gas-price.js +87 -21
  48. package/es/tx/builder/field-types/gas-price.js.map +1 -1
  49. package/es/tx/builder/field-types/interface.d.ts +20 -0
  50. package/es/tx/builder/field-types/interface.js +17 -1
  51. package/es/tx/builder/field-types/interface.js.map +1 -1
  52. package/es/tx/builder/field-types/name-fee.d.ts +3 -2
  53. package/es/tx/builder/field-types/name-fee.js +6 -0
  54. package/es/tx/builder/field-types/name-fee.js.map +1 -1
  55. package/es/tx/builder/field-types/pointers.d.ts +2 -1
  56. package/es/tx/builder/field-types/pointers.js +6 -2
  57. package/es/tx/builder/field-types/pointers.js.map +1 -1
  58. package/es/tx/builder/field-types/transaction.d.ts +4 -1
  59. package/es/tx/builder/field-types/transaction.js +18 -3
  60. package/es/tx/builder/field-types/transaction.js.map +1 -1
  61. package/es/tx/builder/field-types/with-formatting.d.ts +1 -1
  62. package/es/tx/builder/field-types/with-formatting.js +1 -1
  63. package/es/tx/builder/field-types/with-formatting.js.map +1 -1
  64. package/es/tx/builder/index.d.ts +13 -0
  65. package/es/tx/builder/index.js +92 -5
  66. package/es/tx/builder/index.js.map +1 -1
  67. package/es/tx/builder/protocol-parameters.d.ts +123 -0
  68. package/es/tx/builder/protocol-parameters.js +519 -0
  69. package/es/tx/builder/protocol-parameters.js.map +1 -0
  70. package/es/tx/builder/schema.d.ts +156 -155
  71. package/es/tx/builder/schema.js +5 -1
  72. package/es/tx/builder/schema.js.map +1 -1
  73. package/es/tx/execution-cost.js +5 -5
  74. package/es/tx/execution-cost.js.map +1 -1
  75. package/es/tx/transaction-signer.js +2 -2
  76. package/es/tx/transaction-signer.js.map +1 -1
  77. package/es/tx/validator.js +4 -4
  78. package/es/tx/validator.js.map +1 -1
  79. package/es/utils/wrap-proxy.d.ts +10 -0
  80. package/es/utils/wrap-proxy.js +18 -0
  81. package/es/utils/wrap-proxy.js.map +1 -1
  82. package/package.json +2 -2
@@ -29,9 +29,9 @@ export interface SignedTx {
29
29
  blockHeight: number;
30
30
  /** Base58Check encoded tagged hash */
31
31
  blockHash: string;
32
- /** Base58Check encoded tagged hash */
32
+ /** Base58Check encoded transaction hash */
33
33
  hash: string;
34
- /** Base64Check encoded tagged byte array */
34
+ /** Base64Check encoded transaction */
35
35
  encodedTx?: string;
36
36
  /** At least one signature is required unless for Generalized Account Meta transactions */
37
37
  signatures: string[];
@@ -46,7 +46,7 @@ export interface Tx {
46
46
  /** Base58Check encoded tagged pubkey */
47
47
  senderId?: string;
48
48
  nonce?: number;
49
- /** Base64Check encoded tagged byte array */
49
+ /** Base64Check encoded byte array. Accepted on input as a plain 'ba_'-prefixed byte array (see aehttp_dispatch_int.erl's produce_tx(channel_set_delegates_tx, ...)), but returned by the node as a 'tx_'-prefixed transaction (see aesc_set_delegates_tx.erl) -- no single prefix pattern covers both. */
50
50
  payload?: string;
51
51
  /** Base58Check encoded tagged pubkey */
52
52
  initiatorId?: string;
@@ -67,11 +67,11 @@ export interface Tx {
67
67
  /** Base58Check encoded tagged pubkey */
68
68
  toId?: string;
69
69
  update?: OffChainUpdateUnion;
70
- /** Base64Check encoded tagged byte array */
70
+ /** Base64Check encoded state trees */
71
71
  offchainTrees?: string;
72
72
  initiatorAmountFinal?: bigint;
73
73
  responderAmountFinal?: bigint;
74
- /** Base64Check encoded tagged byte array */
74
+ /** Base64Check encoded proof of inclusion */
75
75
  poi?: string;
76
76
  initiatorDelegateIds?: string[];
77
77
  responderDelegateIds?: string[];
@@ -87,28 +87,28 @@ export interface Tx {
87
87
  query?: string;
88
88
  queryTtl?: Ttl;
89
89
  responseTtl?: RelativeTTL;
90
- /** Base58Check encoded tagged value */
90
+ /** Base58Check encoded oracle query id */
91
91
  queryId?: string;
92
92
  response?: string;
93
- /** Base58Check encoded tagged value */
93
+ /** Base58Check encoded AENS commitment */
94
94
  commitmentId?: string;
95
95
  name?: string;
96
96
  nameSalt?: number;
97
97
  nameFee?: bigint;
98
- /** Base58Check encoded tagged value */
98
+ /** Base58Check encoded AENS name hash */
99
99
  nameId?: string;
100
100
  nameTtl?: number;
101
101
  pointers?: NamePointer[];
102
102
  clientTtl?: number;
103
103
  /** Base58Check encoded tagged pubkey */
104
104
  ownerId?: string;
105
- /** Base64Check encoded tagged byte array */
105
+ /** Base64Check encoded contract byte array */
106
106
  code?: string;
107
107
  vmVersion?: number;
108
108
  deposit?: bigint;
109
109
  gas?: number;
110
110
  gasPrice?: bigint;
111
- /** Base64Check encoded tagged byte array */
111
+ /** Base64Check encoded contract byte array */
112
112
  callData?: string;
113
113
  /** Base58Check encoded tagged pubkey */
114
114
  callerId?: string;
@@ -118,7 +118,7 @@ export interface Tx {
118
118
  authFun?: string;
119
119
  /** Base58Check encoded tagged pubkey */
120
120
  gaId?: string;
121
- /** Base64Check encoded tagged byte array */
121
+ /** Base64Check encoded contract byte array */
122
122
  authData?: string;
123
123
  tx?: SignedTx;
124
124
  /** Base58Check encoded tagged pubkey */
@@ -144,13 +144,13 @@ export interface Ttl {
144
144
  }
145
145
  export interface NamePointer {
146
146
  key: string;
147
- /** Base58Check encoded tagged value */
147
+ /** Base64Check encoded byte array */
148
148
  encodedKey?: string;
149
149
  /** Base58Check encoded tagged pubkey */
150
150
  id: string;
151
151
  }
152
152
  export interface AuctionEntry {
153
- /** Base58Check encoded tagged value */
153
+ /** Base58Check encoded AENS name hash */
154
154
  id: string;
155
155
  startedAt: number;
156
156
  endsAt: number;
@@ -189,11 +189,11 @@ export interface ContractObject {
189
189
  deposit: bigint;
190
190
  }
191
191
  export interface ByteCode {
192
- /** Base64Check encoded tagged byte array */
192
+ /** Base64Check encoded contract byte array */
193
193
  bytecode: `cb_${string}`;
194
194
  }
195
195
  export interface PoI {
196
- /** Base64Check encoded tagged byte array */
196
+ /** Base64Check encoded proof of inclusion */
197
197
  poi: string;
198
198
  }
199
199
  export interface Currency {
@@ -229,14 +229,14 @@ export interface DryRunAccount {
229
229
  amount: bigint;
230
230
  }
231
231
  export interface DryRunInputItem {
232
- /** Base64Check encoded tagged byte array */
232
+ /** Base64Check encoded transaction */
233
233
  tx?: string;
234
- /** Base58Check encoded tagged hash */
234
+ /** Base58Check encoded transaction hash */
235
235
  txHash?: `th_${string}`;
236
236
  callReq?: DryRunCallReq;
237
237
  }
238
238
  export interface DryRunCallReq {
239
- /** Base64Check encoded tagged byte array */
239
+ /** Base64Check encoded contract byte array */
240
240
  calldata: string;
241
241
  /** Base58Check encoded tagged pubkey */
242
242
  contract: string;
@@ -249,9 +249,9 @@ export interface DryRunCallReq {
249
249
  context?: DryRunCallContext;
250
250
  }
251
251
  export interface DryRunCallContext {
252
- /** Base64Check encoded tagged byte array */
252
+ /** Base64Check encoded transaction */
253
253
  tx?: string;
254
- /** Base58Check encoded tagged hash */
254
+ /** Base58Check encoded transaction hash */
255
255
  txHash?: `th_${string}`;
256
256
  /** This call will have effects on the next call in this dry-run (or not) */
257
257
  stateful?: boolean;
@@ -278,7 +278,7 @@ export interface ContractCallObject {
278
278
  gasPrice: bigint;
279
279
  gasUsed: number;
280
280
  log: Event[];
281
- /** Base64Check encoded tagged byte array */
281
+ /** Base64Check encoded contract byte array */
282
282
  returnValue: string;
283
283
  /** The status of the call 'ok | error | revert'. */
284
284
  returnType: ContractCallObjectReturnType;
@@ -288,7 +288,7 @@ export interface Event {
288
288
  address: string;
289
289
  /** Event topics */
290
290
  topics: bigint[];
291
- /** Base64Check encoded tagged byte array */
291
+ /** Base64Check encoded contract byte array */
292
292
  data: string;
293
293
  }
294
294
  export interface Generation {
@@ -309,14 +309,14 @@ export interface KeyBlock {
309
309
  miner: string;
310
310
  /** Base58Check encoded tagged pubkey */
311
311
  beneficiary: string;
312
- /** Base64Check encoded tagged byte array */
313
- flags: string;
312
+ /** Base64Check encoded byte array */
313
+ flags?: string;
314
314
  target: number;
315
315
  pow?: number[];
316
316
  nonce?: number;
317
317
  time: Date;
318
318
  version: number;
319
- /** Base64Check encoded tagged byte array */
319
+ /** Base64Check encoded contract byte array */
320
320
  info: string;
321
321
  }
322
322
  /** A mix of KeyBlock, MicroBlockHeader properties. */
@@ -334,20 +334,20 @@ export interface Header {
334
334
  miner?: string;
335
335
  /** Base58Check encoded tagged pubkey */
336
336
  beneficiary?: string;
337
- /** Base64Check encoded tagged byte array */
337
+ /** Base64Check encoded byte array */
338
338
  flags?: string;
339
339
  target?: number;
340
340
  pow?: number[];
341
341
  nonce?: number;
342
342
  time: Date;
343
343
  version: number;
344
- /** Base64Check encoded tagged byte array */
344
+ /** Base64Check encoded contract byte array */
345
345
  info?: string;
346
- /** Base58Check encoded tagged hash */
346
+ /** \"no_fraud\" or Base58Check encoded Proof of Fraud hash */
347
347
  pofHash?: string;
348
348
  /** Base58Check encoded tagged hash */
349
349
  txsHash?: string;
350
- /** Base58Check encoded tagged value */
350
+ /** Base58Check encoded signature */
351
351
  signature?: string;
352
352
  }
353
353
  export interface PinningTx {
@@ -384,7 +384,7 @@ export interface MicroBlockHeader {
384
384
  /** Base58Check encoded tagged hash */
385
385
  hash: string;
386
386
  height: number;
387
- /** Base58Check encoded tagged hash */
387
+ /** \"no_fraud\" or Base58Check encoded Proof of Fraud hash */
388
388
  pofHash: string;
389
389
  /** Base58Check encoded tagged hash */
390
390
  prevHash: string;
@@ -394,28 +394,23 @@ export interface MicroBlockHeader {
394
394
  stateHash: string;
395
395
  /** Base58Check encoded tagged hash */
396
396
  txsHash: string;
397
- /** Base58Check encoded tagged value */
397
+ /** Base58Check encoded signature */
398
398
  signature: string;
399
399
  time: Date;
400
400
  version: number;
401
+ /** Base64Check encoded byte array */
402
+ flags?: string;
401
403
  }
402
404
  export interface CountResponse {
403
405
  count: number;
404
406
  }
405
407
  export interface NameEntry {
406
- /** Base58Check encoded tagged value */
408
+ /** Base58Check encoded AENS name hash */
407
409
  id: string;
408
410
  /** Base58Check encoded tagged pubkey */
409
411
  owner?: string;
410
412
  ttl: number;
411
- pointers: NamePointerComplete[];
412
- }
413
- export interface NamePointerComplete {
414
- key: string;
415
- /** Base58Check encoded tagged value */
416
- encodedKey: string;
417
- /** Base58Check encoded tagged pubkey */
418
- id: string;
413
+ pointers: NameEntryPointersItem[];
419
414
  }
420
415
  export interface RegisteredOracle {
421
416
  /** Base58Check encoded tagged pubkey */
@@ -430,7 +425,7 @@ export interface OracleQueries {
430
425
  oracleQueries: OracleQuery[];
431
426
  }
432
427
  export interface OracleQuery {
433
- /** Base58Check encoded tagged value */
428
+ /** Base58Check encoded oracle query id */
434
429
  id: string;
435
430
  /** Base58Check encoded tagged pubkey */
436
431
  senderId: string;
@@ -455,6 +450,69 @@ export interface GasPricesItem {
455
450
  /** Number of minutes from the top */
456
451
  minutes: number;
457
452
  }
453
+ /** This node's local policy settings. Not consensus rules: they may differ between nodes and an operator can change them at runtime. */
454
+ export interface NodeSettings {
455
+ /** Minimum gas price this node's miner accepts (aettos per gas), as a decimal string. Transactions with a lower gas price are valid but not mined by this node. */
456
+ minMinerGasPrice: bigint;
457
+ /** Maximum gas this node accepts for a generalized account authentication function (GAMetaTx) */
458
+ maxAuthFunGas: number;
459
+ /** Number of key blocks a transaction stays in this node's mempool */
460
+ mempoolTxTtl: number;
461
+ /** Maximum nonce distance from the current account nonce accepted into this node's mempool */
462
+ mempoolNonceOffset: number;
463
+ /** Maximum total gas accepted by this node's dry-run endpoint */
464
+ dryRunGasLimit: number;
465
+ /** Maximum total gas this node accepts in a single micro block (upper bound for a single transaction's gas) */
466
+ blockGasLimit: number;
467
+ }
468
+ export interface ProtocolParameters {
469
+ /** Network id prepended to the serialized transaction before signing */
470
+ networkId: string;
471
+ /** Consensus protocol version effective at the current top height */
472
+ currentProtocolVersion: number;
473
+ /** Account holding locked/burnt coins (e.g. AENS name fees) */
474
+ lockedCoinsHolderAccount: string;
475
+ /** Expected key block interval in milliseconds, the proof-of-work difficulty retarget target. A node reports whichever of this and child_block_time governs its consensus, never both. */
476
+ expectedBlockMineRate?: number;
477
+ /** Key block interval in milliseconds of a Hyperchains child chain */
478
+ childBlockTime?: number;
479
+ /** Minimum micro block interval in milliseconds, enforced in block validation */
480
+ microBlockCycle: number;
481
+ /** Consensus parameters of the protocol effective at the current top block, followed by any protocol whose fork height has not been reached yet. */
482
+ protocols: ProtocolConsensusParameters[];
483
+ }
484
+ export interface ContractTxBaseGas {
485
+ /** Transaction type */
486
+ txType: string;
487
+ /** ABI version this base gas applies to */
488
+ abiVersion: number;
489
+ /** Base fee gas of this transaction type with this ABI version */
490
+ txBaseGas: number;
491
+ }
492
+ export interface StateGasPerBlock {
493
+ /** Numerator of the per-key-block state gas fraction */
494
+ part: number;
495
+ /** Denominator of the per-key-block state gas fraction */
496
+ whole: number;
497
+ }
498
+ export interface NameAuctionTimeout {
499
+ /** Name length, measured as for the name_claim_fees index */
500
+ length: number;
501
+ /** Initial auction timeout in key blocks as enforced by this node; zero means no auction. May be overridden node-locally, in which case it can disagree with bid_extension. */
502
+ bidTimeout: number;
503
+ /** Auction extension in key blocks after a new bid */
504
+ bidExtension: number;
505
+ }
506
+ export interface ContractVersion {
507
+ /** VM version */
508
+ vmVersion: number;
509
+ /** ABI version */
510
+ abiVersion: number;
511
+ }
512
+ export interface Protocol {
513
+ version: number;
514
+ effectiveAtHeight: number;
515
+ }
458
516
  export interface Status {
459
517
  /** Base58Check encoded tagged hash */
460
518
  genesisKeyBlockHash: string;
@@ -478,10 +536,6 @@ export interface Status {
478
536
  topKeyBlockHash: string;
479
537
  topBlockHeight: number;
480
538
  }
481
- export interface Protocol {
482
- version: number;
483
- effectiveAtHeight: number;
484
- }
485
539
  export interface PeerConnections {
486
540
  inbound: number;
487
541
  outbound: number;
@@ -493,11 +547,11 @@ export interface SyncStatus {
493
547
  estimate: number;
494
548
  }
495
549
  export interface EncodedTx {
496
- /** Base64Check encoded tagged byte array */
550
+ /** Base64Check encoded transaction */
497
551
  tx: string;
498
552
  }
499
553
  export interface PostTxResponse {
500
- /** Base58Check encoded tagged hash */
554
+ /** Base58Check encoded transaction hash */
501
555
  txHash: `th_${string}`;
502
556
  }
503
557
  export interface TxInfoObject {
@@ -511,7 +565,7 @@ export interface GAObject {
511
565
  height: number;
512
566
  gasPrice: bigint;
513
567
  gasUsed: number;
514
- /** Base64Check encoded tagged byte array */
568
+ /** Base64Check encoded contract byte array */
515
569
  returnValue: string;
516
570
  /** The status of the call 'ok | error'. */
517
571
  returnType: GAObjectReturnType;
@@ -533,12 +587,12 @@ export interface ChannelCloseSoloTx {
533
587
  channelId: string;
534
588
  /** Base58Check encoded tagged pubkey */
535
589
  fromId: string;
536
- /** Base64Check encoded tagged byte array */
590
+ /** Base64Check encoded byte array. Accepted on input as a plain 'ba_'-prefixed byte array (see aehttp_dispatch_int.erl's produce_tx(channel_close_solo_tx, ...)), but returned by the node as a 'tx_'-prefixed transaction (see aesc_close_solo_tx.erl) -- no single prefix pattern covers both. */
537
591
  payload: string;
538
592
  ttl?: number;
539
593
  fee: bigint;
540
594
  nonce?: number;
541
- /** Base64Check encoded tagged byte array */
595
+ /** Base64Check encoded proof of inclusion */
542
596
  poi: string;
543
597
  }
544
598
  export interface ChannelCreateTx {
@@ -575,7 +629,7 @@ export interface ChannelForceProgressTx {
575
629
  channelId: string;
576
630
  /** Base58Check encoded tagged pubkey */
577
631
  fromId: string;
578
- /** Base64Check encoded tagged byte array */
632
+ /** Base64Check encoded transaction */
579
633
  payload: string;
580
634
  round: number;
581
635
  update: OffChainUpdateUnion;
@@ -584,7 +638,7 @@ export interface ChannelForceProgressTx {
584
638
  ttl?: number;
585
639
  fee: bigint;
586
640
  nonce?: number;
587
- /** Base64Check encoded tagged byte array */
641
+ /** Base64Check encoded state trees */
588
642
  offchainTrees?: string;
589
643
  }
590
644
  export interface ChannelSetDelegatesTx {
@@ -597,7 +651,7 @@ export interface ChannelSetDelegatesTx {
597
651
  /** Base58Check encoded tagged pubkey */
598
652
  stateHash: string;
599
653
  round: number;
600
- /** Base64Check encoded tagged byte array */
654
+ /** Base64Check encoded byte array. Accepted on input as a plain 'ba_'-prefixed byte array (see aehttp_dispatch_int.erl's produce_tx(channel_set_delegates_tx, ...)), but returned by the node as a 'tx_'-prefixed transaction (see aesc_set_delegates_tx.erl) -- no single prefix pattern covers both. */
601
655
  payload: string;
602
656
  ttl?: number;
603
657
  fee: bigint;
@@ -619,12 +673,12 @@ export interface ChannelSlashTx {
619
673
  channelId: string;
620
674
  /** Base58Check encoded tagged pubkey */
621
675
  fromId: string;
622
- /** Base64Check encoded tagged byte array */
676
+ /** Base64Check encoded byte array. Accepted on input as a plain 'ba_'-prefixed byte array (see aehttp_dispatch_int.erl's produce_tx(channel_slash_tx, ...)), but returned by the node as a 'tx_'-prefixed transaction (see aesc_slash_tx.erl) -- no single prefix pattern covers both. */
623
677
  payload: string;
624
678
  ttl?: number;
625
679
  fee: bigint;
626
680
  nonce?: number;
627
- /** Base64Check encoded tagged byte array */
681
+ /** Base64Check encoded proof of inclusion */
628
682
  poi: string;
629
683
  }
630
684
  export interface ChannelSnapshotSoloTx {
@@ -632,7 +686,7 @@ export interface ChannelSnapshotSoloTx {
632
686
  channelId: string;
633
687
  /** Base58Check encoded tagged pubkey */
634
688
  fromId: string;
635
- /** Base64Check encoded tagged byte array */
689
+ /** Base64Check encoded byte array. Accepted on input as a plain 'ba_'-prefixed byte array (see aehttp_dispatch_int.erl's produce_tx(channel_snapshot_solo_tx, ...)), but returned by the node as a 'tx_'-prefixed transaction (see aesc_snapshot_solo_tx.erl) -- no single prefix pattern covers both. */
636
690
  payload: string;
637
691
  ttl?: number;
638
692
  fee: bigint;
@@ -655,7 +709,7 @@ export interface CheckTxInPoolResponse {
655
709
  status: string;
656
710
  }
657
711
  export interface CommitmentId {
658
- /** Base58Check encoded tagged value */
712
+ /** Base58Check encoded AENS commitment */
659
713
  commitmentId: string;
660
714
  }
661
715
  export interface ContractCallTx {
@@ -670,14 +724,14 @@ export interface ContractCallTx {
670
724
  amount: bigint;
671
725
  gas: number;
672
726
  gasPrice: bigint;
673
- /** Base64Check encoded tagged byte array */
727
+ /** Base64Check encoded contract byte array */
674
728
  callData: string;
675
729
  }
676
730
  export interface ContractCreateTx {
677
731
  /** Base58Check encoded tagged pubkey */
678
732
  ownerId: string;
679
733
  nonce?: number;
680
- /** Base64Check encoded tagged byte array */
734
+ /** Base64Check encoded contract byte array */
681
735
  code: string;
682
736
  vmVersion: number;
683
737
  abiVersion: number;
@@ -687,18 +741,14 @@ export interface ContractCreateTx {
687
741
  gasPrice: bigint;
688
742
  fee: bigint;
689
743
  ttl?: number;
690
- /** Base64Check encoded tagged byte array */
744
+ /** Base64Check encoded contract byte array */
691
745
  callData: string;
692
746
  }
693
- export interface UnsignedTx {
694
- /** Base64Check encoded tagged byte array */
695
- tx: string;
696
- }
697
747
  export interface GAAttachTx {
698
748
  /** Base58Check encoded tagged pubkey */
699
749
  ownerId: string;
700
750
  nonce?: number;
701
- /** Base64Check encoded tagged byte array */
751
+ /** Base64Check encoded contract byte array */
702
752
  code: string;
703
753
  vmVersion: number;
704
754
  abiVersion: number;
@@ -706,7 +756,7 @@ export interface GAAttachTx {
706
756
  gasPrice: bigint;
707
757
  fee: bigint;
708
758
  ttl?: number;
709
- /** Base64Check encoded tagged byte array */
759
+ /** Base64Check encoded contract byte array */
710
760
  callData: string;
711
761
  /** Contract authorization function hash (hex encoded) */
712
762
  authFun: string;
@@ -719,7 +769,7 @@ export interface GAMetaTx {
719
769
  gasPrice: bigint;
720
770
  fee: bigint;
721
771
  ttl?: number;
722
- /** Base64Check encoded tagged byte array */
772
+ /** Base64Check encoded contract byte array */
723
773
  authData: string;
724
774
  tx: SignedTx;
725
775
  }
@@ -734,11 +784,11 @@ export interface NameClaimTx {
734
784
  nonce?: number;
735
785
  }
736
786
  export interface NameHash {
737
- /** Base58Check encoded tagged value */
787
+ /** Base58Check encoded AENS name hash */
738
788
  nameId: string;
739
789
  }
740
790
  export interface NamePreclaimTx {
741
- /** Base58Check encoded tagged value */
791
+ /** Base58Check encoded AENS commitment */
742
792
  commitmentId: string;
743
793
  fee: bigint;
744
794
  ttl?: number;
@@ -747,7 +797,7 @@ export interface NamePreclaimTx {
747
797
  nonce?: number;
748
798
  }
749
799
  export interface NameRevokeTx {
750
- /** Base58Check encoded tagged value */
800
+ /** Base58Check encoded AENS name hash */
751
801
  nameId: string;
752
802
  fee: bigint;
753
803
  ttl?: number;
@@ -756,7 +806,7 @@ export interface NameRevokeTx {
756
806
  nonce?: number;
757
807
  }
758
808
  export interface NameTransferTx {
759
- /** Base58Check encoded tagged value */
809
+ /** Base58Check encoded AENS name hash */
760
810
  nameId: string;
761
811
  /** Base58Check encoded tagged pubkey */
762
812
  recipientId: string;
@@ -767,7 +817,7 @@ export interface NameTransferTx {
767
817
  nonce?: number;
768
818
  }
769
819
  export interface NameUpdateTx {
770
- /** Base58Check encoded tagged value */
820
+ /** Base58Check encoded AENS name hash */
771
821
  nameId: string;
772
822
  nameTtl: number;
773
823
  pointers: NamePointer[];
@@ -829,7 +879,7 @@ export interface OracleRegisterTx {
829
879
  abiVersion?: number;
830
880
  }
831
881
  export interface OracleRespondTx {
832
- /** Base58Check encoded tagged value */
882
+ /** Base58Check encoded oracle query id */
833
883
  queryId: string;
834
884
  response: string;
835
885
  responseTtl: RelativeTTL;
@@ -869,7 +919,7 @@ export interface PubKey {
869
919
  /** Base58Check encoded tagged pubkey */
870
920
  pubKey: string;
871
921
  }
872
- export interface SpendTx {
922
+ export interface SpendTxInput {
873
923
  /** Base58Check encoded tagged pubkey */
874
924
  recipientId: string;
875
925
  amount: bigint;
@@ -878,8 +928,8 @@ export interface SpendTx {
878
928
  /** Base58Check encoded tagged pubkey */
879
929
  senderId: string;
880
930
  nonce?: number;
881
- /** Base64Check encoded tagged byte array */
882
- payload: string;
931
+ /** Base64Check encoded byte array, or a raw string */
932
+ payload: any;
883
933
  }
884
934
  export interface TokenSupply {
885
935
  accounts?: number;
@@ -902,7 +952,7 @@ export interface OffChainCallContract extends OffChainUpdate {
902
952
  amount: bigint;
903
953
  gas: number;
904
954
  gasPrice: bigint;
905
- /** Base64Check encoded tagged byte array */
955
+ /** Base64Check encoded contract byte array */
906
956
  callData: string;
907
957
  }
908
958
  export interface OffChainDeposit extends OffChainUpdate {
@@ -921,7 +971,7 @@ export interface OffChainNewContract extends OffChainUpdate {
921
971
  abiVersion: number;
922
972
  code: ByteCode;
923
973
  deposit: bigint;
924
- /** Base64Check encoded tagged byte array */
974
+ /** Base64Check encoded contract byte array */
925
975
  callData: string;
926
976
  }
927
977
  export interface OffChainTransfer extends OffChainUpdate {
@@ -940,10 +990,276 @@ export interface OffChainWithdrawal extends OffChainUpdate {
940
990
  to: string;
941
991
  amount: bigint;
942
992
  }
943
- export interface CreateContractUnsignedTx extends UnsignedTx {
993
+ export interface NameEntryPointersItem extends NamePointer {
994
+ }
995
+ /** Consensus parameters of one protocol version */
996
+ export interface ProtocolConsensusParameters extends Protocol {
997
+ /** Consensus minimum gas price (aettos per gas) as a decimal string; the minimum transaction fee is the transaction's fee gas multiplied by this */
998
+ minimumGasPrice: bigint;
999
+ /** Gas per serialized transaction byte counted into the minimum fee */
1000
+ gasPerByte: number;
1001
+ /** Gas per byte written to a contract store */
1002
+ storeByteGas: number;
1003
+ /** Base fee gas by transaction type (transactions not executing contract code). Listed for every protocol regardless of when the type was introduced: an entry gives what the fee gas would be, not whether that transaction was accepted at that protocol. */
1004
+ txBaseGas: {
1005
+ [propertyName: string]: number;
1006
+ };
1007
+ /** Base fee gas of contract-executing transaction types, per ABI version. Listed on the same basis as tx_base_gas; allowed_contract_versions is what decides acceptance. */
1008
+ contractTxBaseGas: ContractTxBaseGas[];
1009
+ /** State rent gas fraction per key block by transaction type; state gas = ceil(ttl_key_blocks * part / whole) */
1010
+ stateGasPerBlock: {
1011
+ [propertyName: string]: StateGasPerBlock;
1012
+ };
1013
+ /** Minimum AENS name fee by name length, as decimal strings; element N (1-based) applies to names of length N and the last element also to longer names. All zeroes when name fees are not enforced at this protocol. Length is the label after IDNA/UTS46 conversion to ASCII, excluding the registrar - not the character count. */
1014
+ nameClaimFees: bigint[];
1015
+ /** AENS auction bid timeout and extension in key blocks by name length; a zero timeout means no auction */
1016
+ nameAuctionTimeouts: NameAuctionTimeout[];
1017
+ /** Minimum percentage a new AENS auction bid must exceed the previous bid by */
1018
+ nameClaimBidIncrement: number;
1019
+ /** The longest name that triggers an AENS auction, measured as for the name_claim_fees index */
1020
+ nameMaxLengthStartingAuction: number;
1021
+ /** Maximum name TTL in key blocks for NameUpdateTx */
1022
+ nameClaimMaxExpiration: number;
1023
+ /** Valid AENS name registrars */
1024
+ nameRegistrars: string[];
1025
+ /** Maximum number of pointers in NameUpdateTx; the field is absent when the protocol imposes no limit */
1026
+ namePointersMaxCount?: number;
1027
+ /** Maximum byte size of a pointer key in NameUpdateTx; the field is absent when the protocol imposes no limit */
1028
+ namePointerMaxKeySize?: number;
1029
+ /** Number of key blocks after which an AENS preclaim expires */
1030
+ namePreclaimExpiration: number;
1031
+ /** Minimum number of key blocks between preclaim and claim */
1032
+ nameClaimPreclaimDelta: number;
1033
+ /** Number of key blocks an expired name stays protected before it can be claimed again */
1034
+ nameProtectionPeriod: number;
1035
+ /** Locked fee in aettos, as a decimal string, for a name claim when the name fee is not enforced */
1036
+ nameClaimLockedFee: bigint;
1037
+ /** VM/ABI version combinations valid for ContractCreateTx at this protocol */
1038
+ allowedContractVersions: ContractVersion[];
1039
+ /** ABI versions valid for OracleRegisterTx at this protocol */
1040
+ allowedOracleAbiVersions: number[];
1041
+ }
1042
+ export interface CreateContractUnsignedTx extends EncodedTx {
944
1043
  /** Base58Check encoded tagged pubkey */
945
1044
  contractId: string;
946
1045
  }
1046
+ export interface SpendTx extends SpendTxInput {
1047
+ }
1048
+ /** Defines headers for Node_getAccountByPubkey operation. */
1049
+ export interface NodeGetAccountByPubkeyExceptionHeaders {
1050
+ /** Number of seconds to wait before retrying the request */
1051
+ retryAfter?: number;
1052
+ }
1053
+ /** Defines headers for Node_getAccountByPubkeyAndHash operation. */
1054
+ export interface NodeGetAccountByPubkeyAndHashExceptionHeaders {
1055
+ /** Number of seconds to wait before retrying the request */
1056
+ retryAfter?: number;
1057
+ }
1058
+ /** Defines headers for Node_getAccountByPubkeyAndHeight operation. */
1059
+ export interface NodeGetAccountByPubkeyAndHeightExceptionHeaders {
1060
+ /** Number of seconds to wait before retrying the request */
1061
+ retryAfter?: number;
1062
+ }
1063
+ /** Defines headers for Node_getAccountNextNonce operation. */
1064
+ export interface NodeGetAccountNextNonceExceptionHeaders {
1065
+ /** Number of seconds to wait before retrying the request */
1066
+ retryAfter?: number;
1067
+ }
1068
+ /** Defines headers for Node_getPendingAccountTransactionsByPubkey operation. */
1069
+ export interface NodeGetPendingAccountTransactionsByPubkeyExceptionHeaders {
1070
+ /** Number of seconds to wait before retrying the request */
1071
+ retryAfter?: number;
1072
+ }
1073
+ /** Defines headers for Node_getAuctionEntryByName operation. */
1074
+ export interface NodeGetAuctionEntryByNameExceptionHeaders {
1075
+ /** Number of seconds to wait before retrying the request */
1076
+ retryAfter?: number;
1077
+ }
1078
+ /** Defines headers for Node_getChannelByPubkey operation. */
1079
+ export interface NodeGetChannelByPubkeyExceptionHeaders {
1080
+ /** Number of seconds to wait before retrying the request */
1081
+ retryAfter?: number;
1082
+ }
1083
+ /** Defines headers for Node_getContract operation. */
1084
+ export interface NodeGetContractExceptionHeaders {
1085
+ /** Number of seconds to wait before retrying the request */
1086
+ retryAfter?: number;
1087
+ }
1088
+ /** Defines headers for Node_getContractCode operation. */
1089
+ export interface NodeGetContractCodeExceptionHeaders {
1090
+ /** Number of seconds to wait before retrying the request */
1091
+ retryAfter?: number;
1092
+ }
1093
+ /** Defines headers for Node_getContractPoI operation. */
1094
+ export interface NodeGetContractPoIExceptionHeaders {
1095
+ /** Number of seconds to wait before retrying the request */
1096
+ retryAfter?: number;
1097
+ }
1098
+ /** Defines headers for Node_getCurrency operation. */
1099
+ export interface NodeGetCurrencyExceptionHeaders {
1100
+ /** Number of seconds to wait before retrying the request */
1101
+ retryAfter?: number;
1102
+ }
1103
+ /** Defines headers for Node_protectedDryRunTxs operation. */
1104
+ export interface NodeProtectedDryRunTxsExceptionHeaders {
1105
+ /** Number of seconds to wait before retrying the request */
1106
+ retryAfter?: number;
1107
+ }
1108
+ /** Defines headers for Node_getCurrentGeneration operation. */
1109
+ export interface NodeGetCurrentGenerationExceptionHeaders {
1110
+ /** Number of seconds to wait before retrying the request */
1111
+ retryAfter?: number;
1112
+ }
1113
+ /** Defines headers for Node_getGenerationByHash operation. */
1114
+ export interface NodeGetGenerationByHashExceptionHeaders {
1115
+ /** Number of seconds to wait before retrying the request */
1116
+ retryAfter?: number;
1117
+ }
1118
+ /** Defines headers for Node_getGenerationByHeight operation. */
1119
+ export interface NodeGetGenerationByHeightExceptionHeaders {
1120
+ /** Number of seconds to wait before retrying the request */
1121
+ retryAfter?: number;
1122
+ }
1123
+ /** Defines headers for Node_getTopHeader operation. */
1124
+ export interface NodeGetTopHeaderExceptionHeaders {
1125
+ /** Number of seconds to wait before retrying the request */
1126
+ retryAfter?: number;
1127
+ }
1128
+ /** Defines headers for Node_getPinningTx operation. */
1129
+ export interface NodeGetPinningTxExceptionHeaders {
1130
+ /** Number of seconds to wait before retrying the request */
1131
+ retryAfter?: number;
1132
+ }
1133
+ /** Defines headers for Node_getHyperchainContractPubkeys operation. */
1134
+ export interface NodeGetHyperchainContractPubkeysExceptionHeaders {
1135
+ /** Number of seconds to wait before retrying the request */
1136
+ retryAfter?: number;
1137
+ }
1138
+ /** Defines headers for Node_getCurrentKeyBlock operation. */
1139
+ export interface NodeGetCurrentKeyBlockExceptionHeaders {
1140
+ /** Number of seconds to wait before retrying the request */
1141
+ retryAfter?: number;
1142
+ }
1143
+ /** Defines headers for Node_getCurrentKeyBlockHash operation. */
1144
+ export interface NodeGetCurrentKeyBlockHashExceptionHeaders {
1145
+ /** Number of seconds to wait before retrying the request */
1146
+ retryAfter?: number;
1147
+ }
1148
+ /** Defines headers for Node_getCurrentKeyBlockHeight operation. */
1149
+ export interface NodeGetCurrentKeyBlockHeightExceptionHeaders {
1150
+ /** Number of seconds to wait before retrying the request */
1151
+ retryAfter?: number;
1152
+ }
1153
+ /** Defines headers for Node_getKeyBlockByHash operation. */
1154
+ export interface NodeGetKeyBlockByHashExceptionHeaders {
1155
+ /** Number of seconds to wait before retrying the request */
1156
+ retryAfter?: number;
1157
+ }
1158
+ /** Defines headers for Node_getKeyBlockByHeight operation. */
1159
+ export interface NodeGetKeyBlockByHeightExceptionHeaders {
1160
+ /** Number of seconds to wait before retrying the request */
1161
+ retryAfter?: number;
1162
+ }
1163
+ /** Defines headers for Node_getPendingKeyBlock operation. */
1164
+ export interface NodeGetPendingKeyBlockExceptionHeaders {
1165
+ /** Number of seconds to wait before retrying the request */
1166
+ retryAfter?: number;
1167
+ }
1168
+ /** Defines headers for Node_getMicroBlockHeaderByHash operation. */
1169
+ export interface NodeGetMicroBlockHeaderByHashExceptionHeaders {
1170
+ /** Number of seconds to wait before retrying the request */
1171
+ retryAfter?: number;
1172
+ }
1173
+ /** Defines headers for Node_getMicroBlockTransactionsByHash operation. */
1174
+ export interface NodeGetMicroBlockTransactionsByHashExceptionHeaders {
1175
+ /** Number of seconds to wait before retrying the request */
1176
+ retryAfter?: number;
1177
+ }
1178
+ /** Defines headers for Node_getMicroBlockTransactionsCountByHash operation. */
1179
+ export interface NodeGetMicroBlockTransactionsCountByHashExceptionHeaders {
1180
+ /** Number of seconds to wait before retrying the request */
1181
+ retryAfter?: number;
1182
+ }
1183
+ /** Defines headers for Node_getMicroBlockTransactionByHashAndIndex operation. */
1184
+ export interface NodeGetMicroBlockTransactionByHashAndIndexExceptionHeaders {
1185
+ /** Number of seconds to wait before retrying the request */
1186
+ retryAfter?: number;
1187
+ }
1188
+ /** Defines headers for Node_getNameEntryByName operation. */
1189
+ export interface NodeGetNameEntryByNameExceptionHeaders {
1190
+ /** Number of seconds to wait before retrying the request */
1191
+ retryAfter?: number;
1192
+ }
1193
+ /** Defines headers for Node_getNameEntryByNameHash operation. */
1194
+ export interface NodeGetNameEntryByNameHashExceptionHeaders {
1195
+ /** Number of seconds to wait before retrying the request */
1196
+ retryAfter?: number;
1197
+ }
1198
+ /** Defines headers for Node_getOracleByPubkey operation. */
1199
+ export interface NodeGetOracleByPubkeyExceptionHeaders {
1200
+ /** Number of seconds to wait before retrying the request */
1201
+ retryAfter?: number;
1202
+ }
1203
+ /** Defines headers for Node_getOracleQueriesByPubkey operation. */
1204
+ export interface NodeGetOracleQueriesByPubkeyExceptionHeaders {
1205
+ /** Number of seconds to wait before retrying the request */
1206
+ retryAfter?: number;
1207
+ }
1208
+ /** Defines headers for Node_getOracleQueryByPubkeyAndQueryId operation. */
1209
+ export interface NodeGetOracleQueryByPubkeyAndQueryIdExceptionHeaders {
1210
+ /** Number of seconds to wait before retrying the request */
1211
+ retryAfter?: number;
1212
+ }
1213
+ /** Defines headers for Node_getPeerPubkey operation. */
1214
+ export interface NodeGetPeerPubkeyExceptionHeaders {
1215
+ /** Number of seconds to wait before retrying the request */
1216
+ retryAfter?: number;
1217
+ }
1218
+ /** Defines headers for Node_getRecentGasPrices operation. */
1219
+ export interface NodeGetRecentGasPricesExceptionHeaders {
1220
+ /** Number of seconds to wait before retrying the request */
1221
+ retryAfter?: number;
1222
+ }
1223
+ /** Defines headers for Node_getNodeSettings operation. */
1224
+ export interface NodeGetNodeSettingsExceptionHeaders {
1225
+ /** Number of seconds to wait before retrying the request */
1226
+ retryAfter?: number;
1227
+ }
1228
+ /** Defines headers for Node_getProtocolParameters operation. */
1229
+ export interface NodeGetProtocolParametersExceptionHeaders {
1230
+ /** Number of seconds to wait before retrying the request */
1231
+ retryAfter?: number;
1232
+ }
1233
+ /** Defines headers for Node_getStatus operation. */
1234
+ export interface NodeGetStatusExceptionHeaders {
1235
+ /** Number of seconds to wait before retrying the request */
1236
+ retryAfter?: number;
1237
+ }
1238
+ /** Defines headers for Node_getChainEnds operation. */
1239
+ export interface NodeGetChainEndsExceptionHeaders {
1240
+ /** Number of seconds to wait before retrying the request */
1241
+ retryAfter?: number;
1242
+ }
1243
+ /** Defines headers for Node_getSyncStatus operation. */
1244
+ export interface NodeGetSyncStatusExceptionHeaders {
1245
+ /** Number of seconds to wait before retrying the request */
1246
+ retryAfter?: number;
1247
+ }
1248
+ /** Defines headers for Node_postTransaction operation. */
1249
+ export interface NodePostTransactionExceptionHeaders {
1250
+ /** Number of seconds to wait before retrying the request */
1251
+ retryAfter?: number;
1252
+ }
1253
+ /** Defines headers for Node_getTransactionByHash operation. */
1254
+ export interface NodeGetTransactionByHashExceptionHeaders {
1255
+ /** Number of seconds to wait before retrying the request */
1256
+ retryAfter?: number;
1257
+ }
1258
+ /** Defines headers for Node_getTransactionInfoByHash operation. */
1259
+ export interface NodeGetTransactionInfoByHashExceptionHeaders {
1260
+ /** Number of seconds to wait before retrying the request */
1261
+ retryAfter?: number;
1262
+ }
947
1263
  /** Defines values for AccountKind. */
948
1264
  export type AccountKind = "basic" | "generalized";
949
1265
  /** Defines values for Enum1. */
@@ -1142,6 +1458,16 @@ export interface GetRecentGasPricesOptionalParams extends coreClient.OperationOp
1142
1458
  /** Contains response data for the getRecentGasPrices operation. */
1143
1459
  export type GetRecentGasPricesResponse = GasPricesItem[];
1144
1460
  /** Optional parameters. */
1461
+ export interface GetNodeSettingsOptionalParams extends coreClient.OperationOptions {
1462
+ }
1463
+ /** Contains response data for the getNodeSettings operation. */
1464
+ export type GetNodeSettingsResponse = NodeSettings;
1465
+ /** Optional parameters. */
1466
+ export interface GetProtocolParametersOptionalParams extends coreClient.OperationOptions {
1467
+ }
1468
+ /** Contains response data for the getProtocolParameters operation. */
1469
+ export type GetProtocolParametersResponse = ProtocolParameters;
1470
+ /** Optional parameters. */
1145
1471
  export interface GetStatusOptionalParams extends coreClient.OperationOptions {
1146
1472
  }
1147
1473
  /** Contains response data for the getStatus operation. */