algosdk 3.6.0 → 3.7.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 (153) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/appAccess.js +4 -0
  5. package/dist/cjs/appAccess.js.map +1 -1
  6. package/dist/cjs/client/v2/algod/algod.js +0 -18
  7. package/dist/cjs/client/v2/algod/algod.js.map +1 -1
  8. package/dist/cjs/client/v2/algod/models/types.js +153 -437
  9. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  10. package/dist/cjs/client/v2/indexer/models/types.js +163 -12
  11. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  12. package/dist/cjs/composer.js +4 -6
  13. package/dist/cjs/composer.js.map +1 -1
  14. package/dist/cjs/ed25519-signer.js +76 -0
  15. package/dist/cjs/ed25519-signer.js.map +1 -0
  16. package/dist/cjs/encoding/address.js +61 -1
  17. package/dist/cjs/encoding/address.js.map +1 -1
  18. package/dist/cjs/falcon-signer.js +17 -0
  19. package/dist/cjs/falcon-signer.js.map +1 -0
  20. package/dist/cjs/heartbeat.js +7 -0
  21. package/dist/cjs/heartbeat.js.map +1 -1
  22. package/dist/cjs/logicsig.js +201 -16
  23. package/dist/cjs/logicsig.js.map +1 -1
  24. package/dist/cjs/main.js +32 -63
  25. package/dist/cjs/main.js.map +1 -1
  26. package/dist/cjs/makeTxn.js +11 -2
  27. package/dist/cjs/makeTxn.js.map +1 -1
  28. package/dist/cjs/mnemonic/mnemonic.js +26 -1
  29. package/dist/cjs/mnemonic/mnemonic.js.map +1 -1
  30. package/dist/cjs/multisigSigning.js +78 -1
  31. package/dist/cjs/multisigSigning.js.map +1 -1
  32. package/dist/cjs/pq-signer.js +80 -0
  33. package/dist/cjs/pq-signer.js.map +1 -0
  34. package/dist/cjs/signedTransaction.js +15 -1
  35. package/dist/cjs/signedTransaction.js.map +1 -1
  36. package/dist/cjs/signer.js.map +1 -1
  37. package/dist/cjs/signing.js +94 -7
  38. package/dist/cjs/signing.js.map +1 -1
  39. package/dist/cjs/transaction.js +17 -1
  40. package/dist/cjs/transaction.js.map +1 -1
  41. package/dist/cjs/types/statedelta.js +17 -0
  42. package/dist/cjs/types/statedelta.js.map +1 -1
  43. package/dist/cjs/types/transactions/encoded.js +51 -1
  44. package/dist/cjs/types/transactions/encoded.js.map +1 -1
  45. package/dist/cjs/utils/ed25519-check.js +69 -0
  46. package/dist/cjs/utils/ed25519-check.js.map +1 -0
  47. package/dist/cjs/utils/utils.js +14 -1
  48. package/dist/cjs/utils/utils.js.map +1 -1
  49. package/dist/esm/appAccess.js +4 -0
  50. package/dist/esm/appAccess.js.map +1 -1
  51. package/dist/esm/client/v2/algod/algod.js +0 -18
  52. package/dist/esm/client/v2/algod/algod.js.map +1 -1
  53. package/dist/esm/client/v2/algod/models/types.js +149 -430
  54. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  55. package/dist/esm/client/v2/indexer/models/types.js +161 -11
  56. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  57. package/dist/esm/composer.js +4 -6
  58. package/dist/esm/composer.js.map +1 -1
  59. package/dist/esm/ed25519-signer.js +72 -0
  60. package/dist/esm/ed25519-signer.js.map +1 -0
  61. package/dist/esm/encoding/address.js +58 -0
  62. package/dist/esm/encoding/address.js.map +1 -1
  63. package/dist/esm/falcon-signer.js +13 -0
  64. package/dist/esm/falcon-signer.js.map +1 -0
  65. package/dist/esm/heartbeat.js +8 -1
  66. package/dist/esm/heartbeat.js.map +1 -1
  67. package/dist/esm/logicsig.js +200 -15
  68. package/dist/esm/logicsig.js.map +1 -1
  69. package/dist/esm/main.js +8 -56
  70. package/dist/esm/main.js.map +1 -1
  71. package/dist/esm/makeTxn.js +11 -2
  72. package/dist/esm/makeTxn.js.map +1 -1
  73. package/dist/esm/mnemonic/mnemonic.js +25 -1
  74. package/dist/esm/mnemonic/mnemonic.js.map +1 -1
  75. package/dist/esm/multisigSigning.js +75 -0
  76. package/dist/esm/multisigSigning.js.map +1 -1
  77. package/dist/esm/pq-signer.js +76 -0
  78. package/dist/esm/pq-signer.js.map +1 -0
  79. package/dist/esm/signedTransaction.js +16 -2
  80. package/dist/esm/signedTransaction.js.map +1 -1
  81. package/dist/esm/signer.js.map +1 -1
  82. package/dist/esm/signing.js +91 -8
  83. package/dist/esm/signing.js.map +1 -1
  84. package/dist/esm/transaction.js +17 -1
  85. package/dist/esm/transaction.js.map +1 -1
  86. package/dist/esm/types/statedelta.js +17 -0
  87. package/dist/esm/types/statedelta.js.map +1 -1
  88. package/dist/esm/types/transactions/encoded.js +49 -1
  89. package/dist/esm/types/transactions/encoded.js.map +1 -1
  90. package/dist/esm/utils/ed25519-check.js +65 -0
  91. package/dist/esm/utils/ed25519-check.js.map +1 -0
  92. package/dist/esm/utils/utils.js +12 -0
  93. package/dist/esm/utils/utils.js.map +1 -1
  94. package/dist/types/client/v2/algod/algod.d.ts +0 -16
  95. package/dist/types/client/v2/algod/models/types.d.ts +90 -220
  96. package/dist/types/client/v2/indexer/models/types.d.ts +114 -7
  97. package/dist/types/composer.d.ts +3 -3
  98. package/dist/types/ed25519-signer.d.ts +7 -0
  99. package/dist/types/encoding/address.d.ts +37 -0
  100. package/dist/types/falcon-signer.d.ts +11 -0
  101. package/dist/types/heartbeat.d.ts +2 -0
  102. package/dist/types/logicsig.d.ts +72 -1
  103. package/dist/types/main.d.ts +8 -44
  104. package/dist/types/makeTxn.d.ts +8 -2
  105. package/dist/types/mnemonic/mnemonic.d.ts +13 -0
  106. package/dist/types/multisigSigning.d.ts +49 -0
  107. package/dist/types/pq-signer.d.ts +8 -0
  108. package/dist/types/signedTransaction.d.ts +7 -2
  109. package/dist/types/signer.d.ts +46 -0
  110. package/dist/types/signing.d.ts +45 -0
  111. package/dist/types/transaction.d.ts +10 -0
  112. package/dist/types/types/statedelta.d.ts +18 -0
  113. package/dist/types/types/transactions/base.d.ts +10 -0
  114. package/dist/types/types/transactions/encoded.d.ts +27 -0
  115. package/dist/types/utils/ed25519-check.d.ts +10 -0
  116. package/dist/types/utils/utils.d.ts +1 -0
  117. package/package.json +2 -1
  118. package/src/appAccess.ts +5 -0
  119. package/src/client/v2/algod/algod.ts +0 -19
  120. package/src/client/v2/algod/models/types.ts +324 -790
  121. package/src/client/v2/indexer/models/types.ts +280 -8
  122. package/src/composer.ts +7 -11
  123. package/src/ed25519-signer.ts +125 -0
  124. package/src/encoding/address.ts +80 -0
  125. package/src/falcon-signer.ts +33 -0
  126. package/src/heartbeat.ts +11 -0
  127. package/src/logicsig.ts +258 -16
  128. package/src/main.ts +30 -60
  129. package/src/makeTxn.ts +13 -4
  130. package/src/mnemonic/mnemonic.ts +34 -1
  131. package/src/multisigSigning.ts +111 -0
  132. package/src/pq-signer.ts +123 -0
  133. package/src/signedTransaction.ts +24 -0
  134. package/src/signer.ts +62 -0
  135. package/src/signing.ts +109 -8
  136. package/src/transaction.ts +19 -1
  137. package/src/types/statedelta.ts +34 -0
  138. package/src/types/transactions/base.ts +11 -0
  139. package/src/types/transactions/encoded.ts +88 -0
  140. package/src/utils/ed25519-check.ts +67 -0
  141. package/src/utils/utils.ts +13 -0
  142. package/dist/cjs/client/v2/algod/dryrun.js +0 -34
  143. package/dist/cjs/client/v2/algod/dryrun.js.map +0 -1
  144. package/dist/cjs/dryrun.js +0 -214
  145. package/dist/cjs/dryrun.js.map +0 -1
  146. package/dist/esm/client/v2/algod/dryrun.js +0 -28
  147. package/dist/esm/client/v2/algod/dryrun.js.map +0 -1
  148. package/dist/esm/dryrun.js +0 -208
  149. package/dist/esm/dryrun.js.map +0 -1
  150. package/dist/types/client/v2/algod/dryrun.d.ts +0 -11
  151. package/dist/types/dryrun.d.ts +0 -28
  152. package/src/client/v2/algod/dryrun.ts +0 -38
  153. package/src/dryrun.ts +0 -292
