@algorandfoundation/algokit-utils 10.0.0-alpha.7 → 10.0.0-alpha.9

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 (233) hide show
  1. package/_virtual/rolldown_runtime.js +20 -11
  2. package/_virtual/rolldown_runtime.mjs +10 -5
  3. package/algod-client/index.d.ts +2 -2
  4. package/package.json +1 -1
  5. package/packages/abi/src/abi-type.d.ts +1 -1
  6. package/packages/abi/src/abi-type.js +2 -1
  7. package/packages/abi/src/abi-type.js.map +1 -1
  8. package/packages/abi/src/abi-type.mjs +2 -1
  9. package/packages/abi/src/abi-type.mjs.map +1 -1
  10. package/packages/abi/src/arc56-contract.js +1 -0
  11. package/packages/abi/src/arc56-contract.js.map +1 -1
  12. package/packages/abi/src/arc56-contract.mjs +1 -0
  13. package/packages/abi/src/arc56-contract.mjs.map +1 -1
  14. package/packages/algod_client/src/apis/api-service.d.ts +44 -44
  15. package/packages/algod_client/src/apis/api-service.js +153 -153
  16. package/packages/algod_client/src/apis/api-service.js.map +1 -1
  17. package/packages/algod_client/src/apis/api-service.mjs +153 -153
  18. package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
  19. package/packages/algod_client/src/core/api-error.js +3 -1
  20. package/packages/algod_client/src/core/api-error.js.map +1 -1
  21. package/packages/algod_client/src/core/api-error.mjs +3 -1
  22. package/packages/algod_client/src/core/api-error.mjs.map +1 -1
  23. package/packages/algod_client/src/core/model-runtime.js +4 -4
  24. package/packages/algod_client/src/core/model-runtime.js.map +1 -1
  25. package/packages/algod_client/src/core/model-runtime.mjs +6 -6
  26. package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
  27. package/packages/algod_client/src/models/account-participation.js +4 -4
  28. package/packages/algod_client/src/models/account-participation.js.map +1 -1
  29. package/packages/algod_client/src/models/account-participation.mjs +4 -4
  30. package/packages/algod_client/src/models/account-participation.mjs.map +1 -1
  31. package/packages/algod_client/src/models/asset-params.js +2 -1
  32. package/packages/algod_client/src/models/asset-params.js.map +1 -1
  33. package/packages/algod_client/src/models/asset-params.mjs +2 -1
  34. package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
  35. package/packages/algod_client/src/models/block-response.js +1 -2
  36. package/packages/algod_client/src/models/block-response.js.map +1 -1
  37. package/packages/algod_client/src/models/block-response.mjs +2 -3
  38. package/packages/algod_client/src/models/block-response.mjs.map +1 -1
  39. package/packages/algod_client/src/models/block.d.ts +47 -27
  40. package/packages/algod_client/src/models/block.js +173 -97
  41. package/packages/algod_client/src/models/block.js.map +1 -1
  42. package/packages/algod_client/src/models/block.mjs +173 -97
  43. package/packages/algod_client/src/models/block.mjs.map +1 -1
  44. package/packages/algod_client/src/models/ledger-state-delta.js +1 -1
  45. package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
  46. package/packages/algod_client/src/models/ledger-state-delta.mjs +2 -2
  47. package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -1
  48. package/packages/algod_client/src/models/transaction-parameters-response.js +2 -2
  49. package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
  50. package/packages/algod_client/src/models/transaction-parameters-response.mjs +2 -2
  51. package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
  52. package/packages/common/src/codecs/composite/map.js +7 -4
  53. package/packages/common/src/codecs/composite/map.js.map +1 -1
  54. package/packages/common/src/codecs/composite/map.mjs +7 -4
  55. package/packages/common/src/codecs/composite/map.mjs.map +1 -1
  56. package/packages/common/src/codecs/composite/record.js +0 -1
  57. package/packages/common/src/codecs/composite/record.js.map +1 -1
  58. package/packages/common/src/codecs/primitives/address.js +0 -1
  59. package/packages/common/src/codecs/primitives/address.js.map +1 -1
  60. package/packages/common/src/codecs/primitives/bytes.js +0 -1
  61. package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
  62. package/packages/common/src/codecs/primitives/fixed-bytes.js +0 -1
  63. package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
  64. package/packages/common/src/codecs/wire.js +0 -1
  65. package/packages/common/src/codecs/wire.js.map +1 -1
  66. package/packages/common/src/msgpack.js +0 -1
  67. package/packages/common/src/msgpack.js.map +1 -1
  68. package/packages/indexer_client/src/apis/api-service.d.ts +1 -1
  69. package/packages/indexer_client/src/apis/api-service.js +12 -12
  70. package/packages/indexer_client/src/apis/api-service.js.map +1 -1
  71. package/packages/indexer_client/src/apis/api-service.mjs +12 -12
  72. package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
  73. package/packages/indexer_client/src/core/api-error.js +3 -1
  74. package/packages/indexer_client/src/core/api-error.js.map +1 -1
  75. package/packages/indexer_client/src/core/api-error.mjs +3 -1
  76. package/packages/indexer_client/src/core/api-error.mjs.map +1 -1
  77. package/packages/indexer_client/src/core/model-runtime.js +4 -4
  78. package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
  79. package/packages/indexer_client/src/core/model-runtime.mjs +6 -6
  80. package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
  81. package/packages/indexer_client/src/models/account-participation.js +4 -4
  82. package/packages/indexer_client/src/models/account-participation.js.map +1 -1
  83. package/packages/indexer_client/src/models/account-participation.mjs +4 -4
  84. package/packages/indexer_client/src/models/account-participation.mjs.map +1 -1
  85. package/packages/indexer_client/src/models/asset-params.js +2 -1
  86. package/packages/indexer_client/src/models/asset-params.js.map +1 -1
  87. package/packages/indexer_client/src/models/asset-params.mjs +2 -1
  88. package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
  89. package/packages/indexer_client/src/models/block.js +8 -8
  90. package/packages/indexer_client/src/models/block.js.map +1 -1
  91. package/packages/indexer_client/src/models/block.mjs +8 -8
  92. package/packages/indexer_client/src/models/block.mjs.map +1 -1
  93. package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +1 -1
  94. package/packages/indexer_client/src/models/eval-delta-key-value.js +2 -2
  95. package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
  96. package/packages/indexer_client/src/models/eval-delta-key-value.mjs +2 -2
  97. package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
  98. package/packages/indexer_client/src/models/eval-delta.d.ts +1 -1
  99. package/packages/indexer_client/src/models/eval-delta.js +2 -2
  100. package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
  101. package/packages/indexer_client/src/models/eval-delta.mjs +2 -2
  102. package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
  103. package/packages/indexer_client/src/models/hb-proof-fields.js +6 -6
  104. package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
  105. package/packages/indexer_client/src/models/hb-proof-fields.mjs +6 -6
  106. package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
  107. package/packages/indexer_client/src/models/state-proof-verifier.js +2 -2
  108. package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
  109. package/packages/indexer_client/src/models/state-proof-verifier.mjs +2 -2
  110. package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -1
  111. package/packages/indexer_client/src/models/teal-key-value.d.ts +1 -1
  112. package/packages/indexer_client/src/models/teal-key-value.js +2 -2
  113. package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
  114. package/packages/indexer_client/src/models/teal-key-value.mjs +2 -2
  115. package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
  116. package/packages/indexer_client/src/models/transaction-heartbeat.js +2 -1
  117. package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
  118. package/packages/indexer_client/src/models/transaction-heartbeat.mjs +2 -1
  119. package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
  120. package/packages/indexer_client/src/models/transaction-keyreg.js +4 -4
  121. package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
  122. package/packages/indexer_client/src/models/transaction-keyreg.mjs +4 -4
  123. package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
  124. package/packages/indexer_client/src/models/transaction-signature-logicsig.js +2 -1
  125. package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
  126. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +2 -1
  127. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
  128. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +3 -3
  129. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
  130. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +3 -3
  131. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
  132. package/packages/indexer_client/src/models/transaction.js +4 -3
  133. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  134. package/packages/indexer_client/src/models/transaction.mjs +4 -3
  135. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  136. package/packages/kmd_client/src/apis/api-service.d.ts +5 -5
  137. package/packages/kmd_client/src/apis/api-service.js +32 -32
  138. package/packages/kmd_client/src/apis/api-service.js.map +1 -1
  139. package/packages/kmd_client/src/apis/api-service.mjs +32 -32
  140. package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
  141. package/packages/kmd_client/src/core/api-error.js +3 -1
  142. package/packages/kmd_client/src/core/api-error.js.map +1 -1
  143. package/packages/kmd_client/src/core/api-error.mjs +3 -1
  144. package/packages/kmd_client/src/core/api-error.mjs.map +1 -1
  145. package/packages/kmd_client/src/core/model-runtime.js +4 -4
  146. package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
  147. package/packages/kmd_client/src/core/model-runtime.mjs +6 -6
  148. package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
  149. package/packages/sdk/src/encoding/encoding.js +12 -2
  150. package/packages/sdk/src/encoding/encoding.js.map +1 -1
  151. package/packages/sdk/src/encoding/encoding.mjs +12 -1
  152. package/packages/sdk/src/encoding/encoding.mjs.map +1 -1
  153. package/packages/sdk/src/encoding/schema/map.js +0 -2
  154. package/packages/sdk/src/encoding/schema/map.js.map +1 -1
  155. package/packages/transact/src/logicsig.js +3 -3
  156. package/packages/transact/src/logicsig.js.map +1 -1
  157. package/packages/transact/src/logicsig.mjs +3 -3
  158. package/packages/transact/src/logicsig.mjs.map +1 -1
  159. package/packages/transact/src/multisig.js +24 -24
  160. package/packages/transact/src/multisig.js.map +1 -1
  161. package/packages/transact/src/multisig.mjs +24 -24
  162. package/packages/transact/src/multisig.mjs.map +1 -1
  163. package/packages/transact/src/transactions/app-call.d.ts +2 -2
  164. package/packages/transact/src/transactions/app-call.js.map +1 -1
  165. package/packages/transact/src/transactions/app-call.mjs.map +1 -1
  166. package/packages/transact/src/transactions/signed-transaction-meta.js +2 -2
  167. package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
  168. package/packages/transact/src/transactions/signed-transaction-meta.mjs +2 -2
  169. package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
  170. package/packages/transact/src/transactions/signed-transaction.d.ts +2 -2
  171. package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
  172. package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
  173. package/packages/transact/src/transactions/transaction-meta.js +7 -1
  174. package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
  175. package/packages/transact/src/transactions/transaction-meta.mjs +7 -1
  176. package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
  177. package/packages/transact/src/transactions/transaction.js +1 -0
  178. package/packages/transact/src/transactions/transaction.js.map +1 -1
  179. package/packages/transact/src/transactions/transaction.mjs +1 -0
  180. package/packages/transact/src/transactions/transaction.mjs.map +1 -1
  181. package/sdk/index.js +1 -1
  182. package/testing/fixtures/algorand-fixture.d.ts +3 -3
  183. package/testing/fixtures/algorand-fixture.js.map +1 -1
  184. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  185. package/transaction/transaction.js +2 -2
  186. package/transaction/transaction.js.map +1 -1
  187. package/transaction/transaction.mjs +2 -2
  188. package/transaction/transaction.mjs.map +1 -1
  189. package/transactions/app-call.d.ts +2 -1
  190. package/transactions/app-call.js.map +1 -1
  191. package/transactions/app-call.mjs.map +1 -1
  192. package/types/account-manager.js +1 -1
  193. package/types/account-manager.js.map +1 -1
  194. package/types/account-manager.mjs +1 -1
  195. package/types/account-manager.mjs.map +1 -1
  196. package/types/algorand-client-transaction-creator.d.ts +80 -66
  197. package/types/algorand-client-transaction-creator.js +8 -0
  198. package/types/algorand-client-transaction-creator.js.map +1 -1
  199. package/types/algorand-client-transaction-creator.mjs +8 -0
  200. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  201. package/types/algorand-client-transaction-sender.d.ts +80 -66
  202. package/types/algorand-client-transaction-sender.js +8 -1
  203. package/types/algorand-client-transaction-sender.js.map +1 -1
  204. package/types/algorand-client-transaction-sender.mjs +8 -0
  205. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  206. package/types/app-client.d.ts +83 -78
  207. package/types/app-client.js +0 -1
  208. package/types/app-client.js.map +1 -1
  209. package/types/app-deployer.js +1 -1
  210. package/types/app-deployer.js.map +1 -1
  211. package/types/app-deployer.mjs +1 -1
  212. package/types/app-deployer.mjs.map +1 -1
  213. package/types/app-factory.d.ts +42 -39
  214. package/types/app-manager.d.ts +2 -0
  215. package/types/app-manager.js +5 -4
  216. package/types/app-manager.js.map +1 -1
  217. package/types/app-manager.mjs +5 -4
  218. package/types/app-manager.mjs.map +1 -1
  219. package/types/asset-manager.js +1 -1
  220. package/types/asset-manager.js.map +1 -1
  221. package/types/asset-manager.mjs +1 -1
  222. package/types/asset-manager.mjs.map +1 -1
  223. package/types/composer.d.ts +8 -0
  224. package/types/composer.js +11 -4
  225. package/types/composer.js.map +1 -1
  226. package/types/composer.mjs +11 -3
  227. package/types/composer.mjs.map +1 -1
  228. package/types/kmd-account-manager.d.ts +1 -0
  229. package/types/kmd-account-manager.js +21 -10
  230. package/types/kmd-account-manager.js.map +1 -1
  231. package/types/kmd-account-manager.mjs +22 -11
  232. package/types/kmd-account-manager.mjs.map +1 -1
  233. package/types/testing.d.ts +2 -2
