algosdk 2.7.0 → 2.9.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 (40) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/abi/contract.js +2 -0
  5. package/dist/cjs/abi/contract.js.map +1 -1
  6. package/dist/cjs/abi/event.js +3 -0
  7. package/dist/cjs/abi/event.js.map +1 -0
  8. package/dist/cjs/abi/method.js +4 -0
  9. package/dist/cjs/abi/method.js.map +1 -1
  10. package/dist/cjs/client/v2/algod/models/types.js +194 -7
  11. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  12. package/dist/cjs/client/v2/indexer/models/types.js +110 -67
  13. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  14. package/dist/cjs/makeTxn.js +26 -0
  15. package/dist/cjs/makeTxn.js.map +1 -1
  16. package/dist/esm/abi/contract.js +2 -0
  17. package/dist/esm/abi/contract.js.map +1 -1
  18. package/dist/esm/abi/event.js +2 -0
  19. package/dist/esm/abi/event.js.map +1 -0
  20. package/dist/esm/abi/method.js +4 -0
  21. package/dist/esm/abi/method.js.map +1 -1
  22. package/dist/esm/client/v2/algod/models/types.js +188 -5
  23. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  24. package/dist/esm/client/v2/indexer/models/types.js +110 -67
  25. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  26. package/dist/esm/makeTxn.js +26 -0
  27. package/dist/esm/makeTxn.js.map +1 -1
  28. package/dist/types/abi/contract.d.ts +4 -0
  29. package/dist/types/abi/event.d.ts +16 -0
  30. package/dist/types/abi/method.d.ts +7 -0
  31. package/dist/types/client/v2/algod/models/types.d.ts +175 -5
  32. package/dist/types/client/v2/indexer/models/types.d.ts +189 -131
  33. package/dist/types/makeTxn.d.ts +29 -1
  34. package/package.json +2 -2
  35. package/src/abi/contract.ts +6 -0
  36. package/src/abi/event.ts +16 -0
  37. package/src/abi/method.ts +12 -0
  38. package/src/client/v2/algod/models/types.ts +337 -0
  39. package/src/client/v2/indexer/models/types.ts +241 -127
  40. package/src/makeTxn.ts +29 -1
package/src/makeTxn.ts CHANGED
@@ -39,6 +39,8 @@ import { RenameProperties, RenameProperty, Expand } from './types/utils';
39
39
  * genesisHash - string specifies hash genesis block of network in use
40
40
  * genesisID - string specifies genesis ID of network in use
41
41
  * @param rekeyTo - rekeyTo address, optional
42
+ *
43
+ * @deprecated This function will be removed in v3 in favor of {@link makePaymentTxnWithSuggestedParamsFromObject}
42
44
  */