@@ -761,6 +761,14 @@ export declare class ApplicationParams implements Encodable {
761
761
  * (epp) the amount of extra program pages available to this app.
762
762
  */
763
763
  extraProgramPages?: number;
764
+ /**
765
+ * (fba) if true, apps with the same creator may read and write this app's boxes
766
+ */
767
+ familyBoxAccess?: boolean;
768
+ /**
769
+ * (fbr) if true, any app may read this app's boxes
770
+ */
771
+ foreignBoxReads?: boolean;
764
772
  /**
765
773
  * (gs) global state
766
774
  */
@@ -788,17 +796,21 @@ export declare class ApplicationParams implements Encodable {
788
796
  * @param creator - The address that created this application. This is the address where the
789
797
  * parameters and global state for this application can be found.
790
798
  * @param extraProgramPages - (epp) the amount of extra program pages available to this app.
799
+ * @param familyBoxAccess - (fba) if true, apps with the same creator may read and write this app's boxes
800
+ * @param foreignBoxReads - (fbr) if true, any app may read this app's boxes
791
801
  * @param globalState - (gs) global state
792
802
  * @param globalStateSchema - (gsch) global schema
793
803
  * @param localStateSchema - (lsch) local schema
794
804
  * @param sizeSponsor - (ss) the account responsible for extra pages and global state MBR
795
805
  * @param version - (v) the number of updates to the application programs
796
806
  */
797
- constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, sizeSponsor, version, }: {
807
+ constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, familyBoxAccess, foreignBoxReads, globalState, globalStateSchema, localStateSchema, sizeSponsor, version, }: {
798
808
  approvalProgram: string | Uint8Array;
799
809
  clearStateProgram: string | Uint8Array;
800
810
  creator: Address | string;
801
811
  extraProgramPages?: number | bigint;
812
+ familyBoxAccess?: boolean;
813
+ foreignBoxReads?: boolean;
802
814
  globalState?: TealKeyValue[];
803
815
  globalStateSchema?: ApplicationStateSchema;
804
816
  localStateSchema?: ApplicationStateSchema;
@@ -1469,223 +1481,6 @@ export declare class DisassembleResponse implements Encodable {
1469
1481
  toEncodingData(): Map<string, unknown>;
1470
1482
  static fromEncodingData(data: unknown): DisassembleResponse;
1471
1483
  }
1472
- /**
1473
- * Request data type for dryrun endpoint. Given the Transactions and simulated
1474
- * ledger state upload, run TEAL scripts and return debugging information.
1475
- */
1476
- export declare class DryrunRequest implements Encodable {
1477
- private static encodingSchemaValue;
1478
- static get encodingSchema(): Schema;
1479
- accounts: Account[];
1480
- apps: Application[];
1481
- /**
1482
- * LatestTimestamp is available to some TEAL scripts. Defaults to the latest
1483
- * confirmed timestamp this algod is attached to.
1484
- */
1485
- latestTimestamp: number;
1486
- /**
1487
- * ProtocolVersion specifies a specific version string to operate under, otherwise
1488
- * whatever the current protocol of the network this algod is running in.
1489
- */
1490
- protocolVersion: string;
1491
- /**
1492
- * Round is available to some TEAL scripts. Defaults to the current round on the
1493
- * network this algod is attached to.
1494
- */
1495
- round: bigint;
1496
- sources: DryrunSource[];
1497
- txns: SignedTransaction[];
1498
- /**
1499
- * Creates a new `DryrunRequest` object.
1500
- * @param accounts -
1501
- * @param apps -
1502
- * @param latestTimestamp - LatestTimestamp is available to some TEAL scripts. Defaults to the latest
1503
- * confirmed timestamp this algod is attached to.
1504
- * @param protocolVersion - ProtocolVersion specifies a specific version string to operate under, otherwise
1505
- * whatever the current protocol of the network this algod is running in.
1506
- * @param round - Round is available to some TEAL scripts. Defaults to the current round on the
1507
- * network this algod is attached to.
1508
- * @param sources -
1509
- * @param txns -
1510
- */
1511
- constructor({ accounts, apps, latestTimestamp, protocolVersion, round, sources, txns, }: {
1512
- accounts: Account[];
1513
- apps: Application[];
1514
- latestTimestamp: number | bigint;
1515
- protocolVersion: string;
1516
- round: number | bigint;
1517
- sources: DryrunSource[];
1518
- txns: SignedTransaction[];
1519
- });
1520
- getEncodingSchema(): Schema;
1521
- toEncodingData(): Map<string, unknown>;
1522
- static fromEncodingData(data: unknown): DryrunRequest;
1523
- }
1524
- /**
1525
- * DryrunResponse contains per-txn debug information from a dryrun.
1526
- */
1527
- export declare class DryrunResponse implements Encodable {
1528
- private static encodingSchemaValue;
1529
- static get encodingSchema(): Schema;
1530
- error: string;
1531
- /**
1532
- * Protocol version is the protocol version Dryrun was operated under.
1533
- */
1534
- protocolVersion: string;
1535
- txns: DryrunTxnResult[];
1536
- /**
1537
- * Creates a new `DryrunResponse` object.
1538
- * @param error -
1539
- * @param protocolVersion - Protocol version is the protocol version Dryrun was operated under.
1540
- * @param txns -
1541
- */
1542
- constructor({ error, protocolVersion, txns, }: {
1543
- error: string;
1544
- protocolVersion: string;
1545
- txns: DryrunTxnResult[];
1546
- });
1547
- getEncodingSchema(): Schema;
1548
- toEncodingData(): Map<string, unknown>;
1549
- static fromEncodingData(data: unknown): DryrunResponse;
1550
- }
1551
- /**
1552
- * DryrunSource is TEAL source text that gets uploaded, compiled, and inserted into
1553
- * transactions or application state.
1554
- */
1555
- export declare class DryrunSource implements Encodable {
1556
- private static encodingSchemaValue;
1557
- static get encodingSchema(): Schema;
1558
- appIndex: bigint;
1559
- /**
1560
- * FieldName is what kind of sources this is. If lsig then it goes into the
1561
- * transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
1562
- * Approval Program or Clear State Program of application[this.AppIndex].
1563
- */
1564
- fieldName: string;
1565
- source: string;
1566
- txnIndex: number;
1567
- /**
1568
- * Creates a new `DryrunSource` object.
1569
- * @param appIndex -
1570
- * @param fieldName - FieldName is what kind of sources this is. If lsig then it goes into the
1571
- * transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
1572
- * Approval Program or Clear State Program of application[this.AppIndex].
1573
- * @param source -
1574
- * @param txnIndex -
1575
- */
1576
- constructor({ appIndex, fieldName, source, txnIndex, }: {
1577
- appIndex: number | bigint;
1578
- fieldName: string;
1579
- source: string;
1580
- txnIndex: number | bigint;
1581
- });
1582
- getEncodingSchema(): Schema;
1583
- toEncodingData(): Map<string, unknown>;
1584
- static fromEncodingData(data: unknown): DryrunSource;
1585
- }
1586
- /**
1587
- * Stores the TEAL eval step data
1588
- */
1589
- export declare class DryrunState implements Encodable {
1590
- private static encodingSchemaValue;
1591
- static get encodingSchema(): Schema;
1592
- /**
1593
- * Line number
1594
- */
1595
- line: number;
1596
- /**
1597
- * Program counter
1598
- */
1599
- pc: number;
1600
- stack: TealValue[];
1601
- /**
1602
- * Evaluation error if any
1603
- */
1604
- error?: string;
1605
- scratch?: TealValue[];
1606
- /**
1607
- * Creates a new `DryrunState` object.
1608
- * @param line - Line number
1609
- * @param pc - Program counter
1610
- * @param stack -
1611
- * @param error - Evaluation error if any
1612
- * @param scratch -
1613
- */
1614
- constructor({ line, pc, stack, error, scratch, }: {
1615
- line: number | bigint;
1616
- pc: number | bigint;
1617
- stack: TealValue[];
1618
- error?: string;
1619
- scratch?: TealValue[];
1620
- });
1621
- getEncodingSchema(): Schema;
1622
- toEncodingData(): Map<string, unknown>;
1623
- static fromEncodingData(data: unknown): DryrunState;
1624
- }
1625
- /**
1626
- * DryrunTxnResult contains any LogicSig or ApplicationCall program debug
1627
- * information and state updates from a dryrun.
1628
- */
1629
- export declare class DryrunTxnResult implements Encodable {
1630
- private static encodingSchemaValue;
1631
- static get encodingSchema(): Schema;
1632
- /**
1633
- * Disassembled program line by line.
1634
- */
1635
- disassembly: string[];
1636
- appCallMessages?: string[];
1637
- appCallTrace?: DryrunState[];
1638
- /**
1639
- * Budget added during execution of app call transaction.
1640
- */
1641
- budgetAdded?: number;
1642
- /**
1643
- * Budget consumed during execution of app call transaction.
1644
- */
1645
- budgetConsumed?: number;
1646
- /**
1647
- * Application state delta.
1648
- */
1649
- globalDelta?: EvalDeltaKeyValue[];
1650
- localDeltas?: AccountStateDelta[];
1651
- /**
1652
- * Disassembled lsig program line by line.
1653
- */
1654
- logicSigDisassembly?: string[];
1655
- logicSigMessages?: string[];
1656
- logicSigTrace?: DryrunState[];
1657
- logs?: Uint8Array[];
1658
- /**
1659
- * Creates a new `DryrunTxnResult` object.
1660
- * @param disassembly - Disassembled program line by line.
1661
- * @param appCallMessages -
1662
- * @param appCallTrace -
1663
- * @param budgetAdded - Budget added during execution of app call transaction.
1664
- * @param budgetConsumed - Budget consumed during execution of app call transaction.
1665
- * @param globalDelta - Application state delta.
1666
- * @param localDeltas -
1667
- * @param logicSigDisassembly - Disassembled lsig program line by line.
1668
- * @param logicSigMessages -
1669
- * @param logicSigTrace -
1670
- * @param logs -
1671
- */
1672
- constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }: {
1673
- disassembly: string[];
1674
- appCallMessages?: string[];
1675
- appCallTrace?: DryrunState[];
1676
- budgetAdded?: number | bigint;
1677
- budgetConsumed?: number | bigint;
1678
- globalDelta?: EvalDeltaKeyValue[];
1679
- localDeltas?: AccountStateDelta[];
1680
- logicSigDisassembly?: string[];
1681
- logicSigMessages?: string[];
1682
- logicSigTrace?: DryrunState[];
1683
- logs?: Uint8Array[];
1684
- });
1685
- getEncodingSchema(): Schema;
1686
- toEncodingData(): Map<string, unknown>;
1687
- static fromEncodingData(data: unknown): DryrunTxnResult;
1688
- }
1689
1484
  /**
1690
1485
  * An error response with optional data field.
1691
1486
  */
