algosdk 1.24.1 → 2.1.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 (222) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.LICENSE.txt +0 -18
  4. package/dist/browser/algosdk.min.js.map +1 -1
  5. package/dist/cjs/abi/abi_type.js +6 -5
  6. package/dist/cjs/abi/abi_type.js.map +1 -1
  7. package/dist/cjs/bid.js +6 -5
  8. package/dist/cjs/bid.js.map +1 -1
  9. package/dist/cjs/client/client.js +4 -3
  10. package/dist/cjs/client/client.js.map +1 -1
  11. package/dist/cjs/client/kmd.js +12 -11
  12. package/dist/cjs/client/kmd.js.map +1 -1
  13. package/dist/cjs/client/urlTokenBaseHTTPClient.js +2 -1
  14. package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -1
  15. package/dist/cjs/client/v2/algod/algod.js +17 -1
  16. package/dist/cjs/client/v2/algod/algod.js.map +1 -1
  17. package/dist/cjs/client/v2/algod/compile.js +2 -1
  18. package/dist/cjs/client/v2/algod/compile.js.map +1 -1
  19. package/dist/cjs/client/v2/algod/disassemble.js +46 -0
  20. package/dist/cjs/client/v2/algod/disassemble.js.map +1 -0
  21. package/dist/cjs/client/v2/algod/dryrun.js +2 -1
  22. package/dist/cjs/client/v2/algod/dryrun.js.map +1 -1
  23. package/dist/cjs/client/v2/algod/getApplicationBoxByName.js +2 -1
  24. package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -1
  25. package/dist/cjs/client/v2/algod/models/types.js +182 -143
  26. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  27. package/dist/cjs/client/v2/algod/sendRawTransaction.js +2 -1
  28. package/dist/cjs/client/v2/algod/sendRawTransaction.js.map +1 -1
  29. package/dist/cjs/client/v2/basemodel.js +3 -2
  30. package/dist/cjs/client/v2/basemodel.js.map +1 -1
  31. package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js +2 -1
  32. package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  33. package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js +2 -1
  34. package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
  35. package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +0 -7
  36. package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  37. package/dist/cjs/client/v2/indexer/models/types.js +39 -38
  38. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  39. package/dist/cjs/composer.js +7 -6
  40. package/dist/cjs/composer.js.map +1 -1
  41. package/dist/cjs/dryrun.js +22 -12
  42. package/dist/cjs/dryrun.js.map +1 -1
  43. package/dist/cjs/encoding/address.js +2 -1
  44. package/dist/cjs/encoding/address.js.map +1 -1
  45. package/dist/cjs/encoding/bigint.js +2 -1
  46. package/dist/cjs/encoding/bigint.js.map +1 -1
  47. package/dist/cjs/encoding/uint64.js +14 -8
  48. package/dist/cjs/encoding/uint64.js.map +1 -1
  49. package/dist/cjs/group.js +6 -5
  50. package/dist/cjs/group.js.map +1 -1
  51. package/dist/cjs/logicsig.js +24 -21
  52. package/dist/cjs/logicsig.js.map +1 -1
  53. package/dist/cjs/main.js +8 -9
  54. package/dist/cjs/main.js.map +1 -1
  55. package/dist/cjs/makeTxn.js +1 -193
  56. package/dist/cjs/makeTxn.js.map +1 -1
  57. package/dist/cjs/multisig.js +6 -5
  58. package/dist/cjs/multisig.js.map +1 -1
  59. package/dist/cjs/transaction.js +64 -63
  60. package/dist/cjs/transaction.js.map +1 -1
  61. package/dist/cjs/types/transactions/encoded.js +0 -3
  62. package/dist/cjs/types/transactions/encoded.js.map +1 -1
  63. package/dist/cjs/utils/utils.js +5 -1
  64. package/dist/cjs/utils/utils.js.map +1 -1
  65. package/dist/esm/abi/abi_type.js +1 -0
  66. package/dist/esm/abi/abi_type.js.map +1 -1
  67. package/dist/esm/bid.js +1 -0
  68. package/dist/esm/bid.js.map +1 -1
  69. package/dist/esm/client/client.js +1 -0
  70. package/dist/esm/client/client.js.map +1 -1
  71. package/dist/esm/client/kmd.js +1 -0
  72. package/dist/esm/client/kmd.js.map +1 -1
  73. package/dist/esm/client/urlTokenBaseHTTPClient.js +1 -0
  74. package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -1
  75. package/dist/esm/client/v2/algod/algod.js +17 -1
  76. package/dist/esm/client/v2/algod/algod.js.map +1 -1
  77. package/dist/esm/client/v2/algod/compile.js +1 -0
  78. package/dist/esm/client/v2/algod/compile.js.map +1 -1
  79. package/dist/esm/client/v2/algod/disassemble.js +38 -0
  80. package/dist/esm/client/v2/algod/disassemble.js.map +1 -0
  81. package/dist/esm/client/v2/algod/dryrun.js +1 -0
  82. package/dist/esm/client/v2/algod/dryrun.js.map +1 -1
  83. package/dist/esm/client/v2/algod/getApplicationBoxByName.js +1 -0
  84. package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -1
  85. package/dist/esm/client/v2/algod/models/types.js +161 -120
  86. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  87. package/dist/esm/client/v2/algod/sendRawTransaction.js +1 -0
  88. package/dist/esm/client/v2/algod/sendRawTransaction.js.map +1 -1
  89. package/dist/esm/client/v2/basemodel.js +1 -0
  90. package/dist/esm/client/v2/basemodel.js.map +1 -1
  91. package/dist/esm/client/v2/indexer/lookupAccountTransactions.js +1 -0
  92. package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  93. package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js +1 -0
  94. package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
  95. package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +0 -7
  96. package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  97. package/dist/esm/client/v2/indexer/models/types.js +1 -0
  98. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  99. package/dist/esm/composer.js +5 -4
  100. package/dist/esm/composer.js.map +1 -1
  101. package/dist/esm/dryrun.js +17 -7
  102. package/dist/esm/dryrun.js.map +1 -1
  103. package/dist/esm/encoding/address.js +1 -0
  104. package/dist/esm/encoding/address.js.map +1 -1
  105. package/dist/esm/encoding/bigint.js +1 -0
  106. package/dist/esm/encoding/bigint.js.map +1 -1
  107. package/dist/esm/encoding/uint64.js +14 -8
  108. package/dist/esm/encoding/uint64.js.map +1 -1
  109. package/dist/esm/group.js +1 -0
  110. package/dist/esm/group.js.map +1 -1
  111. package/dist/esm/logicsig.js +15 -12
  112. package/dist/esm/logicsig.js.map +1 -1
  113. package/dist/esm/main.js +2 -4
  114. package/dist/esm/main.js.map +1 -1
  115. package/dist/esm/makeTxn.js +0 -185
  116. package/dist/esm/makeTxn.js.map +1 -1
  117. package/dist/esm/multisig.js +1 -0
  118. package/dist/esm/multisig.js.map +1 -1
  119. package/dist/esm/transaction.js +1 -0
  120. package/dist/esm/transaction.js.map +1 -1
  121. package/dist/esm/types/transactions/encoded.js +0 -3
  122. package/dist/esm/types/transactions/encoded.js.map +1 -1
  123. package/dist/esm/utils/utils.js +5 -1
  124. package/dist/esm/utils/utils.js.map +1 -1
  125. package/dist/types/client/v2/algod/algod.d.ts +15 -1
  126. package/dist/types/client/v2/algod/disassemble.d.ts +20 -0
  127. package/dist/types/client/v2/algod/models/types.d.ts +122 -67
  128. package/dist/types/client/v2/basemodel.d.ts +0 -3
  129. package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +0 -4
  130. package/dist/types/composer.d.ts +7 -1
  131. package/dist/types/logicsig.d.ts +10 -10
  132. package/dist/types/main.d.ts +1 -3
  133. package/dist/types/makeTxn.d.ts +1 -147
  134. package/dist/types/types/transactions/encoded.d.ts +1 -16
  135. package/package.json +2 -3
  136. package/src/abi/abi_type.ts +1 -0
  137. package/src/bid.ts +1 -0
  138. package/src/client/client.ts +1 -0
  139. package/src/client/kmd.ts +1 -0
  140. package/src/client/urlTokenBaseHTTPClient.ts +1 -0
  141. package/src/client/v2/algod/algod.ts +19 -2
  142. package/src/client/v2/algod/compile.ts +1 -0
  143. package/src/client/v2/algod/disassemble.ts +46 -0
  144. package/src/client/v2/algod/dryrun.ts +1 -0
  145. package/src/client/v2/algod/getApplicationBoxByName.ts +1 -0
  146. package/src/client/v2/algod/models/types.ts +319 -249
  147. package/src/client/v2/algod/sendRawTransaction.ts +1 -0
  148. package/src/client/v2/basemodel.ts +2 -0
  149. package/src/client/v2/indexer/lookupAccountTransactions.ts +1 -0
  150. package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +1 -0
  151. package/src/client/v2/indexer/lookupAssetTransactions.ts +0 -8
  152. package/src/client/v2/indexer/models/types.ts +1 -0
  153. package/src/composer.ts +16 -3
  154. package/src/dryrun.ts +14 -13
  155. package/src/encoding/address.ts +1 -0
  156. package/src/encoding/bigint.ts +2 -0
  157. package/src/encoding/uint64.ts +16 -10
  158. package/src/group.ts +1 -0
  159. package/src/logicsig.ts +26 -13
  160. package/src/main.ts +3 -5
  161. package/src/makeTxn.ts +0 -421
  162. package/src/multisig.ts +1 -0
  163. package/src/transaction.ts +1 -0
  164. package/src/types/transactions/encoded.ts +2 -17
  165. package/src/utils/utils.ts +3 -0
  166. package/dist/cjs/client/algod.js +0 -295
  167. package/dist/cjs/client/algod.js.map +0 -1
  168. package/dist/cjs/logic/langspec.json +0 -2014
  169. package/dist/cjs/logic/logic.js +0 -262
  170. package/dist/cjs/logic/logic.js.map +0 -1
  171. package/dist/cjs/logicTemplates/dynamicfee.js +0 -192
  172. package/dist/cjs/logicTemplates/dynamicfee.js.map +0 -1
  173. package/dist/cjs/logicTemplates/htlc.js +0 -145
  174. package/dist/cjs/logicTemplates/htlc.js.map +0 -1
  175. package/dist/cjs/logicTemplates/index.js +0 -19
  176. package/dist/cjs/logicTemplates/index.js.map +0 -1
  177. package/dist/cjs/logicTemplates/limitorder.js +0 -167
  178. package/dist/cjs/logicTemplates/limitorder.js.map +0 -1
  179. package/dist/cjs/logicTemplates/periodicpayment.js +0 -163
  180. package/dist/cjs/logicTemplates/periodicpayment.js.map +0 -1
  181. package/dist/cjs/logicTemplates/split.js +0 -154
  182. package/dist/cjs/logicTemplates/split.js.map +0 -1
  183. package/dist/cjs/logicTemplates/templates.js +0 -67
  184. package/dist/cjs/logicTemplates/templates.js.map +0 -1
  185. package/dist/esm/client/algod.js +0 -295
  186. package/dist/esm/client/algod.js.map +0 -1
  187. package/dist/esm/logic/langspec.json +0 -2014
  188. package/dist/esm/logic/logic.js +0 -249
  189. package/dist/esm/logic/logic.js.map +0 -1
  190. package/dist/esm/logicTemplates/dynamicfee.js +0 -192
  191. package/dist/esm/logicTemplates/dynamicfee.js.map +0 -1
  192. package/dist/esm/logicTemplates/htlc.js +0 -145
  193. package/dist/esm/logicTemplates/htlc.js.map +0 -1
  194. package/dist/esm/logicTemplates/index.js +0 -19
  195. package/dist/esm/logicTemplates/index.js.map +0 -1
  196. package/dist/esm/logicTemplates/limitorder.js +0 -167
  197. package/dist/esm/logicTemplates/limitorder.js.map +0 -1
  198. package/dist/esm/logicTemplates/periodicpayment.js +0 -163
  199. package/dist/esm/logicTemplates/periodicpayment.js.map +0 -1
  200. package/dist/esm/logicTemplates/split.js +0 -154
  201. package/dist/esm/logicTemplates/split.js.map +0 -1
  202. package/dist/esm/logicTemplates/templates.js +0 -67
  203. package/dist/esm/logicTemplates/templates.js.map +0 -1
  204. package/dist/types/client/algod.d.ts +0 -162
  205. package/dist/types/logic/logic.d.ts +0 -45
  206. package/dist/types/logicTemplates/dynamicfee.d.ts +0 -59
  207. package/dist/types/logicTemplates/htlc.d.ts +0 -51
  208. package/dist/types/logicTemplates/index.d.ts +0 -16
  209. package/dist/types/logicTemplates/limitorder.d.ts +0 -70
  210. package/dist/types/logicTemplates/periodicpayment.d.ts +0 -58
  211. package/dist/types/logicTemplates/split.d.ts +0 -57
  212. package/dist/types/logicTemplates/templates.d.ts +0 -6
  213. package/src/client/algod.js +0 -365
  214. package/src/logic/langspec.json +0 -2014
  215. package/src/logic/logic.ts +0 -316
  216. package/src/logicTemplates/dynamicfee.js +0 -219
  217. package/src/logicTemplates/htlc.js +0 -165
  218. package/src/logicTemplates/index.js +0 -20
  219. package/src/logicTemplates/limitorder.js +0 -227
  220. package/src/logicTemplates/periodicpayment.js +0 -208
  221. package/src/logicTemplates/split.js +0 -208
  222. package/src/logicTemplates/templates.js +0 -78