@@ -467,6 +467,7 @@ declare class AlgorandClientTransactionSender {
467
467
  * // Max fee doesn't make sense with extraFee AND staticFee
468
468
  * // already specified, but here for completeness
469
469
  * maxFee: (3000).microAlgo(),
470
+ * rejectVersion: 1,
470
471
  * // Signer only needed if you want to provide one,
471
472
  * // generally you'd register it with AlgorandClient
472
473
  * // against the sender and not need to pass it in
@@ -478,8 +479,8 @@ declare class AlgorandClientTransactionSender {
478
479
  * @returns The result of the app create transaction and the transaction that was sent
479
480
  */
480
481
  appCreate: (params: {
481
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
482
482
  sender: SendingAddress;
483
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
483
484
  rekeyTo?: ReadableAddress | undefined;
484
485
  note?: string | Uint8Array | undefined;
485
486
  lease?: string | Uint8Array | undefined;
@@ -489,14 +490,15 @@ declare class AlgorandClientTransactionSender {
489
490
  validityWindow?: number | bigint | undefined;
490
491
  firstValidRound?: bigint | undefined;
491
492
  lastValidRound?: bigint | undefined;
492
- args?: Uint8Array[] | undefined;
493
493
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
494
+ args?: Uint8Array[] | undefined;
494
495
  accountReferences?: ReadableAddress[] | undefined;
495
496
  appReferences?: bigint[] | undefined;
496
497
  assetReferences?: bigint[] | undefined;
497
498
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
498
499
  accessReferences?: ResourceReference[] | undefined;
499
500
  rejectVersion?: number | undefined;
501
+ appId?: 0 | undefined;
500
502
  approvalProgram: string | Uint8Array;
501
503
  clearStateProgram: string | Uint8Array;
502
504
  schema?: {
@@ -540,6 +542,7 @@ declare class AlgorandClientTransactionSender {
540
542
  * // Max fee doesn't make sense with extraFee AND staticFee
541
543
  * // already specified, but here for completeness
542
544
  * maxFee: (3000).microAlgo(),
545
+ * rejectVersion: 1,
543
546
  * // Signer only needed if you want to provide one,
544
547
  * // generally you'd register it with AlgorandClient
545
548
  * // against the sender and not need to pass it in
@@ -605,6 +608,7 @@ declare class AlgorandClientTransactionSender {
605
608
  * // Max fee doesn't make sense with extraFee AND staticFee
606
609
  * // already specified, but here for completeness
607
610
  * maxFee: (3000).microAlgo(),
611
+ * rejectVersion: 1,
608
612
  * // Signer only needed if you want to provide one,
609
613
  * // generally you'd register it with AlgorandClient
610
614
  * // against the sender and not need to pass it in
@@ -659,6 +663,7 @@ declare class AlgorandClientTransactionSender {
659
663
  * // Max fee doesn't make sense with extraFee AND staticFee
660
664
  * // already specified, but here for completeness
661
665
  * maxFee: (3000).microAlgo(),
666
+ * rejectVersion: 1,
662
667
  * // Signer only needed if you want to provide one,
663
668
  * // generally you'd register it with AlgorandClient
664
669
  * // against the sender and not need to pass it in
@@ -735,6 +740,7 @@ declare class AlgorandClientTransactionSender {
735
740
  * // Max fee doesn't make sense with extraFee AND staticFee
736
741
  * // already specified, but here for completeness
737
742
  * maxFee: (3000).microAlgo(),
743
+ * rejectVersion: 1,
738
744
  * // Signer only needed if you want to provide one,
739
745
  * // generally you'd register it with AlgorandClient
740
746
  * // against the sender and not need to pass it in
@@ -746,8 +752,9 @@ declare class AlgorandClientTransactionSender {
746
752
  * @returns The result of the application ABI method create transaction and the transaction that was sent
747
753
  */
748
754
  appCreateMethodCall: (params: {
749
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
755
+ appId?: 0 | undefined;
750
756
  sender: SendingAddress;
757
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
751
758
  rekeyTo?: ReadableAddress | undefined;
752
759
  note?: string | Uint8Array | undefined;
753
760
  lease?: string | Uint8Array | undefined;
@@ -757,9 +764,6 @@ declare class AlgorandClientTransactionSender {
757
764
  validityWindow?: number | bigint | undefined;
758
765
  firstValidRound?: bigint | undefined;
759
766
  lastValidRound?: bigint | undefined;
760
- approvalProgram: string | Uint8Array;
761
- clearStateProgram: string | Uint8Array;
762
- extraProgramPages?: number | undefined;
763
767
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
764
768
  accountReferences?: ReadableAddress[] | undefined;
765
769
  appReferences?: bigint[] | undefined;
@@ -767,14 +771,17 @@ declare class AlgorandClientTransactionSender {
767
771
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
768
772
  accessReferences?: ResourceReference[] | undefined;
769
773
  rejectVersion?: number | undefined;
774
+ approvalProgram: string | Uint8Array;
775
+ clearStateProgram: string | Uint8Array;
770
776
  schema?: {
771
777
  globalInts: number;
772
778
  globalByteSlices: number;
773
779
  localInts: number;
774
780
  localByteSlices: number;
775
781
  } | undefined;
782
+ extraProgramPages?: number | undefined;
776
783
  method: ABIMethod;
777
- args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
784
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
778
785
  sender: SendingAddress;
779
786
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
780
787
  rekeyTo?: ReadableAddress | undefined;
@@ -786,8 +793,7 @@ declare class AlgorandClientTransactionSender {
786
793
  validityWindow?: number | bigint | undefined;
787
794
  firstValidRound?: bigint | undefined;
788
795
  lastValidRound?: bigint | undefined;
789
- appId: bigint;
790
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
796
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
791
797
  args?: Uint8Array[] | undefined;
792
798
  accountReferences?: ReadableAddress[] | undefined;
793
799
  appReferences?: bigint[] | undefined;
@@ -795,11 +801,19 @@ declare class AlgorandClientTransactionSender {
795
801
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
796
802
  accessReferences?: ResourceReference[] | undefined;
797
803
  rejectVersion?: number | undefined;
804
+ appId?: 0 | undefined;
798
805
  approvalProgram: string | Uint8Array;
799
806
  clearStateProgram: string | Uint8Array;
807
+ schema?: {
808
+ globalInts: number;
809
+ globalByteSlices: number;
810
+ localInts: number;
811
+ localByteSlices: number;
812
+ } | undefined;
813
+ extraProgramPages?: number | undefined;
800
814
  }> | AppMethodCall<{
801
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
802
815
  sender: SendingAddress;
816
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
803
817
  rekeyTo?: ReadableAddress | undefined;
804
818
  note?: string | Uint8Array | undefined;
805
819
  lease?: string | Uint8Array | undefined;
@@ -809,8 +823,9 @@ declare class AlgorandClientTransactionSender {
809
823
  validityWindow?: number | bigint | undefined;
810
824
  firstValidRound?: bigint | undefined;
811
825
  lastValidRound?: bigint | undefined;
826
+ appId: bigint;
827
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
812
828
  args?: Uint8Array[] | undefined;
813
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
814
829
  accountReferences?: ReadableAddress[] | undefined;
815
830
  appReferences?: bigint[] | undefined;
816
831
  assetReferences?: bigint[] | undefined;
@@ -819,14 +834,7 @@ declare class AlgorandClientTransactionSender {
819
834
  rejectVersion?: number | undefined;
820
835
  approvalProgram: string | Uint8Array;
821
836
  clearStateProgram: string | Uint8Array;
822
- schema?: {
823
- globalInts: number;
824
- globalByteSlices: number;
825
- localInts: number;
826
- localByteSlices: number;
827
- } | undefined;
828
- extraProgramPages?: number | undefined;
829
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
837
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
830
838
  } & SendParams) => Promise<SendAppCreateTransactionResult>;
831
839
  /**
832
840
  * Update a smart contract via an ABI method.
@@ -873,6 +881,7 @@ declare class AlgorandClientTransactionSender {
873
881
  * // Max fee doesn't make sense with extraFee AND staticFee
874
882
  * // already specified, but here for completeness
875
883
  * maxFee: (3000).microAlgo(),
884
+ * rejectVersion: 1,
876
885
  * // Signer only needed if you want to provide one,
877
886
  * // generally you'd register it with AlgorandClient
878
887
  * // against the sender and not need to pass it in
@@ -884,8 +893,9 @@ declare class AlgorandClientTransactionSender {
884
893
  * @returns The result of the application ABI method update transaction and the transaction that was sent
885
894
  */
886
895
  appUpdateMethodCall: (params: {
887
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
896
+ appId: bigint;
888
897
  sender: SendingAddress;
898
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
889
899
  rekeyTo?: ReadableAddress | undefined;
890
900
  note?: string | Uint8Array | undefined;
891
901
  lease?: string | Uint8Array | undefined;
@@ -895,9 +905,6 @@ declare class AlgorandClientTransactionSender {
895
905
  validityWindow?: number | bigint | undefined;
896
906
  firstValidRound?: bigint | undefined;
897
907
  lastValidRound?: bigint | undefined;
898
- appId: bigint;
899
- approvalProgram: string | Uint8Array;
900
- clearStateProgram: string | Uint8Array;
901
908
  onComplete?: OnApplicationComplete.UpdateApplication | undefined;
902
909
  accountReferences?: ReadableAddress[] | undefined;
903
910
  appReferences?: bigint[] | undefined;
@@ -905,8 +912,10 @@ declare class AlgorandClientTransactionSender {
905
912
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
906
913
  accessReferences?: ResourceReference[] | undefined;
907
914
  rejectVersion?: number | undefined;
915
+ approvalProgram: string | Uint8Array;
916
+ clearStateProgram: string | Uint8Array;
908
917
  method: ABIMethod;
909
- args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
918
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
910
919
  sender: SendingAddress;
911
920
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
912
921
  rekeyTo?: ReadableAddress | undefined;
@@ -918,8 +927,7 @@ declare class AlgorandClientTransactionSender {
918
927
  validityWindow?: number | bigint | undefined;
919
928
  firstValidRound?: bigint | undefined;
920
929
  lastValidRound?: bigint | undefined;
921
- appId: bigint;
922
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
930
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
923
931
  args?: Uint8Array[] | undefined;
924
932
  accountReferences?: ReadableAddress[] | undefined;
925
933
  appReferences?: bigint[] | undefined;
@@ -927,11 +935,19 @@ declare class AlgorandClientTransactionSender {
927
935
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
928
936
  accessReferences?: ResourceReference[] | undefined;
929
937
  rejectVersion?: number | undefined;
938
+ appId?: 0 | undefined;
930
939
  approvalProgram: string | Uint8Array;
931
940
  clearStateProgram: string | Uint8Array;
941
+ schema?: {
942
+ globalInts: number;
943
+ globalByteSlices: number;
944
+ localInts: number;
945
+ localByteSlices: number;
946
+ } | undefined;
947
+ extraProgramPages?: number | undefined;
932
948
  }> | AppMethodCall<{
933
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
934
949
  sender: SendingAddress;
950
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
935
951
  rekeyTo?: ReadableAddress | undefined;
936
952
  note?: string | Uint8Array | undefined;
937
953
  lease?: string | Uint8Array | undefined;
@@ -941,8 +957,9 @@ declare class AlgorandClientTransactionSender {
941
957
  validityWindow?: number | bigint | undefined;
942
958
  firstValidRound?: bigint | undefined;
943
959
  lastValidRound?: bigint | undefined;
960
+ appId: bigint;
961
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
944
962
  args?: Uint8Array[] | undefined;
945
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
946
963
  accountReferences?: ReadableAddress[] | undefined;
947
964
  appReferences?: bigint[] | undefined;
948
965
  assetReferences?: bigint[] | undefined;
@@ -951,14 +968,7 @@ declare class AlgorandClientTransactionSender {
951
968
  rejectVersion?: number | undefined;
952
969
  approvalProgram: string | Uint8Array;
953
970
  clearStateProgram: string | Uint8Array;
954
- schema?: {
955
- globalInts: number;
956
- globalByteSlices: number;
957
- localInts: number;
958
- localByteSlices: number;
959
- } | undefined;
960
- extraProgramPages?: number | undefined;
961
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
971
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
962
972
  } & SendParams) => Promise<SendAppUpdateTransactionResult>;
963
973
  /**
964
974
  * Delete a smart contract via an ABI method.
@@ -1003,6 +1013,7 @@ declare class AlgorandClientTransactionSender {
1003
1013
  * // Max fee doesn't make sense with extraFee AND staticFee
1004
1014
  * // already specified, but here for completeness
1005
1015
  * maxFee: (3000).microAlgo(),
1016
+ * rejectVersion: 1,
1006
1017
  * // Signer only needed if you want to provide one,
1007
1018
  * // generally you'd register it with AlgorandClient
1008
1019
  * // against the sender and not need to pass it in
@@ -1014,8 +1025,9 @@ declare class AlgorandClientTransactionSender {
1014
1025
  * @returns The result of the application ABI method delete transaction and the transaction that was sent
1015
1026
  */
1016
1027
  appDeleteMethodCall: (params: {
1017
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1028
+ appId: bigint;
1018
1029
  sender: SendingAddress;
1030
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1019
1031
  rekeyTo?: ReadableAddress | undefined;
1020
1032
  note?: string | Uint8Array | undefined;
1021
1033
  lease?: string | Uint8Array | undefined;
@@ -1025,7 +1037,6 @@ declare class AlgorandClientTransactionSender {
1025
1037
  validityWindow?: number | bigint | undefined;
1026
1038
  firstValidRound?: bigint | undefined;
1027
1039
  lastValidRound?: bigint | undefined;
1028
- appId: bigint;
1029
1040
  onComplete?: OnApplicationComplete.DeleteApplication | undefined;
1030
1041
  accountReferences?: ReadableAddress[] | undefined;
1031
1042
  appReferences?: bigint[] | undefined;
@@ -1034,7 +1045,7 @@ declare class AlgorandClientTransactionSender {
1034
1045
  accessReferences?: ResourceReference[] | undefined;
1035
1046
  rejectVersion?: number | undefined;
1036
1047
  method: ABIMethod;
1037
- args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
1048
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
1038
1049
  sender: SendingAddress;
1039
1050
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1040
1051
  rekeyTo?: ReadableAddress | undefined;
@@ -1046,8 +1057,7 @@ declare class AlgorandClientTransactionSender {
1046
1057
  validityWindow?: number | bigint | undefined;
1047
1058
  firstValidRound?: bigint | undefined;
1048
1059
  lastValidRound?: bigint | undefined;
1049
- appId: bigint;
1050
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
1060
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
1051
1061
  args?: Uint8Array[] | undefined;
1052
1062
  accountReferences?: ReadableAddress[] | undefined;
1053
1063
  appReferences?: bigint[] | undefined;
@@ -1055,11 +1065,19 @@ declare class AlgorandClientTransactionSender {
1055
1065
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1056
1066
  accessReferences?: ResourceReference[] | undefined;
1057
1067
  rejectVersion?: number | undefined;
1068
+ appId?: 0 | undefined;
1058
1069
  approvalProgram: string | Uint8Array;
1059
1070
  clearStateProgram: string | Uint8Array;
1071
+ schema?: {
1072
+ globalInts: number;
1073
+ globalByteSlices: number;
1074
+ localInts: number;
1075
+ localByteSlices: number;
1076
+ } | undefined;
1077
+ extraProgramPages?: number | undefined;
1060
1078
  }> | AppMethodCall<{
1061
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1062
1079
  sender: SendingAddress;
1080
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1063
1081
  rekeyTo?: ReadableAddress | undefined;
1064
1082
  note?: string | Uint8Array | undefined;
1065
1083
  lease?: string | Uint8Array | undefined;
@@ -1069,8 +1087,9 @@ declare class AlgorandClientTransactionSender {
1069
1087
  validityWindow?: number | bigint | undefined;
1070
1088
  firstValidRound?: bigint | undefined;
1071
1089
  lastValidRound?: bigint | undefined;
1090
+ appId: bigint;
1091
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
1072
1092
  args?: Uint8Array[] | undefined;
1073
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
1074
1093
  accountReferences?: ReadableAddress[] | undefined;
1075
1094
  appReferences?: bigint[] | undefined;
1076
1095
  assetReferences?: bigint[] | undefined;
@@ -1079,14 +1098,7 @@ declare class AlgorandClientTransactionSender {
1079
1098
  rejectVersion?: number | undefined;
1080
1099
  approvalProgram: string | Uint8Array;
1081
1100
  clearStateProgram: string | Uint8Array;
1082
- schema?: {
1083
- globalInts: number;
1084
- globalByteSlices: number;
1085
- localInts: number;
1086
- localByteSlices: number;
1087
- } | undefined;
1088
- extraProgramPages?: number | undefined;
1089
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
1101
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
1090
1102
  } & SendParams) => Promise<SendAppTransactionResult>;
1091
1103
  /**
1092
1104
  * Call a smart contract via an ABI method.
@@ -1131,6 +1143,7 @@ declare class AlgorandClientTransactionSender {
1131
1143
  * // Max fee doesn't make sense with extraFee AND staticFee
1132
1144
  * // already specified, but here for completeness
1133
1145
  * maxFee: (3000).microAlgo(),
1146
+ * rejectVersion: 1,
1134
1147
  * // Signer only needed if you want to provide one,
1135
1148
  * // generally you'd register it with AlgorandClient
1136
1149
  * // against the sender and not need to pass it in
@@ -1142,8 +1155,9 @@ declare class AlgorandClientTransactionSender {
1142
1155
  * @returns The result of the application ABI method call transaction and the transaction that was sent
1143
1156
  */
1144
1157
  appCallMethodCall: (params: {
1145
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1158
+ appId: bigint;
1146
1159
  sender: SendingAddress;
1160
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1147
1161
  rekeyTo?: ReadableAddress | undefined;
1148
1162
  note?: string | Uint8Array | undefined;
1149
1163
  lease?: string | Uint8Array | undefined;
@@ -1153,7 +1167,6 @@ declare class AlgorandClientTransactionSender {
1153
1167
  validityWindow?: number | bigint | undefined;
1154
1168
  firstValidRound?: bigint | undefined;
1155
1169
  lastValidRound?: bigint | undefined;
1156
- appId: bigint;
1157
1170
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
1158
1171
  accountReferences?: ReadableAddress[] | undefined;
1159
1172
  appReferences?: bigint[] | undefined;
@@ -1162,7 +1175,7 @@ declare class AlgorandClientTransactionSender {
1162
1175
  accessReferences?: ResourceReference[] | undefined;
1163
1176
  rejectVersion?: number | undefined;
1164
1177
  method: ABIMethod;
1165
- args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
1178
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
1166
1179
  sender: SendingAddress;
1167
1180
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1168
1181
  rekeyTo?: ReadableAddress | undefined;
@@ -1174,8 +1187,7 @@ declare class AlgorandClientTransactionSender {
1174
1187
  validityWindow?: number | bigint | undefined;
1175
1188
  firstValidRound?: bigint | undefined;
1176
1189
  lastValidRound?: bigint | undefined;
1177
- appId: bigint;
1178
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
1190
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
1179
1191
  args?: Uint8Array[] | undefined;
1180
1192
  accountReferences?: ReadableAddress[] | undefined;
1181
1193
  appReferences?: bigint[] | undefined;
@@ -1183,11 +1195,19 @@ declare class AlgorandClientTransactionSender {
1183
1195
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1184
1196
  accessReferences?: ResourceReference[] | undefined;
1185
1197
  rejectVersion?: number | undefined;
1198
+ appId?: 0 | undefined;
1186
1199
  approvalProgram: string | Uint8Array;
1187
1200
  clearStateProgram: string | Uint8Array;
1201
+ schema?: {
1202
+ globalInts: number;
1203
+ globalByteSlices: number;
1204
+ localInts: number;
1205
+ localByteSlices: number;
1206
+ } | undefined;
1207
+ extraProgramPages?: number | undefined;
1188
1208
  }> | AppMethodCall<{
1189
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1190
1209
  sender: SendingAddress;
1210
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1191
1211
  rekeyTo?: ReadableAddress | undefined;
1192
1212
  note?: string | Uint8Array | undefined;
1193
1213
  lease?: string | Uint8Array | undefined;
@@ -1197,8 +1217,9 @@ declare class AlgorandClientTransactionSender {
1197
1217
  validityWindow?: number | bigint | undefined;
1198
1218
  firstValidRound?: bigint | undefined;
1199
1219
  lastValidRound?: bigint | undefined;
1220
+ appId: bigint;
1221
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
1200
1222
  args?: Uint8Array[] | undefined;
1201
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
1202
1223
  accountReferences?: ReadableAddress[] | undefined;
1203
1224
  appReferences?: bigint[] | undefined;
1204
1225
  assetReferences?: bigint[] | undefined;
@@ -1207,14 +1228,7 @@ declare class AlgorandClientTransactionSender {
1207
1228
  rejectVersion?: number | undefined;
1208
1229
  approvalProgram: string | Uint8Array;
1209
1230
  clearStateProgram: string | Uint8Array;
1210
- schema?: {
1211
- globalInts: number;
1212
- globalByteSlices: number;
1213
- localInts: number;
1214
- localByteSlices: number;
1215
- } | undefined;
1216
- extraProgramPages?: number | undefined;
1217
- }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
1231
+ }> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
1218
1232
  } & SendParams) => Promise<SendAppTransactionResult>;
1219
1233
  /**
1220
1234
  * Register an online key.
@@ -4,7 +4,6 @@ const require_config = require('../config.js');
4
4
  const require_util = require('../util.js');
5
5
  const require_app_manager = require('./app-manager.js');
6
6
  let buffer = require("buffer");
7
- buffer = require_rolldown_runtime.__toESM(buffer);
8
7
 
9
8
  //#region src/types/algorand-client-transaction-sender.ts
10
9
  const getMethodCallForLog = ({ method, args }) => {
@@ -480,6 +479,7 @@ var AlgorandClientTransactionSender = class {
480
479
  * // Max fee doesn't make sense with extraFee AND staticFee
481
480
  * // already specified, but here for completeness
482
481
  * maxFee: (3000).microAlgo(),
482
+ * rejectVersion: 1,
483
483
  * // Signer only needed if you want to provide one,
484
484
  * // generally you'd register it with AlgorandClient
485
485
  * // against the sender and not need to pass it in
@@ -524,6 +524,7 @@ var AlgorandClientTransactionSender = class {
524
524
  * // Max fee doesn't make sense with extraFee AND staticFee
525
525
  * // already specified, but here for completeness
526
526
  * maxFee: (3000).microAlgo(),
527
+ * rejectVersion: 1,
527
528
  * // Signer only needed if you want to provide one,
528
529
  * // generally you'd register it with AlgorandClient
529
530
  * // against the sender and not need to pass it in
@@ -566,6 +567,7 @@ var AlgorandClientTransactionSender = class {
566
567
  * // Max fee doesn't make sense with extraFee AND staticFee
567
568
  * // already specified, but here for completeness
568
569
  * maxFee: (3000).microAlgo(),
570
+ * rejectVersion: 1,
569
571
  * // Signer only needed if you want to provide one,
570
572
  * // generally you'd register it with AlgorandClient
571
573
  * // against the sender and not need to pass it in
@@ -608,6 +610,7 @@ var AlgorandClientTransactionSender = class {
608
610
  * // Max fee doesn't make sense with extraFee AND staticFee
609
611
  * // already specified, but here for completeness
610
612
  * maxFee: (3000).microAlgo(),
613
+ * rejectVersion: 1,
611
614
  * // Signer only needed if you want to provide one,
612
615
  * // generally you'd register it with AlgorandClient
613
616
  * // against the sender and not need to pass it in
@@ -672,6 +675,7 @@ var AlgorandClientTransactionSender = class {
672
675
  * // Max fee doesn't make sense with extraFee AND staticFee
673
676
  * // already specified, but here for completeness
674
677
  * maxFee: (3000).microAlgo(),
678
+ * rejectVersion: 1,
675
679
  * // Signer only needed if you want to provide one,
676
680
  * // generally you'd register it with AlgorandClient
677
681
  * // against the sender and not need to pass it in
@@ -728,6 +732,7 @@ var AlgorandClientTransactionSender = class {
728
732
  * // Max fee doesn't make sense with extraFee AND staticFee
729
733
  * // already specified, but here for completeness
730
734
  * maxFee: (3000).microAlgo(),
735
+ * rejectVersion: 1,
731
736
  * // Signer only needed if you want to provide one,
732
737
  * // generally you'd register it with AlgorandClient
733
738
  * // against the sender and not need to pass it in
@@ -782,6 +787,7 @@ var AlgorandClientTransactionSender = class {
782
787
  * // Max fee doesn't make sense with extraFee AND staticFee
783
788
  * // already specified, but here for completeness
784
789
  * maxFee: (3000).microAlgo(),
790
+ * rejectVersion: 1,
785
791
  * // Signer only needed if you want to provide one,
786
792
  * // generally you'd register it with AlgorandClient
787
793
  * // against the sender and not need to pass it in
@@ -836,6 +842,7 @@ var AlgorandClientTransactionSender = class {
836
842
  * // Max fee doesn't make sense with extraFee AND staticFee
837
843
  * // already specified, but here for completeness
838
844
  * maxFee: (3000).microAlgo(),
845
+ * rejectVersion: 1,
839
846
  * // Signer only needed if you want to provide one,
840
847
  * // generally you'd register it with AlgorandClient
841
848
  * // against the sender and not need to pass it in