@@ -1845,6 +1640,24 @@ export declare class GetBlockTimeStampOffsetResponse implements Encodable {
1845
1640
  toEncodingData(): Map<string, unknown>;
1846
1641
  static fromEncodingData(data: unknown): GetBlockTimeStampOffsetResponse;
1847
1642
  }
1643
+ /**
1644
+ * Response containing the network peers of the node
1645
+ */
1646
+ export declare class GetPeersResponse implements Encodable {
1647
+ private static encodingSchemaValue;
1648
+ static get encodingSchema(): Schema;
1649
+ peers: PeerStatus[];
1650
+ /**
1651
+ * Creates a new `GetPeersResponse` object.
1652
+ * @param peers -
1653
+ */
1654
+ constructor({ peers }: {
1655
+ peers: PeerStatus[];
1656
+ });
1657
+ getEncodingSchema(): Schema;
1658
+ toEncodingData(): Map<string, unknown>;
1659
+ static fromEncodingData(data: unknown): GetPeersResponse;
1660
+ }
1848
1661
  /**
1849
1662
  * Response containing the ledger's minimum sync round
1850
1663
  */
@@ -2112,6 +1925,39 @@ export declare class NodeStatusResponse implements Encodable {
2112
1925
  toEncodingData(): Map<string, unknown>;
2113
1926
  static fromEncodingData(data: unknown): NodeStatusResponse;
2114
1927
  }