@@ -240,7 +240,11 @@ export declare class AccountApplicationResponse extends BaseModel {
240
240
  * global data.
241
241
  * The raw account uses `AppParams` for this type.
242
242
  */
243
- constructor(round: number | bigint, appLocalState?: ApplicationLocalState, createdApp?: ApplicationParams);
243
+ constructor({ round, appLocalState, createdApp, }: {
244
+ round: number | bigint;
245
+ appLocalState?: ApplicationLocalState;
246
+ createdApp?: ApplicationParams;
247
+ });
244
248
  static from_obj_for_encoding(data: Record<string, any>): AccountApplicationResponse;
245
249
  }
246
250
  /**
@@ -271,7 +275,11 @@ export declare class AccountAssetResponse extends BaseModel {
271
275
  * @param createdAsset - (apar) parameters of the asset created by this account.
272
276
  * The raw account uses `AssetParams` for this type.
273
277
  */
274
- constructor(round: number | bigint, assetHolding?: AssetHolding, createdAsset?: AssetParams);
278
+ constructor({ round, assetHolding, createdAsset, }: {
279
+ round: number | bigint;
280
+ assetHolding?: AssetHolding;
281
+ createdAsset?: AssetParams;
282
+ });
275
283
  static from_obj_for_encoding(data: Record<string, any>): AccountAssetResponse;
