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
@@ -1,5 +1,5 @@
1
1
  import * as txnBuilder from './transaction';
2
- import { PaymentTxn, KeyRegistrationTxn, MustHaveSuggestedParams, MustHaveSuggestedParamsInline, AssetCreateTxn, AssetConfigTxn, AssetDestroyTxn, AssetFreezeTxn, AssetTransferTxn, AppCreateTxn, AppUpdateTxn, AppDeleteTxn, AppOptInTxn, AppCloseOutTxn, AppClearStateTxn, AppNoOpTxn } from './types/transactions';
2
+ import { PaymentTxn, KeyRegistrationTxn, MustHaveSuggestedParams, AssetCreateTxn, AssetConfigTxn, AssetDestroyTxn, AssetFreezeTxn, AssetTransferTxn, AppCreateTxn, AppUpdateTxn, AppDeleteTxn, AppOptInTxn, AppCloseOutTxn, AppClearStateTxn, AppNoOpTxn } from './types/transactions';
3
3
  import { RenameProperties, RenameProperty, Expand } from './types/utils';
4
4
  /**
5
5
  * makePaymentTxnWithSuggestedParams takes payment arguments and returns a Transaction object
@@ -19,23 +19,6 @@ import { RenameProperties, RenameProperty, Expand } from './types/utils';
19
19
  * @param rekeyTo - rekeyTo address, optional
20
20
  */
21
21
  export declare function makePaymentTxnWithSuggestedParams(from: PaymentTxn['from'], to: PaymentTxn['to'], amount: PaymentTxn['amount'], closeRemainderTo: PaymentTxn['closeRemainderTo'], note: PaymentTxn['note'], suggestedParams: MustHaveSuggestedParams<PaymentTxn>['suggestedParams'], rekeyTo?: PaymentTxn['reKeyTo']): txnBuilder.Transaction;
22
- /**
23
- * makePaymentTxn takes payment arguments and returns a Transaction object
24
- * @param from - string representation of Algorand address of sender
25
- * @param to - string representation of Algorand address of recipient
26
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
27
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
28
- * @param amount - integer amount to send, in microAlgos
29
- * @param closeRemainderTo - optionally close out remaining account balance to this account, represented as string rep of Algorand address
30
- * @param firstRound - integer first protocol round on which this txn is valid
31
- * @param lastRound - integer last protocol round on which this txn is valid
32
- * @param note - uint8array of arbitrary data for sender to store
33
- * @param genesisHash - string specifies hash genesis block of network in use
34
- * @param genesisID - string specifies genesis ID of network in use
35
- * @param rekeyTo - rekeyTo address, optional
36
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
37
- */
38
- export declare function makePaymentTxn(from: PaymentTxn['from'], to: PaymentTxn['to'], fee: MustHaveSuggestedParamsInline<PaymentTxn>['fee'], amount: PaymentTxn['amount'], closeRemainderTo: PaymentTxn['closeRemainderTo'], firstRound: MustHaveSuggestedParamsInline<PaymentTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<PaymentTxn>['lastRound'], note: PaymentTxn['note'], genesisHash: MustHaveSuggestedParamsInline<PaymentTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<PaymentTxn>['genesisID'], rekeyTo?: PaymentTxn['reKeyTo']): txnBuilder.Transaction;
39
22
  export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<PaymentTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'to' | 'amount' | 'closeRemainderTo' | 'note' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
40
23
  /**
41
24
  * makeKeyRegistrationTxnWithSuggestedParams takes key registration arguments and returns a Transaction object for
@@ -63,31 +46,6 @@ export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pi
63
46
  */
64
47
  export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegistrationTxn['from'], note: KeyRegistrationTxn['note'], voteKey: KeyRegistrationTxn['voteKey'], selectionKey: KeyRegistrationTxn['selectionKey'], voteFirst: KeyRegistrationTxn['voteFirst'], voteLast: KeyRegistrationTxn['voteLast'], voteKeyDilution: KeyRegistrationTxn['voteKeyDilution'], suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: false, stateProofKey?: KeyRegistrationTxn['stateProofKey']): txnBuilder.Transaction;