1928
+ /**
1929
+ * The status of a connected peer in the P2P network
1930
+ */
1931
+ export declare class PeerStatus implements Encodable {
1932
+ private static encodingSchemaValue;
1933
+ static get encodingSchema(): Schema;
1934
+ /**
1935
+ * Network address of the peer
1936
+ */
1937
+ networkAddress: string;
1938
+ /**
1939
+ * Connection type
1940
+ */
1941
+ connectionType?: string;
1942
+ /**
1943
+ * Network type
1944
+ */
1945
+ networkType?: string;
1946
+ /**
1947
+ * Creates a new `PeerStatus` object.
1948
+ * @param networkAddress - Network address of the peer
1949
+ * @param connectionType - Connection type
1950
+ * @param networkType - Network type
1951
+ */
1952
+ constructor({ networkAddress, connectionType, networkType, }: {
1953
+ networkAddress: string;
1954
+ connectionType?: string;
1955
+ networkType?: string;
1956
+ });
1957
+ getEncodingSchema(): Schema;
1958
+ toEncodingData(): Map<string, unknown>;
1959
+ static fromEncodingData(data: unknown): PeerStatus;
1960
+ }
2115
1961
  /**
2116
1962
  * Details about a pending transaction. If the transaction was recently confirmed,
2117
1963
  * includes confirmation details like the round and reward details.
@@ -2548,6 +2394,16 @@ export declare class SimulateTransactionGroupResult implements Encodable {
2548
2394
  * happened
2549
2395
  */