276
284
  }
277
285
  /**
@@ -338,7 +346,10 @@ export declare class AccountStateDelta extends BaseModel {
338
346
  * @param address -
339
347
  * @param delta - Application state delta.
340
348
  */
341
- constructor(address: string, delta: EvalDeltaKeyValue[]);
349
+ constructor({ address, delta, }: {
350
+ address: string;
351
+ delta: EvalDeltaKeyValue[];
352
+ });
342
353
  static from_obj_for_encoding(data: Record<string, any>): AccountStateDelta;
343
354
  }
344
355
  /**
@@ -358,7 +369,10 @@ export declare class Application extends BaseModel {
358
369
  * @param id - (appidx) application index.
359
370
  * @param params - (appparams) application parameters.
360
371
  */
361
- constructor(id: number | bigint, params: ApplicationParams);
372
+ constructor({ id, params, }: {
373
+ id: number | bigint;
374
+ params: ApplicationParams;
375
+ });
362
376
  static from_obj_for_encoding(data: Record<string, any>): Application;
363
377
  }
364
378
  /**
@@ -383,7 +397,11 @@ export declare class ApplicationLocalState extends BaseModel {
383
397
  * @param schema - (hsch) schema.
384
398
  * @param keyValue - (tkv) storage.
385
399
  */