65
48
  export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegistrationTxn['from'], note: KeyRegistrationTxn['note'], voteKey: undefined, selectionKey: undefined, voteFirst: undefined, voteLast: undefined, voteKeyDilution: undefined, suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: true, stateProofKey?: undefined): txnBuilder.Transaction;
66
- /**
67
- * makeKeyRegistrationTxn takes key registration arguments and returns a Transaction object for
68
- * that key registration operation
69
- *
70
- * @param from - string representation of Algorand address of sender
71
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
72
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
73
- * @param firstRound - integer first protocol round on which this txn is valid
74
- * @param lastRound - integer last protocol round on which this txn is valid
75
- * @param note - uint8array of arbitrary data for sender to store
76
- * @param genesisHash - string specifies hash genesis block of network in use
77
- * @param genesisID - string specifies genesis ID of network in use
78
- * @param voteKey - voting key. for key deregistration, leave undefined
79
- * @param selectionKey - selection key. for key deregistration, leave undefined
80
- * @param voteFirst - first round on which voteKey is valid
81
- * @param voteLast - last round on which voteKey is valid
82
- * @param voteKeyDilution - integer
83
- * @param rekeyTo - rekeyTo address, optional
84
- * @param nonParticipation - configure whether the address wants to stop participating. If true,
85
- * voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.
86
- * @param stateProofKey - state proof key. for key deregistration, leave undefined
87
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
88
- */
89
- export declare function makeKeyRegistrationTxn(from: KeyRegistrationTxn['from'], fee: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['lastRound'], note: KeyRegistrationTxn['note'], genesisHash: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisID'], voteKey: KeyRegistrationTxn['voteKey'], selectionKey: KeyRegistrationTxn['selectionKey'], voteFirst: KeyRegistrationTxn['voteFirst'], voteLast: KeyRegistrationTxn['voteLast'], voteKeyDilution: KeyRegistrationTxn['voteKeyDilution'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: false, stateProofKey?: KeyRegistrationTxn['stateProofKey']): txnBuilder.Transaction;
90
- export declare function makeKeyRegistrationTxn(from: KeyRegistrationTxn['from'], fee: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['lastRound'], note: KeyRegistrationTxn['note'], genesisHash: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisID'], voteKey: undefined, selectionKey: undefined, voteFirst: undefined, voteLast: undefined, voteKeyDilution: undefined, rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: true, stateProofKey?: undefined): txnBuilder.Transaction;
91
49
  export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'voteKey' | 'selectionKey' | 'stateProofKey' | 'voteFirst' | 'voteLast' | 'voteKeyDilution' | 'suggestedParams' | 'rekeyTo'> & {
92
50
  nonParticipation?: false;
93
51
  }>): txnBuilder.Transaction;
@@ -121,32 +79,6 @@ export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: E
121
79
  * @param rekeyTo - rekeyTo address, optional
122
80
  */
123
81
  export declare function makeAssetCreateTxnWithSuggestedParams(from: AssetCreateTxn['from'], note: AssetCreateTxn['note'], total: AssetCreateTxn['assetTotal'], decimals: AssetCreateTxn['assetDecimals'], defaultFrozen: AssetCreateTxn['assetDefaultFrozen'], manager: AssetCreateTxn['assetManager'], reserve: AssetCreateTxn['assetReserve'], freeze: AssetCreateTxn['assetFreeze'], clawback: AssetCreateTxn['assetClawback'], unitName: AssetCreateTxn['assetUnitName'], assetName: AssetCreateTxn['assetName'], assetURL: AssetCreateTxn['assetURL'], assetMetadataHash: AssetCreateTxn['assetMetadataHash'] | undefined, suggestedParams: MustHaveSuggestedParams<AssetCreateTxn>['suggestedParams'], rekeyTo?: AssetCreateTxn['reKeyTo']): txnBuilder.Transaction;
124
- /** makeAssetCreateTxn takes asset creation arguments and returns a Transaction object
125
- * for creating that asset
126
- *
127
- * @param from - string representation of Algorand address of sender
128
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
129
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
130
- * @param firstRound - integer first protocol round on which this txn is valid
131
- * @param lastRound - integer last protocol round on which this txn is valid
132
- * @param note - uint8array of arbitrary data for sender to store
133
- * @param genesisHash - string specifies hash genesis block of network in use
134
- * @param genesisID - string specifies genesis ID of network in use
135
- * @param total - integer total supply of the asset
136
- * @param decimals - integer number of decimals for asset unit calculation
137
- * @param defaultFrozen - boolean whether asset accounts should default to being frozen
138
- * @param manager - string representation of Algorand address in charge of reserve, freeze, clawback, destruction, etc
139
- * @param reserve - string representation of Algorand address representing asset reserve
140
- * @param freeze - string representation of Algorand address with power to freeze/unfreeze asset holdings
141
- * @param clawback - string representation of Algorand address with power to revoke asset holdings
142
- * @param unitName - string units name for this asset
143
- * @param assetName - string name for this asset
144
- * @param assetURL - string URL relating to this asset
145
- * @param assetMetadataHash - Uint8Array or UTF-8 string representation of a hash commitment with respect to the asset. Must be exactly 32 bytes long.
146
- * @param rekeyTo - rekeyTo address, optional
147
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
148
- */
149
- export declare function makeAssetCreateTxn(from: AssetCreateTxn['from'], fee: MustHaveSuggestedParamsInline<AssetCreateTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetCreateTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetCreateTxn>['lastRound'], note: AssetCreateTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetCreateTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetCreateTxn>['genesisID'], total: AssetCreateTxn['assetTotal'], decimals: AssetCreateTxn['assetDecimals'], defaultFrozen: AssetCreateTxn['assetDefaultFrozen'], manager: AssetCreateTxn['assetManager'], reserve: AssetCreateTxn['assetManager'], freeze: AssetCreateTxn['assetFreeze'], clawback: AssetCreateTxn['assetClawback'], unitName: AssetCreateTxn['assetUnitName'], assetName: AssetCreateTxn['assetName'], assetURL: AssetCreateTxn['assetURL'], assetMetadataHash?: AssetCreateTxn['assetMetadataHash'], rekeyTo?: AssetCreateTxn['reKeyTo']): txnBuilder.Transaction;
150
82
  export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetCreateTxn>, {
151
83
  reKeyTo: 'rekeyTo';
152
84
  assetTotal: 'total';
@@ -181,28 +113,6 @@ export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expan
181
113
  * @param rekeyTo - rekeyTo address, optional
182
114
  */
183
115
  export declare function makeAssetConfigTxnWithSuggestedParams(from: AssetConfigTxn['from'], note: AssetConfigTxn['note'], assetIndex: AssetConfigTxn['assetIndex'], manager: AssetConfigTxn['assetManager'], reserve: AssetConfigTxn['assetReserve'], freeze: AssetConfigTxn['assetFreeze'], clawback: AssetConfigTxn['assetClawback'], suggestedParams: MustHaveSuggestedParams<AssetConfigTxn>['suggestedParams'], strictEmptyAddressChecking?: boolean, rekeyTo?: AssetConfigTxn['reKeyTo']): txnBuilder.Transaction;
184
- /** makeAssetConfigTxn can be issued by the asset manager to change the manager, reserve, freeze, or clawback
185
- * you must respecify existing addresses to keep them the same; leaving a field blank is the same as turning
186
- * that feature off for this asset
187
- *
188
- * @param from - string representation of Algorand address of sender
189
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
190
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
191
- * @param firstRound - integer first protocol round on which this txn is valid
192
- * @param lastRound - integer last protocol round on which this txn is valid
193
- * @param note - uint8array of arbitrary data for sender to store
194
- * @param genesisHash - string specifies hash genesis block of network in use
195
- * @param genesisID - string specifies genesis ID of network in use
196
- * @param assetIndex - int asset index uniquely specifying the asset
197
- * @param manager - string representation of new asset manager Algorand address
198
- * @param reserve - string representation of new reserve Algorand address
199
- * @param freeze - string representation of new freeze manager Algorand address
200
- * @param clawback - string representation of new revocation manager Algorand address
201
- * @param strictEmptyAddressChecking - boolean - throw an error if any of manager, reserve, freeze, or clawback are undefined. optional, defaults to true.
202
- * @param rekeyTo - rekeyTo address, optional
203
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
204
- */
205
- export declare function makeAssetConfigTxn(from: AssetConfigTxn['from'], fee: MustHaveSuggestedParamsInline<AssetConfigTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetConfigTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetConfigTxn>['lastRound'], note: AssetConfigTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetConfigTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetConfigTxn>['genesisID'], assetIndex: AssetConfigTxn['assetIndex'], manager: AssetConfigTxn['assetManager'], reserve: AssetConfigTxn['assetReserve'], freeze: AssetConfigTxn['assetFreeze'], clawback: AssetConfigTxn['assetClawback'], strictEmptyAddressChecking?: boolean, rekeyTo?: AssetConfigTxn['reKeyTo']): txnBuilder.Transaction;
206
116
  export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetConfigTxn>, {
207
117
  reKeyTo: 'rekeyTo';
208
118
  assetManager: 'manager';
@@ -229,22 +139,6 @@ export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expan
229
139
  * @param rekeyTo - rekeyTo address, optional
230
140
  */
231
141
  export declare function makeAssetDestroyTxnWithSuggestedParams(from: AssetDestroyTxn['from'], note: AssetDestroyTxn['note'], assetIndex: AssetDestroyTxn['assetIndex'], suggestedParams: MustHaveSuggestedParams<AssetDestroyTxn>['suggestedParams'], rekeyTo?: AssetDestroyTxn['reKeyTo']): txnBuilder.Transaction;
232
- /** makeAssetDestroyTxn will allow the asset's manager to remove this asset from the ledger, so long
233
- * as all outstanding assets are held by the creator.
234
- *
235
- * @param from - string representation of Algorand address of sender
236
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
237
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
238
- * @param firstRound - integer first protocol round on which this txn is valid
239
- * @param lastRound - integer last protocol round on which this txn is valid
240
- * @param note - uint8array of arbitrary data for sender to store
241
- * @param genesisHash - string specifies hash genesis block of network in use
242
- * @param genesisID - string specifies genesis ID of network in use
243
- * @param assetIndex - int asset index uniquely specifying the asset
244
- * @param rekeyTo - rekeyTo address, optional
245
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
246
- */
247
- export declare function makeAssetDestroyTxn(from: AssetDestroyTxn['from'], fee: MustHaveSuggestedParamsInline<AssetDestroyTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetDestroyTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetDestroyTxn>['lastRound'], note: AssetDestroyTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetDestroyTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetDestroyTxn>['genesisID'], assetIndex: AssetDestroyTxn['assetIndex'], rekeyTo?: AssetDestroyTxn['reKeyTo']): txnBuilder.Transaction;
248
142
  export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<AssetDestroyTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
249
143
  /** makeAssetFreezeTxnWithSuggestedParams will allow the asset's freeze manager to freeze or un-freeze an account,
250
144
  * blocking or allowing asset transfers to and from the targeted account.
@@ -265,24 +159,6 @@ export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expa
265
159
  * @param rekeyTo - rekeyTo address, optional
266
160
  */
267
161
  export declare function makeAssetFreezeTxnWithSuggestedParams(from: AssetFreezeTxn['from'], note: AssetFreezeTxn['note'], assetIndex: AssetFreezeTxn['assetIndex'], freezeTarget: AssetFreezeTxn['freezeAccount'], freezeState: AssetFreezeTxn['freezeState'], suggestedParams: MustHaveSuggestedParams<AssetFreezeTxn>['suggestedParams'], rekeyTo?: AssetFreezeTxn['reKeyTo']): txnBuilder.Transaction;
268
- /** makeAssetFreezeTxn will allow the asset's freeze manager to freeze or un-freeze an account,
269
- * blocking or allowing asset transfers to and from the targeted account.
270
- *
271
- * @param from - string representation of Algorand address of sender
272
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
273
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
274
- * @param firstRound - integer first protocol round on which this txn is valid
275
- * @param lastRound - integer last protocol round on which this txn is valid
276
- * @param note - uint8array of arbitrary data for sender to store
277
- * @param genesisHash - string specifies hash genesis block of network in use
278
- * @param genesisID - string specifies genesis ID of network in use
279
- * @param assetIndex - int asset index uniquely specifying the asset
280
- * @param freezeTarget - string representation of Algorand address being frozen or unfrozen
281
- * @param freezeState - true if freezeTarget should be frozen, false if freezeTarget should be allowed to transact
282
- * @param rekeyTo - rekeyTo address, optional
283
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
284
- */
285
- export declare function makeAssetFreezeTxn(from: AssetFreezeTxn['from'], fee: MustHaveSuggestedParamsInline<AssetFreezeTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetFreezeTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetFreezeTxn>['lastRound'], note: MustHaveSuggestedParamsInline<AssetFreezeTxn>['note'], genesisHash: MustHaveSuggestedParamsInline<AssetFreezeTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetFreezeTxn>['genesisID'], assetIndex: AssetFreezeTxn['assetIndex'], freezeTarget: AssetFreezeTxn['freezeAccount'], freezeState: AssetFreezeTxn['freezeState'], rekeyTo?: AssetFreezeTxn['reKeyTo']): txnBuilder.Transaction;
286
162
  export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetFreezeTxn>, {
287
163
  freezeAccount: 'freezeTarget';
288
164
  reKeyTo: 'rekeyTo';
@@ -312,28 +188,6 @@ export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expan
312
188
  * @param rekeyTo - rekeyTo address, optional
313
189
  */
314
190
  export declare function makeAssetTransferTxnWithSuggestedParams(from: AssetTransferTxn['from'], to: AssetTransferTxn['to'], closeRemainderTo: AssetTransferTxn['closeRemainderTo'], revocationTarget: AssetTransferTxn['assetRevocationTarget'], amount: AssetTransferTxn['amount'], note: AssetTransferTxn['note'], assetIndex: AssetTransferTxn['assetIndex'], suggestedParams: MustHaveSuggestedParams<AssetTransferTxn>['suggestedParams'], rekeyTo?: AssetTransferTxn['reKeyTo']): txnBuilder.Transaction;
315
- /** makeAssetTransferTxn allows for the creation of an asset transfer transaction.
316
- * Special case: to begin accepting assets, set amount=0 and from=to.
317
- *
318
- * @param from - string representation of Algorand address of sender
319
- * @param to - string representation of Algorand address of asset recipient
320
- * @param closeRemainderTo - optional - string representation of Algorand address - if provided,
321
- * send all remaining assets after transfer to the "closeRemainderTo" address and close "from"'s asset holdings
322
- * @param revocationTarget - optional - string representation of Algorand address - if provided,
323
- * and if "from" is the asset's revocation manager, then deduct from "revocationTarget" rather than "from"
324
- * @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
325
- * If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
326
- * @param amount - integer amount of assets to send
327
- * @param firstRound - integer first protocol round on which this txn is valid
328
- * @param lastRound - integer last protocol round on which this txn is valid
329
- * @param note - uint8array of arbitrary data for sender to store
330
- * @param genesisHash - string specifies hash genesis block of network in use
331
- * @param genesisID - string specifies genesis ID of network in use
332
- * @param assetIndex - int asset index uniquely specifying the asset
333
- * @param rekeyTo - rekeyTo address, optional
334
- * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
335
- */
336
- export declare function makeAssetTransferTxn(from: AssetTransferTxn['from'], to: AssetTransferTxn['to'], closeRemainderTo: AssetTransferTxn['closeRemainderTo'], revocationTarget: AssetTransferTxn['assetRevocationTarget'], fee: MustHaveSuggestedParamsInline<AssetTransferTxn>['fee'], amount: AssetTransferTxn['amount'], firstRound: MustHaveSuggestedParamsInline<AssetTransferTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetTransferTxn>['lastRound'], note: AssetTransferTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetTransferTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetTransferTxn>['genesisID'], assetIndex: AssetTransferTxn['assetIndex'], rekeyTo?: AssetTransferTxn['reKeyTo']): txnBuilder.Transaction;
337
191
  export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetTransferTxn>, {
338
192
  assetRevocationTarget: 'revocationTarget';
339
193
  reKeyTo: 'rekeyTo';
@@ -1,7 +1,7 @@
1
+ /// <reference types="node" />
1
2
  /**
2
3
  * Interfaces for the encoded transaction object. Every property is labelled with its associated Transaction type property
3
4
  */
4
- /// <reference types="node" />
5
5
  export interface EncodedAssetParams {
6
6
  /**
7
7
  * assetTotal
@@ -292,21 +292,6 @@ export interface EncodedMultisig {
292
292
  */
293
293
  subsig: EncodedSubsig[];
294
294
  }
295
- /**
296
- * An encoded multisig blob that contains the encoded multisig as well as a copy of the encoded transaction
297
- *
298
- * @deprecated Use EncodedSignedTransaction instead.
299
- */
300
- export interface EncodedMultisigBlob {
301
- /**
302
- * Encoded multisig
303
- */
304
- msig: EncodedMultisig;
305
- /**
306
- * Encoded transaction
307
- */
308
- txn: EncodedTransaction;
309
- }
310
295
  export interface EncodedLogicSig {
311
296
  l: Uint8Array;
312
297
  arg?: Uint8Array[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algosdk",
3
- "version": "1.24.1",
3
+ "version": "2.1.0",
4
4
  "description": "The official JavaScript SDK for Algorand",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "algo-msgpack-with-bigint": "^2.1.1",
25
- "buffer": "^6.0.2",
25
+ "buffer": "^6.0.3",
26
26
  "cross-fetch": "^3.1.5",
27
27
  "hi-base32": "^0.5.1",
28
28
  "js-sha256": "^0.9.0",
@@ -35,7 +35,6 @@
35
35
  "devDependencies": {
36
36
  "@types/json-bigint": "^1.0.0",
37
37
  "@types/mocha": "^8.2.2",
38
- "@types/url-parse": "^1.4.3",
39
38
  "@typescript-eslint/eslint-plugin": "^4.26.1",
40
39
  "@typescript-eslint/parser": "^4.26.1",
41
40
  "assert": "^2.0.0",
@@ -13,6 +13,7 @@
13
13
  // | string
14
14
  // | (T1, ..., Tn)
15
15
  */
16
+ import { Buffer } from 'buffer';
16
17
  import { encodeAddress, decodeAddress } from '../encoding/address';
17
18
  import { bigIntToBytes, bytesToBigInt } from '../encoding/bigint';
18
19
  import { concatArrays } from '../utils/utils';
package/src/bid.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import * as address from './encoding/address';
2
3
  import * as encoding from './encoding/encoding';
3
4
  import * as nacl from './nacl/naclWrappers';
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import * as utils from '../utils/utils';
2
3
  import {
3
4
  BaseHTTPClient,
package/src/client/kmd.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import ServiceClient from './v2/serviceClient';
2
3
  import * as txn from '../transaction';
3
4
  import { CustomTokenHeader, KMDTokenHeader } from './urlTokenBaseHTTPClient';
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import { fetch, Response, Headers } from 'cross-fetch';
2
3
  import {
3
4
  BaseHTTPClient,
@@ -30,6 +30,7 @@ import {
30
30
  } from '../../urlTokenBaseHTTPClient';
31
31
  import LightBlockHeaderProof from './lightBlockHeaderProof';
32
32
  import StateProof from './stateproof';
33
+ import Disassemble from './disassemble';
33
34
 
34
35
  /**
35
36
  * Algod client connects an application to the Algorand blockchain. The algod client requires a valid algod REST endpoint IP address and algod token from an Algorand node that is connected to the network you plan to interact with.
@@ -69,8 +70,8 @@ export default class AlgodClient extends ServiceClient {
69
70
  | AlgodTokenHeader
70
71
  | CustomTokenHeader
71
72
  | BaseHTTPClient,
72
- baseServer = 'http://r2.algorand.network',
73
- port: string | number = 4180,
73
+ baseServer: string,
74
+ port?: string | number,
74
75
  headers: Record<string, string> = {}
75
76
  ) {
76
77
  super('X-Algo-API-Token', tokenOrBaseClient, baseServer, port, headers);
@@ -397,6 +398,22 @@ export default class AlgodClient extends ServiceClient {
397
398
  return new Compile(this.c, source);
398
399
  }
399
400
 
401
+ /**
402
+ * Given the program bytes, return the TEAL source code in plain text.
403
+ *
404
+ * #### Example
405
+ * ```typescript
406
+ * const bytecode = "TEAL bytecode";
407
+ * const disassembledSource = await algodClient.disassemble(bytecode).do();
408
+ * ```
409
+ *
410
+ * @remarks This endpoint is only enabled when a node's configuration file sets EnableDeveloperAPI to true.
411
+ * @param source
412
+ */
413
+ disassemble(source: string | Uint8Array) {
414
+ return new Disassemble(this.c, source);
415
+ }
416
+
400
417
  /**
401
418
  * Provides debugging information for a transaction (or group).
402
419
  *
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import JSONRequest from '../jsonrequest';
2
3
  import HTTPClient from '../../client';
3
4
 
@@ -0,0 +1,46 @@
1
+ import { Buffer } from 'buffer';
2
+ import JSONRequest from '../jsonrequest';
3
+ import HTTPClient from '../../client';
4
+
5
+ /**
6
+ * Sets the default header (if not previously set)
7
+ * @param headers - A headers object
8
+ */
9
+ export function setHeaders(headers = {}) {
10
+ let hdrs = headers;
11
+ if (Object.keys(hdrs).every((key) => key.toLowerCase() !== 'content-type')) {
12
+ hdrs = { ...headers };
13
+ hdrs['Content-Type'] = 'text/plain';
14
+ }
15
+ return hdrs;
16
+ }
17
+
18
+ /**
19
+ * Executes disassemble
20
+ */
21
+ export default class Disassemble extends JSONRequest {
22
+ constructor(c: HTTPClient, private source: string | Uint8Array) {
23
+ super(c);
24
+ this.source = source;
25
+ }
26
+
27
+ // eslint-disable-next-line class-methods-use-this
28
+ path() {
29
+ return `/v2/teal/disassemble`;
30
+ }
31
+
32
+ /**
33
+ * Executes disassemble
34
+ * @param headers - A headers object
35
+ */
36
+ async do(headers = {}) {
37
+ const txHeaders = setHeaders(headers);
38
+ const res = await this.c.post(
39
+ this.path(),
40
+ Buffer.from(this.source),
41
+ txHeaders,
42
+ this.query
43
+ );
44
+ return res.body;
45
+ }
46
+ }
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import JSONRequest from '../jsonrequest';
2
3
  import HTTPClient from '../../client';
3
4
  import * as modelsv2 from './models/types';
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import JSONRequest from '../jsonrequest';
2
3
  import HTTPClient from '../../client';
3
4
  import IntDecoding from '../../../types/intDecoding';