2550
2396
  failureMessage?: string;
2397
+ /**
2398
+ * Total fees paid by the transaction group and all of its descendant inner
2399
+ * transaction groups.
2400
+ */
2401
+ groupFeesPaid?: number;
2402
+ /**
2403
+ * Fee usage for the transaction group, including all descendant inner
2404
+ * transactions, in millionths of a basic transaction fee unit.
2405
+ */
2406
+ groupUsage?: number;
2551
2407
  /**
2552
2408
  * These are resources that were accessed by this group that would normally have
2553
2409
  * caused failure, but were allowed in simulation. Depending on where this object
@@ -2571,6 +2427,10 @@ export declare class SimulateTransactionGroupResult implements Encodable {
2571
2427
  * indicate deeper inner transactions.
2572
2428
  * @param failureMessage - If present, indicates that the transaction group failed and specifies why that
2573
2429
  * happened
2430
+ * @param groupFeesPaid - Total fees paid by the transaction group and all of its descendant inner
2431
+ * transaction groups.
2432
+ * @param groupUsage - Fee usage for the transaction group, including all descendant inner
2433
+ * transactions, in millionths of a basic transaction fee unit.
2574
2434
  * @param unnamedResourcesAccessed - These are resources that were accessed by this group that would normally have
2575
2435
  * caused failure, but were allowed in simulation. Depending on where this object
2576
2436
  * is in the response, the unnamed resources it contains may or may not qualify for
@@ -2581,12 +2441,14 @@ export declare class SimulateTransactionGroupResult implements Encodable {
2581
2441
  * transaction of the group; otherwise, resources must be placed in the same
2582
2442
  * transaction which accessed them.
2583
2443
  */