386
- constructor(id: number | bigint, schema: ApplicationStateSchema, keyValue?: TealKeyValue[]);
400
+ constructor({ id, schema, keyValue, }: {
401
+ id: number | bigint;
402
+ schema: ApplicationStateSchema;
403
+ keyValue?: TealKeyValue[];
404
+ });
387
405
  static from_obj_for_encoding(data: Record<string, any>): ApplicationLocalState;
388
406
  }
389
407
  /**
@@ -458,7 +476,10 @@ export declare class ApplicationStateSchema extends BaseModel {
458
476
  * @param numUint - (nui) num of uints.
459
477
  * @param numByteSlice - (nbs) num of byte slices.
460
478
  */
461
- constructor(numUint: number | bigint, numByteSlice: number | bigint);
479
+ constructor({ numUint, numByteSlice, }: {
480
+ numUint: number | bigint;
481
+ numByteSlice: number | bigint;
482
+ });
462
483
  static from_obj_for_encoding(data: Record<string, any>): ApplicationStateSchema;
463
484
  }
464
485
  /**
@@ -484,7 +505,10 @@ export declare class Asset extends BaseModel {
484
505
  * Definition:
485
506
  * data/transactions/asset.go : AssetParams
486
507
  */
487
- constructor(index: number | bigint, params: AssetParams);
508
+ constructor({ index, params, }: {
509
+ index: number | bigint;
510
+ params: AssetParams;
511
+ });
488
512
  static from_obj_for_encoding(data: Record<string, any>): Asset;
489
513
  }
490
514
  /**
@@ -511,7 +535,11 @@ export declare class AssetHolding extends BaseModel {
511
535
  * @param assetId - Asset ID of the holding.
512
536
  * @param isFrozen - (f) whether or not the holding is frozen.
513
537
  */
514
- constructor(amount: number | bigint, assetId: number | bigint, isFrozen: boolean);
538
+ constructor({ amount, assetId, isFrozen, }: {
539
+ amount: number | bigint;
540
+ assetId: number | bigint;
541
+ isFrozen: boolean;
542
+ });
515
543
  static from_obj_for_encoding(data: Record<string, any>): AssetHolding;
516
544
  }
517
545
  /**
@@ -652,7 +680,9 @@ export declare class BlockHashResponse extends BaseModel {
652
680
  * Creates a new `BlockHashResponse` object.
653
681
  * @param blockhash - Block header hash.
654
682
  */
655
- constructor(blockhash: string);
683
+ constructor({ blockhash }: {
684
+ blockhash: string;
685
+ });
656
686
  static from_obj_for_encoding(data: Record<string, any>): BlockHashResponse;
657
687
  }
658
688
  /**
@@ -674,7 +704,10 @@ export declare class BlockResponse extends BaseModel {
674
704
  * @param cert - Optional certificate object. This is only included when the format is set to
675
705
  * message pack.
676
706
  */
677
- constructor(block: BlockHeader, cert?: Record<string, any>);
707
+ constructor({ block, cert, }: {
708
+ block: BlockHeader;
709
+ cert?: Record<string, any>;
710
+ });
678
711
  static from_obj_for_encoding(data: Record<string, any>): BlockResponse;
679
712
  }
680
713
  /**
@@ -694,7 +727,10 @@ export declare class Box extends BaseModel {
694
727
  * @param name - (name) box name, base64 encoded
695
728
  * @param value - (value) box value, base64 encoded.
696
729
  */