43
45
  export function makePaymentTxnWithSuggestedParams(
44
46
  from: PaymentTxn['from'],
@@ -111,6 +113,8 @@ export function makePaymentTxnWithSuggestedParamsFromObject(
111
113
  * @param nonParticipation - configure whether the address wants to stop participating. If true,
112
114
  * voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.
113
115
  * @param stateProofKey - state proof key. for key deregistration, leave undefined
116
+ *
117
+ * @deprecated This function will be removed in v3 in favor of {@link makeKeyRegistrationTxnWithSuggestedParamsFromObject}
114
118
  */
115
119
  export function makeKeyRegistrationTxnWithSuggestedParams(
116
120
  from: KeyRegistrationTxn['from'],
@@ -135,7 +139,7 @@ export function makeKeyRegistrationTxnWithSuggestedParams(
135
139
  voteKeyDilution: undefined,
136
140
  suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'],
137
141
  rekeyTo?: KeyRegistrationTxn['reKeyTo'],
138
- nonParticipation?: true,
142
+ nonParticipation?: boolean,
139
143
  stateProofKey?: undefined
140
144
  ): txnBuilder.Transaction;
141
145
  export function makeKeyRegistrationTxnWithSuggestedParams(
@@ -245,6 +249,8 @@ export function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: any) {
245
249
  * genesisHash - string specifies hash genesis block of network in use
246
250
  * genesisID - string specifies genesis ID of network in use
247
251
  * @param rekeyTo - rekeyTo address, optional
252
+ *
253
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetCreateTxnWithSuggestedParamsFromObject}
248
254
  */
249
255
  export function makeAssetCreateTxnWithSuggestedParams(
250
256
  from: AssetCreateTxn['from'],
@@ -360,6 +366,8 @@ export function makeAssetCreateTxnWithSuggestedParamsFromObject(
360
366
  * genesisHash - string specifies hash genesis block of network in use
361
367
  * genesisID - string specifies genesis ID of network in use
362
368
  * @param rekeyTo - rekeyTo address, optional
369
+ *
370
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetConfigTxnWithSuggestedParamsFromObject}
363
371
  */
364
372
  export function makeAssetConfigTxnWithSuggestedParams(
365
373
  from: AssetConfigTxn['from'],
@@ -456,6 +464,8 @@ export function makeAssetConfigTxnWithSuggestedParamsFromObject(
456
464
  * genesisHash - string specifies hash genesis block of network in use
457
465
  * genesisID - string specifies genesis ID of network in use
458
466
  * @param rekeyTo - rekeyTo address, optional
467
+ *
468
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetDestroyTxnWithSuggestedParamsFromObject}
459
469
  */
460
470
  export function makeAssetDestroyTxnWithSuggestedParams(
461
471
  from: AssetDestroyTxn['from'],
@@ -514,6 +524,8 @@ export function makeAssetDestroyTxnWithSuggestedParamsFromObject(
514
524
  * genesisHash - string specifies hash genesis block of network in use
515
525
  * genesisID - string specifies genesis ID of network in use
516
526
  * @param rekeyTo - rekeyTo address, optional
527
+ *
528
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetFreezeTxnWithSuggestedParamsFromObject}
517
529
  */
518
530
  export function makeAssetFreezeTxnWithSuggestedParams(
519
531
  from: AssetFreezeTxn['from'],
@@ -592,6 +604,8 @@ export function makeAssetFreezeTxnWithSuggestedParamsFromObject(
592
604
  * genesisHash - string specifies hash genesis block of network in use
593
605
  * genesisID - string specifies genesis ID of network in use
594
606
  * @param rekeyTo - rekeyTo address, optional
607
+ *
608
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetTransferTxnWithSuggestedParamsFromObject}
595
609
  */
596
610
  export function makeAssetTransferTxnWithSuggestedParams(
597
611
  from: AssetTransferTxn['from'],
@@ -682,6 +696,8 @@ export function makeAssetTransferTxnWithSuggestedParamsFromObject(
682
696
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
683
697
  * @param extraPages - integer extra pages of memory to rent on creation of application
684
698
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
699
+ *
700
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationCreateTxnFromObject}
685
701
  */
686
702
  export function makeApplicationCreateTxn(
687
703
  from: AppCreateTxn['from'],
@@ -813,6 +829,8 @@ export function makeApplicationCreateTxnFromObject(
813
829
  * @param lease - Lease a transaction
814
830
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
815
831
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
832
+ *
833
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationUpdateTxnFromObject}
816
834
  */
817
835
  export function makeApplicationUpdateTxn(
818
836
  from: AppUpdateTxn['from'],
@@ -917,6 +935,8 @@ export function makeApplicationUpdateTxnFromObject(
917
935
  * @param lease - Lease a transaction
918
936
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
919
937
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
938
+ *
939
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationDeleteTxnFromObject}
920
940
  */
921
941
  export function makeApplicationDeleteTxn(
922
942
  from: AppDeleteTxn['from'],
@@ -1011,6 +1031,8 @@ export function makeApplicationDeleteTxnFromObject(
1011
1031
  * @param lease - Lease a transaction
1012
1032
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
1013
1033
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
1034
+ *
1035
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationOptInTxnFromObject}
1014
1036
  */
1015
1037
  export function makeApplicationOptInTxn(
1016
1038
  from: AppOptInTxn['from'],
@@ -1105,6 +1127,8 @@ export function makeApplicationOptInTxnFromObject(
1105
1127
  * @param lease - Lease a transaction
1106
1128
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
1107
1129
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
1130
+ *
1131
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationCloseOutTxnFromObject}
1108
1132
  */
1109
1133
  export function makeApplicationCloseOutTxn(
1110
1134
  from: AppCloseOutTxn['from'],
@@ -1199,6 +1223,8 @@ export function makeApplicationCloseOutTxnFromObject(
1199
1223
  * @param lease - Lease a transaction
1200
1224
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
1201
1225
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
1226
+ *
1227
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationClearStateTxnFromObject}
1202
1228
  */
1203
1229
  export function makeApplicationClearStateTxn(
1204
1230
  from: AppClearStateTxn['from'],
@@ -1293,6 +1319,8 @@ export function makeApplicationClearStateTxnFromObject(
1293
1319
  * @param lease - Lease a transaction
1294
1320
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
1295
1321
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
1322
+ *
1323
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationNoOpTxnFromObject}
1296
1324
  */
1297
1325
  export function makeApplicationNoOpTxn(
1298
1326
  from: AppNoOpTxn['from'],