2584
- constructor({ txnResults, appBudgetAdded, appBudgetConsumed, failedAt, failureMessage, unnamedResourcesAccessed, }: {
2444
+ constructor({ txnResults, appBudgetAdded, appBudgetConsumed, failedAt, failureMessage, groupFeesPaid, groupUsage, unnamedResourcesAccessed, }: {
2585
2445
  txnResults: SimulateTransactionResult[];
2586
2446
  appBudgetAdded?: number | bigint;
2587
2447
  appBudgetConsumed?: number | bigint;
2588
2448
  failedAt?: (number | bigint)[];
2589
2449
  failureMessage?: string;
2450
+ groupFeesPaid?: number | bigint;
2451
+ groupUsage?: number | bigint;
2590
2452
  unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed;
2591
2453
  });
2592
2454
  getEncodingSchema(): Schema;
@@ -2614,6 +2476,11 @@ export declare class SimulateTransactionResult implements Encodable {
2614
2476
  * call trace in a recursive way.
2615
2477
  */
2616
2478
  execTrace?: SimulationTransactionExecTrace;
2479
+ /**
2480
+ * Total fees paid by this transaction and all of its descendant inner
2481
+ * transactions.
2482
+ */
2483
+ feesPaid?: number;
2617
2484
  /**
2618
2485
  * The account that needed to sign this transaction when no signature was provided
2619
2486
  * and the provided signer was incorrect.
@@ -2643,6 +2510,8 @@ export declare class SimulateTransactionResult implements Encodable {
2643
2510
  * budged used by inner app calls spawned by this transaction.
2644
2511
  * @param execTrace - The execution trace of calling an app or a logic sig, containing the inner app
2645
2512
  * call trace in a recursive way.
2513
+ * @param feesPaid - Total fees paid by this transaction and all of its descendant inner
2514
+ * transactions.
2646
2515
  * @param fixedSigner - The account that needed to sign this transaction when no signature was provided
2647
2516
  * and the provided signer was incorrect.
2648
2517
  * @param logicSigBudgetConsumed - Budget used during execution of a logic sig transaction.
@@ -2656,10 +2525,11 @@ export declare class SimulateTransactionResult implements Encodable {
2656
2525
  * transaction of the group; otherwise, resources must be placed in the same
2657
2526
  * transaction which accessed them.
2658
2527
  */
2659
- constructor({ txnResult, appBudgetConsumed, execTrace, fixedSigner, logicSigBudgetConsumed, unnamedResourcesAccessed, }: {
2528
+ constructor({ txnResult, appBudgetConsumed, execTrace, feesPaid, fixedSigner, logicSigBudgetConsumed, unnamedResourcesAccessed, }: {
2660
2529
  txnResult: PendingTransactionResponse;
2661
2530
  appBudgetConsumed?: number | bigint;
2662
2531
  execTrace?: SimulationTransactionExecTrace;
2532
+ feesPaid?: number | bigint;
2663
2533
  fixedSigner?: Address | string;
2664
2534
  logicSigBudgetConsumed?: number | bigint;
2665
2535
  unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed;
@@ -154,6 +154,7 @@ export declare class Account implements Encodable {
154
154
  * * sig
155
155
  * * msig
156
156
  * * lsig
157
+ * * pqsig
157
158
  * * or null if unknown
158
159
  */
159
160
  sigType?: string;
@@ -213,6 +214,7 @@ export declare class Account implements Encodable {
213
214
  * * sig
214
215
  * * msig
215
216
  * * lsig
217
+ * * pqsig
216
218
  * * or null if unknown
217
219
  */
218
220
  constructor({ address, amount, amountWithoutPendingRewards, minBalance, pendingRewards, rewards, round, status, totalAppsOptedIn, totalAssetsOptedIn, totalBoxBytes, totalBoxes, totalCreatedApps, totalCreatedAssets, appsLocalState, appsTotalExtraPages, appsTotalSchema, assets, authAddr, closedAtRound, createdApps, createdAssets, createdAtRound, deleted, incentiveEligible, lastHeartbeat, lastProposed, participation, rewardBase, sigType, }: {
@@ -1145,10 +1147,21 @@ export declare class Block implements Encodable {
1145
1147
  * the potential bonus payout for this block.
1146
1148
  */
1147
1149
  bonus?: number;
1150
+ /**
1151
+ * the fee required, beyond the minimum fee, for "normal" transactions in this
1152
+ * block.
1153
+ */
1154
+ congestionTax?: number;
1148
1155
  /**
1149
1156
  * the sum of all fees paid by transactions in this block.
1150
1157
  */
1151
1158
  feesCollected?: number;
1159
+ /**
1160
+ * the degree to which this block is full, based on the number of bytes in the
1161
+ * final block compared to the maximum allowed. Expressed as a fixed-point integer
1162
+ * with 6 digits of precision, so 1,000,000 is a completely full block.
1163
+ */
1164
+ load?: number;
1152
1165
  /**
1153
1166
  * Participation account data that needs to be checked/acted on by the network.
1154
1167
  */
@@ -1218,7 +1231,12 @@ export declare class Block implements Encodable {
1218
1231
  * the default SHA512_256. This commitment can be used on environments where only
1219
1232
  * the SHA256 function exists.
1220
1233
  * @param bonus - the potential bonus payout for this block.
1234
+ * @param congestionTax - the fee required, beyond the minimum fee, for "normal" transactions in this
1235
+ * block.
1221
1236
  * @param feesCollected - the sum of all fees paid by transactions in this block.
1237
+ * @param load - the degree to which this block is full, based on the number of bytes in the
1238
+ * final block compared to the maximum allowed. Expressed as a fixed-point integer
1239
+ * with 6 digits of precision, so 1,000,000 is a completely full block.
1222
1240
  * @param participationUpdates - Participation account data that needs to be checked/acted on by the network.
1223
1241
  * @param previousBlockHash512 - (prev512) Previous block hash, using SHA-512.
1224
1242
  * @param proposer - the proposer of this block.
@@ -1237,7 +1255,7 @@ export declare class Block implements Encodable {
1237
1255
  * @param upgradeState - Fields relating to a protocol upgrade.
1238
1256
  * @param upgradeVote - Fields relating to voting for a protocol upgrade.
1239
1257
  */
1240
- constructor({ genesisHash, genesisId, previousBlockHash, round, seed, timestamp, transactionsRoot, transactionsRootSha256, bonus, feesCollected, participationUpdates, previousBlockHash512, proposer, proposerPayout, rewards, stateProofTracking, transactions, transactionsRootSha512, txnCounter, upgradeState, upgradeVote, }: {
1258
+ constructor({ genesisHash, genesisId, previousBlockHash, round, seed, timestamp, transactionsRoot, transactionsRootSha256, bonus, congestionTax, feesCollected, load, participationUpdates, previousBlockHash512, proposer, proposerPayout, rewards, stateProofTracking, transactions, transactionsRootSha512, txnCounter, upgradeState, upgradeVote, }: {
1241
1259
  genesisHash: string | Uint8Array;
1242
1260
  genesisId: string;
1243
1261
  previousBlockHash: string | Uint8Array;
@@ -1247,7 +1265,9 @@ export declare class Block implements Encodable {
1247
1265
  transactionsRoot: string | Uint8Array;
1248
1266
  transactionsRootSha256: string | Uint8Array;
1249
1267
  bonus?: number | bigint;
1268
+ congestionTax?: number | bigint;
1250
1269
  feesCollected?: number | bigint;
1270
+ load?: number | bigint;
1251
1271
  participationUpdates?: ParticipationUpdates;
1252
1272
  previousBlockHash512?: string | Uint8Array;
1253
1273
  proposer?: Address | string;
@@ -1471,7 +1491,7 @@ export declare class Box implements Encodable {
1471
1491
  static fromEncodingData(data: unknown): Box;
1472
1492
  }
1473
1493
  /**
1474
- * Box descriptor describes an app box without a value.
1494
+ * Box descriptor describes an app box.
1475
1495
  */
1476
1496
  export declare class BoxDescriptor implements Encodable {
1477
1497
  private static encodingSchemaValue;
@@ -1480,12 +1500,20 @@ export declare class BoxDescriptor implements Encodable {
1480
1500
  * Base64 encoded box name
1481
1501
  */
1482
1502
  name: Uint8Array;
1503
+ /**
1504
+ * Base64 encoded box value. Present only when the `values` query parameter is set
1505
+ * to true.
1506
+ */
1507
+ value?: Uint8Array;
1483
1508
  /**
1484
1509
  * Creates a new `BoxDescriptor` object.
1485
1510
  * @param name - Base64 encoded box name
1511
+ * @param value - Base64 encoded box value. Present only when the `values` query parameter is set
1512
+ * to true.
1486
1513
  */
1487
- constructor({ name }: {
1514
+ constructor({ name, value, }: {
1488
1515
  name: string | Uint8Array;
1516
+ value?: string | Uint8Array;
1489
1517
  });
1490
1518
  getEncodingSchema(): Schema;
1491
1519
  toEncodingData(): Map<string, unknown>;
@@ -1536,17 +1564,23 @@ export declare class BoxesResponse implements Encodable {
1536
1564
  * next parameter.
1537
1565
  */
1538
1566
  nextToken?: string;
1567
+ /**
1568
+ * The round for which this information is relevant.
1569
+ */
1570
+ round?: number;
1539
1571
  /**
1540
1572
  * Creates a new `BoxesResponse` object.
1541
1573
  * @param applicationId - (appidx) application index.
1542
1574
  * @param boxes -
1543
1575
  * @param nextToken - Used for pagination, when making another request provide this token with the
1544
1576
  * next parameter.
1577
+ * @param round - The round for which this information is relevant.
1545
1578
  */
1546
- constructor({ applicationId, boxes, nextToken, }: {
1579
+ constructor({ applicationId, boxes, nextToken, round, }: {
1547
1580
  applicationId: number | bigint;
1548
1581
  boxes: BoxDescriptor[];
1549
1582
  nextToken?: string;
1583
+ round?: number | bigint;
1550
1584
  });
1551
1585
  getEncodingSchema(): Schema;
1552
1586
  toEncodingData(): Map<string, unknown>;
@@ -2943,6 +2977,12 @@ export declare class TransactionHeartbeat implements Encodable {
2943
2977
  * (hbvid) HbVoteID must match the HbAddress account's current VoteID.
2944
2978
  */
2945
2979
  hbVoteId: Uint8Array;
2980
+ /**
2981
+ * (hbc) HbChallengeDiscount requests the challenge fee discount, reducing the
2982
+ * required fee by one min fee. It is a request, not an assertion: it is granted
2983
+ * only if HbAddress is actually under challenge.
2984
+ */
2985
+ hbChallengeDiscount?: boolean;
2946
2986
  /**
2947
2987
  * Creates a new `TransactionHeartbeat` object.
2948
2988
  * @param hbAddress - (hbad) HbAddress is the account this txn is proving onlineness for.
@@ -2952,13 +2992,17 @@ export declare class TransactionHeartbeat implements Encodable {
2952
2992
  * @param hbSeed - (hbsd) HbSeed must be the block seed for the this transaction's firstValid
2953
2993
  * block.
2954
2994
  * @param hbVoteId - (hbvid) HbVoteID must match the HbAddress account's current VoteID.
2995
+ * @param hbChallengeDiscount - (hbc) HbChallengeDiscount requests the challenge fee discount, reducing the
2996
+ * required fee by one min fee. It is a request, not an assertion: it is granted
2997
+ * only if HbAddress is actually under challenge.
2955
2998
  */
2956
- constructor({ hbAddress, hbKeyDilution, hbProof, hbSeed, hbVoteId, }: {
2999
+ constructor({ hbAddress, hbKeyDilution, hbProof, hbSeed, hbVoteId, hbChallengeDiscount, }: {
2957
3000
  hbAddress: string;
2958
3001
  hbKeyDilution: number | bigint;
2959
3002
  hbProof: HbProofFields;
2960
3003
  hbSeed: string | Uint8Array;
2961
3004
  hbVoteId: string | Uint8Array;
3005
+ hbChallengeDiscount?: boolean;
2962
3006
  });
2963
3007
  getEncodingSchema(): Schema;
2964
3008
  toEncodingData(): Map<string, unknown>;
@@ -3124,6 +3168,12 @@ export declare class TransactionSignature implements Encodable {
3124
3168
  * crypto/multisig.go : MultisigSig
3125
3169
  */
3126
3170
  multisig?: TransactionSignatureMultisig;
3171
+ /**
3172
+ * structure holding a post-quantum signature.
3173
+ * Definition:
3174
+ * data/transactions/pqsig.go : PQSig
3175
+ */
3176
+ pqsig?: TransactionSignaturePQsig;
3127
3177
  /**
3128
3178
  * (sig) Standard ed25519 signature.
3129
3179
  */
@@ -3136,11 +3186,15 @@ export declare class TransactionSignature implements Encodable {
3136
3186
  * @param multisig - structure holding multiple subsignatures.
3137
3187
  * Definition:
3138
3188
  * crypto/multisig.go : MultisigSig
3189
+ * @param pqsig - structure holding a post-quantum signature.
3190
+ * Definition:
3191
+ * data/transactions/pqsig.go : PQSig
3139
3192
  * @param sig - (sig) Standard ed25519 signature.
3140
3193
  */
3141
- constructor({ logicsig, multisig, sig, }: {
3194
+ constructor({ logicsig, multisig, pqsig, sig, }: {
3142
3195
  logicsig?: TransactionSignatureLogicsig;
3143
3196
  multisig?: TransactionSignatureMultisig;
3197
+ pqsig?: TransactionSignaturePQsig;
3144
3198
  sig?: string | Uint8Array;
3145
3199
  });
3146
3200
  getEncodingSchema(): Schema;
@@ -3176,6 +3230,12 @@ export declare class TransactionSignatureLogicsig implements Encodable {
3176
3230
  * crypto/multisig.go : MultisigSig
3177
3231
  */
3178
3232
  multisigSignature?: TransactionSignatureMultisig;
3233
+ /**
3234
+ * structure holding a post-quantum signature.
3235
+ * Definition:
3236
+ * data/transactions/pqsig.go : PQSig
3237
+ */
3238
+ pqsig?: TransactionSignaturePQsig;
3179
3239
  /**
3180
3240
  * (sig) ed25519 signature.
3181
3241
  */
@@ -3191,13 +3251,17 @@ export declare class TransactionSignatureLogicsig implements Encodable {
3191
3251
  * @param multisigSignature - structure holding multiple subsignatures.
3192
3252
  * Definition:
3193
3253
  * crypto/multisig.go : MultisigSig
3254
+ * @param pqsig - structure holding a post-quantum signature.
3255
+ * Definition:
3256
+ * data/transactions/pqsig.go : PQSig
3194
3257
  * @param signature - (sig) ed25519 signature.
3195
3258
  */
3196
- constructor({ logic, args, logicMultisigSignature, multisigSignature, signature, }: {
3259
+ constructor({ logic, args, logicMultisigSignature, multisigSignature, pqsig, signature, }: {
3197
3260
  logic: string | Uint8Array;
3198
3261
  args?: Uint8Array[];
3199
3262
  logicMultisigSignature?: TransactionSignatureMultisig;
3200
3263
  multisigSignature?: TransactionSignatureMultisig;
3264
+ pqsig?: TransactionSignaturePQsig;
3201
3265
  signature?: string | Uint8Array;
3202
3266
  });
3203
3267
  getEncodingSchema(): Schema;
@@ -3263,6 +3327,49 @@ export declare class TransactionSignatureMultisigSubsignature implements Encodab
3263
3327
  toEncodingData(): Map<string, unknown>;
3264
3328
  static fromEncodingData(data: unknown): TransactionSignatureMultisigSubsignature;
3265
3329
  }
3330
+ /**
3331
+ * structure holding a post-quantum signature.
3332
+ * Definition:
3333
+ * data/transactions/pqsig.go : PQSig
3334
+ */
3335
+ export declare class TransactionSignaturePQsig implements Encodable {
3336
+ private static encodingSchemaValue;
3337
+ static get encodingSchema(): Schema;
3338
+ /**
3339
+ * (pk)
3340
+ */
3341
+ publicKey: Uint8Array;
3342
+ /**
3343
+ * (sch) identifies the internal signature scheme.
3344
+ */
3345
+ scheme: string;
3346
+ /**
3347
+ * (sig)
3348
+ */
3349
+ signature: Uint8Array;
3350
+ /**
3351
+ * (slt) a single byte, added to ensure the hashed address is not an Ed25519 curve
3352
+ * point
3353
+ */
3354
+ salt?: number;
3355
+ /**
3356
+ * Creates a new `TransactionSignaturePQsig` object.
3357
+ * @param publicKey - (pk)
3358
+ * @param scheme - (sch) identifies the internal signature scheme.
3359
+ * @param signature - (sig)
3360
+ * @param salt - (slt) a single byte, added to ensure the hashed address is not an Ed25519 curve
3361
+ * point
3362
+ */
3363
+ constructor({ publicKey, scheme, signature, salt, }: {
3364
+ publicKey: string | Uint8Array;
3365
+ scheme: string;
3366
+ signature: string | Uint8Array;
3367
+ salt?: number | bigint;
3368
+ });
3369
+ getEncodingSchema(): Schema;
3370
+ toEncodingData(): Map<string, unknown>;
3371
+ static fromEncodingData(data: unknown): TransactionSignaturePQsig;
3372
+ }
3266
3373
  /**
3267
3374
  * Fields for a state proof transaction.
3268
3375
  * Definition:
@@ -93,15 +93,15 @@ export declare class AtomicTransactionComposer {
93
93
  approvalProgram?: Uint8Array;
94
94
  /** The clear program for this application call. Only set this if this is an application creation call, or if onComplete is OnApplicationComplete.UpdateApplicationOC */
95
95
  clearProgram?: Uint8Array;
96
- /** The global integer schema size. Only set this if this is an application creation call. */
96
+ /** The global integer schema size. Only set this if this is an application creation call or an OnApplicationComplete.UpdateApplicationOC call. */
97
97
  numGlobalInts?: number;
98
- /** The global byte slice schema size. Only set this if this is an application creation call. */
98
+ /** The global byte slice schema size. Only set this if this is an application creation call or an OnApplicationComplete.UpdateApplicationOC call. */
99
99
  numGlobalByteSlices?: number;
100
100
  /** The local integer schema size. Only set this if this is an application creation call. */
101
101
  numLocalInts?: number;
102
102
  /** The local byte slice schema size. Only set this if this is an application creation call. */
103
103
  numLocalByteSlices?: number;
104
- /** The number of extra pages to allocate for the application's programs. Only set this if this is an application creation call. If omitted, defaults to 0. */
104
+ /** The number of extra pages to allocate for the application's programs. Only set this if this is an application creation call or an OnApplicationComplete.UpdateApplicationOC call. If omitted, defaults to 0. */
105
105
  extraPages?: number;
106
106
  /** Array of Address strings that represent external accounts supplied to this application. If accounts are provided here, the accounts specified in the method args will appear after these. */
107
107
  appAccounts?: Array<string | Address>;