697
- constructor(name: string | Uint8Array, value: string | Uint8Array);
730
+ constructor({ name, value, }: {
731
+ name: string | Uint8Array;
732
+ value: string | Uint8Array;
733
+ });
698
734
  static from_obj_for_encoding(data: Record<string, any>): Box;
699
735
  }
700
736
  /**
@@ -709,7 +745,9 @@ export declare class BoxDescriptor extends BaseModel {
709
745
  * Creates a new `BoxDescriptor` object.
710
746
  * @param name - Base64 encoded box name
711
747
  */
712
- constructor(name: string | Uint8Array);
748
+ constructor({ name }: {
749
+ name: string | Uint8Array;
750
+ });
713
751
  static from_obj_for_encoding(data: Record<string, any>): BoxDescriptor;
714
752
  }
715
753
  /**
@@ -721,7 +759,9 @@ export declare class BoxesResponse extends BaseModel {
721
759
  * Creates a new `BoxesResponse` object.
722
760
  * @param boxes -
723
761
  */
724
- constructor(boxes: BoxDescriptor[]);
762
+ constructor({ boxes }: {
763
+ boxes: BoxDescriptor[];
764
+ });
725
765
  static from_obj_for_encoding(data: Record<string, any>): BoxesResponse;
726
766
  }
727
767
  export declare class BuildVersion extends BaseModel {
@@ -750,36 +790,6 @@ export declare class BuildVersion extends BaseModel {
750
790
  });
751
791
  static from_obj_for_encoding(data: Record<string, any>): BuildVersion;
752
792
  }
753
- /**
754
- *
755
- */
756
- export declare class CatchpointAbortResponse extends BaseModel {
757
- /**
758
- * Catchup abort response string
759
- */
760
- catchupMessage: string;
761
- /**
762
- * Creates a new `CatchpointAbortResponse` object.
763
- * @param catchupMessage - Catchup abort response string
764
- */
765
- constructor(catchupMessage: string);
766
- static from_obj_for_encoding(data: Record<string, any>): CatchpointAbortResponse;
767
- }
768
- /**
769
- *
770
- */
771
- export declare class CatchpointStartResponse extends BaseModel {
772
- /**
773
- * Catchup start response string
774
- */
775
- catchupMessage: string;
776
- /**
777
- * Creates a new `CatchpointStartResponse` object.
778
- * @param catchupMessage - Catchup start response string
779
- */
780
- constructor(catchupMessage: string);
781
- static from_obj_for_encoding(data: Record<string, any>): CatchpointStartResponse;
782
- }
783
793
  /**
784
794
  * Teal compile Result
785
795
  */
@@ -802,7 +812,11 @@ export declare class CompileResponse extends BaseModel {
802
812
  * @param result - base64 encoded program bytes
803
813
  * @param sourcemap - JSON of the source map
804
814
  */
805
- constructor(hash: string, result: string, sourcemap?: Record<string, any>);
815
+ constructor({ hash, result, sourcemap, }: {
816
+ hash: string;
817
+ result: string;
818
+ sourcemap?: Record<string, any>;
819
+ });
806
820
  static from_obj_for_encoding(data: Record<string, any>): CompileResponse;
807
821
  }
808
822
  /**
@@ -817,7 +831,9 @@ export declare class DisassembleResponse extends BaseModel {
817
831
  * Creates a new `DisassembleResponse` object.
818
832
  * @param result - disassembled Teal code
819
833
  */
820
- constructor(result: string);
834
+ constructor({ result }: {
835
+ result: string;
836
+ });
821
837
  static from_obj_for_encoding(data: Record<string, any>): DisassembleResponse;
822
838
  }
823
839
  /**
@@ -884,7 +900,11 @@ export declare class DryrunResponse extends BaseModel {
884
900
  * @param protocolVersion - Protocol version is the protocol version Dryrun was operated under.
885
901
  * @param txns -
886
902
  */
887
- constructor(error: string, protocolVersion: string, txns: DryrunTxnResult[]);
903
+ constructor({ error, protocolVersion, txns, }: {
904
+ error: string;
905
+ protocolVersion: string;
906
+ txns: DryrunTxnResult[];
907
+ });
888
908
  static from_obj_for_encoding(data: Record<string, any>): DryrunResponse;
889
909
  }
890
910
  /**
@@ -910,7 +930,12 @@ export declare class DryrunSource extends BaseModel {
910
930
  * @param txnIndex -
911
931
  * @param appIndex -
912
932
  */
913
- constructor(fieldName: string, source: string, txnIndex: number | bigint, appIndex: number | bigint);
933
+ constructor({ fieldName, source, txnIndex, appIndex, }: {
934
+ fieldName: string;
935
+ source: string;
936
+ txnIndex: number | bigint;
937
+ appIndex: number | bigint;
938
+ });
914
939
  static from_obj_for_encoding(data: Record<string, any>): DryrunSource;
915
940
  }
916
941
  /**
@@ -967,11 +992,6 @@ export declare class DryrunTxnResult extends BaseModel {
967
992
  * Budget consumed during execution of app call transaction.
968
993
  */
969
994
  budgetConsumed?: number | bigint;
970
- /**
971
- * Net cost of app execution. Field is DEPRECATED and is subject for removal.
972
- * Instead, use `budget-added` and `budget-consumed.
973
- */
974
- cost?: number | bigint;
975
995
  /**
976
996
  * Application state delta.
977
997
  */
@@ -991,8 +1011,6 @@ export declare class DryrunTxnResult extends BaseModel {
991
1011
  * @param appCallTrace -
992
1012
  * @param budgetAdded - Budget added during execution of app call transaction.
993
1013
  * @param budgetConsumed - Budget consumed during execution of app call transaction.
994
- * @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
995
- * Instead, use `budget-added` and `budget-consumed.
996
1014
  * @param globalDelta - Application state delta.
997
1015
  * @param localDeltas -
998
1016
  * @param logicSigDisassembly - Disassembled lsig program line by line.
@@ -1000,13 +1018,12 @@ export declare class DryrunTxnResult extends BaseModel {
1000
1018
  * @param logicSigTrace -
1001
1019
  * @param logs -
1002
1020
  */
1003
- constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }: {
1021
+ constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }: {
1004
1022
  disassembly: string[];
1005
1023
  appCallMessages?: string[];
1006
1024
  appCallTrace?: DryrunState[];
1007
1025
  budgetAdded?: number | bigint;
1008
1026
  budgetConsumed?: number | bigint;
1009
- cost?: number | bigint;
1010
1027
  globalDelta?: EvalDeltaKeyValue[];
1011
1028
  localDeltas?: AccountStateDelta[];
1012
1029
  logicSigDisassembly?: string[];
@@ -1027,7 +1044,10 @@ export declare class ErrorResponse extends BaseModel {
1027
1044
  * @param message -
1028
1045
  * @param data -
1029
1046
  */
1030
- constructor(message: string, data?: Record<string, any>);
1047
+ constructor({ message, data, }: {
1048
+ message: string;
1049
+ data?: Record<string, any>;
1050
+ });
1031
1051
  static from_obj_for_encoding(data: Record<string, any>): ErrorResponse;
1032
1052
  }
1033
1053
  /**
@@ -1052,7 +1072,11 @@ export declare class EvalDelta extends BaseModel {
1052
1072
  * @param bytes - (bs) bytes value.
1053
1073
  * @param uint - (ui) uint value.
1054
1074
  */
1055
- constructor(action: number | bigint, bytes?: string, uint?: number | bigint);
1075
+ constructor({ action, bytes, uint, }: {
1076
+ action: number | bigint;
1077
+ bytes?: string;
1078
+ uint?: number | bigint;
1079
+ });
1056
1080
  static from_obj_for_encoding(data: Record<string, any>): EvalDelta;
1057
1081
  }
1058
1082
  /**
@@ -1069,7 +1093,10 @@ export declare class EvalDeltaKeyValue extends BaseModel {
1069
1093
  * @param key -
1070
1094
  * @param value - Represents a TEAL value delta.
1071
1095
  */
1072
- constructor(key: string, value: EvalDelta);
1096
+ constructor({ key, value }: {
1097
+ key: string;
1098
+ value: EvalDelta;
1099
+ });
1073
1100
  static from_obj_for_encoding(data: Record<string, any>): EvalDeltaKeyValue;
1074
1101
  }
1075
1102
  /**
@@ -1096,7 +1123,11 @@ export declare class LightBlockHeaderProof extends BaseModel {
1096
1123
  * @param treedepth - Represents the depth of the tree that is being proven, i.e. the number of edges
1097
1124
  * from a leaf to the root.
1098
1125
  */
1099
- constructor(index: number | bigint, proof: string | Uint8Array, treedepth: number | bigint);
1126
+ constructor({ index, proof, treedepth, }: {
1127
+ index: number | bigint;
1128
+ proof: string | Uint8Array;
1129
+ treedepth: number | bigint;
1130
+ });
1100
1131
  static from_obj_for_encoding(data: Record<string, any>): LightBlockHeaderProof;
1101
1132
  }
1102
1133
  /**
@@ -1359,7 +1390,10 @@ export declare class PendingTransactionsResponse extends BaseModel {
1359
1390
  * @param topTransactions - An array of signed transaction objects.
1360
1391
  * @param totalTransactions - Total number of transactions in the pool.
1361
1392
  */
1362
- constructor(topTransactions: EncodedSignedTransaction[], totalTransactions: number | bigint);
1393
+ constructor({ topTransactions, totalTransactions, }: {
1394
+ topTransactions: EncodedSignedTransaction[];
1395
+ totalTransactions: number | bigint;
1396
+ });
1363
1397
  static from_obj_for_encoding(data: Record<string, any>): PendingTransactionsResponse;
1364
1398
  }
1365
1399
  /**
@@ -1374,7 +1408,9 @@ export declare class PostTransactionsResponse extends BaseModel {
1374
1408
  * Creates a new `PostTransactionsResponse` object.
1375
1409
  * @param txid - encoding of the transaction hash.
1376
1410
  */
1377
- constructor(txid: string);
1411
+ constructor({ txid }: {
1412
+ txid: string;
1413
+ });
1378
1414
  static from_obj_for_encoding(data: Record<string, any>): PostTransactionsResponse;
1379
1415
  }
1380
1416
  /**
@@ -1394,7 +1430,10 @@ export declare class StateProof extends BaseModel {
1394
1430
  * @param message - Represents the message that the state proofs are attesting to.
1395
1431
  * @param stateproof - The encoded StateProof for the message.
1396
1432
  */
1397
- constructor(message: StateProofMessage, stateproof: string | Uint8Array);
1433
+ constructor({ message, stateproof, }: {
1434
+ message: StateProofMessage;
1435
+ stateproof: string | Uint8Array;
1436
+ });
1398
1437
  static from_obj_for_encoding(data: Record<string, any>): StateProof;
1399
1438
  }
1400
1439
  /**
@@ -1464,7 +1503,11 @@ export declare class SupplyResponse extends BaseModel {
1464
1503
  * @param onlineMoney - OnlineMoney
1465
1504
  * @param totalMoney - TotalMoney
1466
1505
  */
1467
- constructor(currentRound: number | bigint, onlineMoney: number | bigint, totalMoney: number | bigint);
1506
+ constructor({ currentRound, onlineMoney, totalMoney, }: {
1507
+ currentRound: number | bigint;
1508
+ onlineMoney: number | bigint;
1509
+ totalMoney: number | bigint;
1510
+ });
1468
1511
  static from_obj_for_encoding(data: Record<string, any>): SupplyResponse;
1469
1512
  }
1470
1513
  /**
@@ -1481,7 +1524,10 @@ export declare class TealKeyValue extends BaseModel {
1481
1524
  * @param key -
1482
1525
  * @param value - Represents a TEAL value.
1483
1526
  */
1484
- constructor(key: string, value: TealValue);
1527
+ constructor({ key, value }: {
1528
+ key: string;
1529
+ value: TealValue;
1530
+ });
1485
1531
  static from_obj_for_encoding(data: Record<string, any>): TealKeyValue;
1486
1532
  }
1487
1533
  /**
@@ -1506,7 +1552,11 @@ export declare class TealValue extends BaseModel {
1506
1552
  * @param bytes - (tb) bytes value.
1507
1553
  * @param uint - (ui) uint value.
1508
1554
  */
1509
- constructor(type: number | bigint, bytes: string, uint: number | bigint);
1555
+ constructor({ type, bytes, uint, }: {
1556
+ type: number | bigint;
1557
+ bytes: string;
1558
+ uint: number | bigint;
1559
+ });
1510
1560
  static from_obj_for_encoding(data: Record<string, any>): TealValue;
1511
1561
  }
1512
1562
  /**
@@ -1629,6 +1679,11 @@ export declare class Version extends BaseModel {
1629
1679
  * @param genesisId -
1630
1680
  * @param versions -
1631
1681
  */
1632
- constructor(build: BuildVersion, genesisHashB64: string | Uint8Array, genesisId: string, versions: string[]);
1682
+ constructor({ build, genesisHashB64, genesisId, versions, }: {
1683
+ build: BuildVersion;
1684
+ genesisHashB64: string | Uint8Array;
1685
+ genesisId: string;
1686
+ versions: string[];
1687
+ });
1633
1688
  static from_obj_for_encoding(data: Record<string, any>): Version;
1634
1689
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * Base class for models
3
- */
4
1
  export default class BaseModel {
5
2
  attribute_map: Record<string, string>;
6
3
  /**
@@ -140,10 +140,6 @@ export default class LookupAssetTransactions extends JSONRequest {
140
140
  * @category query
141
141
  */
142
142
  maxRound(round: number): this;
143
- /**
144
- * @deprecated Redundant query parameter. Asset ID is already passed into the method.
145
- */
146
- assetID(id: number): this;
147
143
  /**
148
144
  * Maximum number of results to return.
149
145
  *
@@ -74,7 +74,7 @@ export declare class AtomicTransactionComposer {
74
74
  * causes the current group to exceed MAX_GROUP_SIZE, or if the provided arguments are invalid
75
75
  * for the given method.
76
76
  */
77
- addMethodCall({ appID, method, methodArgs, sender, suggestedParams, onComplete, approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages, boxes, note, lease, rekeyTo, signer, }: {
77
+ addMethodCall({ appID, method, methodArgs, sender, suggestedParams, onComplete, approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages, appAccounts, appForeignApps, appForeignAssets, boxes, note, lease, rekeyTo, signer, }: {
78
78
  /** The ID of the smart contract to call. Set this to 0 to indicate an application creation call. */
79
79
  appID: number;
80
80
  /** The method to call on the smart contract */
@@ -101,6 +101,12 @@ export declare class AtomicTransactionComposer {
101
101
  numLocalByteSlices?: number;
102
102
  /** 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. */
103
103
  extraPages?: number;
104
+ /** 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. */
105
+ appAccounts?: string[];
106
+ /** Array of App ID numbers that represent external apps supplied to this application. If apps are provided here, the apps specified in the method args will appear after these. */
107
+ appForeignApps?: number[];
108
+ /** Array of Asset ID numbers that represent external assets supplied to this application. If assets are provided here, the assets specified in the method args will appear after these. */
109
+ appForeignAssets?: number[];
104
110
  /** The box references for this application call */
105
111
  boxes?: BoxReference[];
106
112
  /** The note value for this application call */
@@ -16,6 +16,8 @@ interface LogicSigStorageStructure {
16
16
  export declare function sanityCheckProgram(program: Uint8Array): void;
17
17
  /**
18
18
  LogicSig implementation
19
+
20
+ LogicSig cannot sign transactions in all cases. Instead, use LogicSigAccount as a safe, general purpose signing mechanism. Since LogicSig does not track the provided signature's public key, LogicSig cannot sign transactions when delegated to a non-multisig account _and_ the sender is not the delegating account.
19
21
  */
20
22
  export declare class LogicSig implements LogicSigStorageStructure {
21
23
  tag: Buffer;
@@ -132,16 +134,6 @@ export declare class LogicSigAccount {
132
134
  */
133
135
  sign(secretKey: Uint8Array): void;
134
136
  }
135
- /**
136
- * makeLogicSig creates LogicSig object from program and arguments
137
- *
138
- * @deprecated Use new LogicSigAccount(...) instead
139
- *
140
- * @param program - Program to make LogicSig from
141
- * @param args - Arguments as array of Uint8Array
142
- * @returns LogicSig object
143
- */
144
- export declare function makeLogicSig(program: Uint8Array, args?: Uint8Array[]): LogicSig;
145
137
  /**
146
138
  * signLogicSigTransactionObject takes a transaction and a LogicSig object and
147
139
  * returns a signed transaction.
@@ -181,6 +173,14 @@ export declare function logicSigFromByte(encoded: Uint8Array): LogicSig;
181
173
  * @param programHash - string representation of teal program hash (= contract address for LogicSigs)
182
174
  */
183
175
  export declare function tealSign(sk: Uint8Array, data: Uint8Array | Buffer, programHash: string): Uint8Array;
176
+ /**
177
+ * verifyTealSign verifies a signature as would the ed25519verify opcode
178
+ * @param data - buffer with original signed data
179
+ * @param programHash - string representation of teal program hash (= contract address for LogicSigs)
180
+ * @param sig - uint8array with the signature to verify (produced by tealSign/tealSignFromProgram)
181
+ * @param pk - uint8array with public key to verify against
182
+ */
183
+ export declare function verifyTealSign(data: Uint8Array | Buffer, programHash: string, sig: Uint8Array, pk: Uint8Array): boolean;
184
184
  /**
185
185
  * tealSignFromProgram creates a signature compatible with ed25519verify opcode from raw program bytes
186
186
  * @param sk - uint8array with secret key
@@ -60,7 +60,6 @@ export declare function encodeObj(o: Record<string | number | symbol, any>): Uin
60
60
  export declare function decodeObj(o: ArrayLike<number>): unknown;
61
61
  export declare const ERROR_MULTISIG_BAD_SENDER: Error;
62
62
  export declare const ERROR_INVALID_MICROALGOS: Error;
63
- export * from './client/algod';
64
63
  export { default as Algodv2 } from './client/v2/algod/algod';
65
64
  export { default as Kmd } from './client/kmd';
66
65
  export { default as IntDecoding } from './types/intDecoding';
@@ -77,10 +76,9 @@ export * as indexerModels from './client/v2/indexer/models/types';
77
76
  export { mnemonicToMasterDerivationKey, masterDerivationKeyToMnemonic, secretKeyToMnemonic, mnemonicToSecretKey, seedFromMnemonic, mnemonicFromSeed, } from './mnemonic/mnemonic';
78
77
  export { microalgosToAlgos, algosToMicroalgos, INVALID_MICROALGOS_ERROR_MSG, } from './convert';
79
78
  export { computeGroupID, assignGroupID } from './group';
80
- export { LogicSigAccount, makeLogicSig, signLogicSigTransaction, signLogicSigTransactionObject, logicSigFromByte, tealSign, tealSignFromProgram, } from './logicsig';
79
+ export { LogicSig, LogicSigAccount, signLogicSigTransaction, signLogicSigTransactionObject, logicSigFromByte, tealSign, tealSignFromProgram, verifyTealSign, } from './logicsig';
81
80
  export { signMultisigTransaction, mergeMultisigTransactions, appendSignMultisigTransaction, createMultisigTransaction, appendSignRawMultisigSignature, verifyMultisig, multisigAddress, } from './multisig';
82
81
  export { SourceMap } from './logic/sourcemap';
83
- export declare const LogicTemplates: any;
84
82
  export * from './dryrun';
85
83
  export * from './makeTxn';
86
84
  export * from './transaction';