algosdk 1.14.0-beta.1 → 1.15.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 (102) 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/src/client/client.js +16 -41
  5. package/dist/cjs/src/client/client.js.map +1 -1
  6. package/dist/cjs/src/client/v2/algod/accountApplicationInformation.js +20 -0
  7. package/dist/cjs/src/client/v2/algod/accountApplicationInformation.js.map +1 -0
  8. package/dist/cjs/src/client/v2/algod/accountAssetInformation.js +20 -0
  9. package/dist/cjs/src/client/v2/algod/accountAssetInformation.js.map +1 -0
  10. package/dist/cjs/src/client/v2/algod/accountInformation.js +18 -0
  11. package/dist/cjs/src/client/v2/algod/accountInformation.js.map +1 -1
  12. package/dist/cjs/src/client/v2/algod/algod.js +38 -0
  13. package/dist/cjs/src/client/v2/algod/algod.js.map +1 -1
  14. package/dist/cjs/src/client/v2/algod/models/types.js +73 -8
  15. package/dist/cjs/src/client/v2/algod/models/types.js.map +1 -1
  16. package/dist/cjs/src/client/v2/indexer/indexer.js +68 -0
  17. package/dist/cjs/src/client/v2/indexer/indexer.js.map +1 -1
  18. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js +110 -0
  19. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
  20. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js +110 -0
  21. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js.map +1 -0
  22. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js +5 -0
  23. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  24. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js +110 -0
  25. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
  26. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js +110 -0
  27. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
  28. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js +280 -15
  29. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  30. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js +0 -18
  31. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  32. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js +37 -1
  33. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  34. package/dist/cjs/src/client/v2/indexer/searchAccounts.js +5 -0
  35. package/dist/cjs/src/client/v2/indexer/searchAccounts.js.map +1 -1
  36. package/dist/cjs/src/client/v2/indexer/searchForApplications.js +5 -0
  37. package/dist/cjs/src/client/v2/indexer/searchForApplications.js.map +1 -1
  38. package/dist/cjs/src/client/v2/jsonrequest.js +3 -0
  39. package/dist/cjs/src/client/v2/jsonrequest.js.map +1 -1
  40. package/dist/cjs/src/dryrun.js +1 -1
  41. package/dist/cjs/src/dryrun.js.map +1 -1
  42. package/dist/cjs/src/makeTxn.js.map +1 -1
  43. package/dist/esm/src/client/client.js +16 -41
  44. package/dist/esm/src/client/client.js.map +1 -1
  45. package/dist/esm/src/client/v2/algod/accountApplicationInformation.js +14 -0
  46. package/dist/esm/src/client/v2/algod/accountApplicationInformation.js.map +1 -0
  47. package/dist/esm/src/client/v2/algod/accountAssetInformation.js +14 -0
  48. package/dist/esm/src/client/v2/algod/accountAssetInformation.js.map +1 -0
  49. package/dist/esm/src/client/v2/algod/accountInformation.js +18 -0
  50. package/dist/esm/src/client/v2/algod/accountInformation.js.map +1 -1
  51. package/dist/esm/src/client/v2/algod/algod.js +38 -0
  52. package/dist/esm/src/client/v2/algod/algod.js.map +1 -1
  53. package/dist/esm/src/client/v2/algod/models/types.js +70 -7
  54. package/dist/esm/src/client/v2/algod/models/types.js.map +1 -1
  55. package/dist/esm/src/client/v2/indexer/indexer.js +68 -0
  56. package/dist/esm/src/client/v2/indexer/indexer.js.map +1 -1
  57. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js +104 -0
  58. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
  59. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js +104 -0
  60. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js.map +1 -0
  61. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js +5 -0
  62. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  63. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js +104 -0
  64. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
  65. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js +104 -0
  66. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
  67. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js +280 -15
  68. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  69. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js +0 -18
  70. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  71. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js +37 -1
  72. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  73. package/dist/esm/src/client/v2/indexer/searchAccounts.js +5 -0
  74. package/dist/esm/src/client/v2/indexer/searchAccounts.js.map +1 -1
  75. package/dist/esm/src/client/v2/indexer/searchForApplications.js +5 -0
  76. package/dist/esm/src/client/v2/indexer/searchForApplications.js.map +1 -1
  77. package/dist/esm/src/client/v2/jsonrequest.js +3 -0
  78. package/dist/esm/src/client/v2/jsonrequest.js.map +1 -1
  79. package/dist/esm/src/dryrun.js +1 -1
  80. package/dist/esm/src/dryrun.js.map +1 -1
  81. package/dist/esm/src/makeTxn.js.map +1 -1
  82. package/dist/types/src/client/client.d.ts +7 -7
  83. package/dist/types/src/client/v2/algod/accountApplicationInformation.d.ts +9 -0
  84. package/dist/types/src/client/v2/algod/accountAssetInformation.d.ts +9 -0
  85. package/dist/types/src/client/v2/algod/accountInformation.d.ts +15 -0
  86. package/dist/types/src/client/v2/algod/algod.d.ts +34 -0
  87. package/dist/types/src/client/v2/algod/models/types.d.ts +95 -13
  88. package/dist/types/src/client/v2/indexer/indexer.d.ts +60 -0
  89. package/dist/types/src/client/v2/indexer/lookupAccountAppLocalStates.d.ts +85 -0
  90. package/dist/types/src/client/v2/indexer/lookupAccountAssets.d.ts +85 -0
  91. package/dist/types/src/client/v2/indexer/lookupAccountByID.d.ts +1 -0
  92. package/dist/types/src/client/v2/indexer/lookupAccountCreatedApplications.d.ts +85 -0
  93. package/dist/types/src/client/v2/indexer/lookupAccountCreatedAssets.d.ts +85 -0
  94. package/dist/types/src/client/v2/indexer/lookupAccountTransactions.d.ts +280 -1
  95. package/dist/types/src/client/v2/indexer/lookupAssetBalances.d.ts +0 -15
  96. package/dist/types/src/client/v2/indexer/lookupAssetByID.d.ts +37 -0
  97. package/dist/types/src/client/v2/indexer/searchAccounts.d.ts +1 -0
  98. package/dist/types/src/client/v2/indexer/searchForApplications.d.ts +1 -0
  99. package/dist/types/src/client/v2/jsonrequest.d.ts +4 -0
  100. package/dist/types/src/makeTxn.d.ts +31 -31
  101. package/dist/types/src/types/utils.d.ts +7 -0
  102. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import * as txnBuilder from './transaction';
2
2
  import { PaymentTxn, KeyRegistrationTxn, MustHaveSuggestedParams, MustHaveSuggestedParamsInline, AssetCreateTxn, AssetConfigTxn, AssetDestroyTxn, AssetFreezeTxn, AssetTransferTxn, AppCreateTxn, AppUpdateTxn, AppDeleteTxn, AppOptInTxn, AppCloseOutTxn, AppClearStateTxn, AppNoOpTxn } from './types/transactions';
3
- import { RenameProperties, RenameProperty } from './types/utils';
3
+ import { RenameProperties, RenameProperty, Expand } from './types/utils';
4
4
  /**
5
5
  * makePaymentTxnWithSuggestedParams takes payment arguments and returns a Transaction object
6
6
  * @param from - string representation of Algorand address of sender
@@ -36,7 +36,7 @@ export declare function makePaymentTxnWithSuggestedParams(from: PaymentTxn['from
36
36
  * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
37
37
  */
38
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
- export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Pick<RenameProperty<MustHaveSuggestedParams<PaymentTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'to' | 'amount' | 'closeRemainderTo' | 'note' | 'suggestedParams' | 'rekeyTo'>): txnBuilder.Transaction;
39
+ export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<PaymentTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'to' | 'amount' | 'closeRemainderTo' | 'note' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
40
40
  /**
41
41
  * makeKeyRegistrationTxnWithSuggestedParams takes key registration arguments and returns a Transaction object for
42
42
  * that key registration operation
@@ -88,12 +88,12 @@ export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegis
88
88
  */
89
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
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
- export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'voteKey' | 'selectionKey' | 'stateProofKey' | 'voteFirst' | 'voteLast' | 'voteKeyDilution' | 'suggestedParams' | 'rekeyTo'> & {
91
+ export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'voteKey' | 'selectionKey' | 'stateProofKey' | 'voteFirst' | 'voteLast' | 'voteKeyDilution' | 'suggestedParams' | 'rekeyTo'> & {
92
92
  nonParticipation?: false;
93
- }): txnBuilder.Transaction;
94
- export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'suggestedParams' | 'rekeyTo'> & {
93
+ }>): txnBuilder.Transaction;
94
+ export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'suggestedParams' | 'rekeyTo'> & {
95
95
  nonParticipation: true;
96
- }): txnBuilder.Transaction;
96
+ }>): txnBuilder.Transaction;
97
97
  /** makeAssetCreateTxnWithSuggestedParams takes asset creation arguments and returns a Transaction object
98
98
  * for creating that asset
99
99
  *
@@ -147,7 +147,7 @@ export declare function makeAssetCreateTxnWithSuggestedParams(from: AssetCreateT
147
147
  * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
148
148
  */
149
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
- export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AssetCreateTxn>, {
150
+ export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetCreateTxn>, {
151
151
  reKeyTo: 'rekeyTo';
152
152
  assetTotal: 'total';
153
153
  assetDecimals: 'decimals';
@@ -157,7 +157,7 @@ export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Pick<
157
157
  assetFreeze: 'freeze';
158
158
  assetClawback: 'clawback';
159
159
  assetUnitName: 'unitName';
160
- }>, 'from' | 'note' | 'total' | 'decimals' | 'defaultFrozen' | 'manager' | 'reserve' | 'freeze' | 'clawback' | 'unitName' | 'assetName' | 'assetURL' | 'assetMetadataHash' | 'suggestedParams' | 'rekeyTo'>): txnBuilder.Transaction;
160
+ }>, 'from' | 'note' | 'total' | 'decimals' | 'defaultFrozen' | 'manager' | 'reserve' | 'freeze' | 'clawback' | 'unitName' | 'assetName' | 'assetURL' | 'assetMetadataHash' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
161
161
  /** makeAssetConfigTxnWithSuggestedParams can be issued by the asset manager to change the manager, reserve, freeze, or clawback
162
162
  * you must respecify existing addresses to keep them the same; leaving a field blank is the same as turning
163
163
  * that feature off for this asset
@@ -203,7 +203,7 @@ export declare function makeAssetConfigTxnWithSuggestedParams(from: AssetConfigT
203
203
  * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
204
204
  */
205
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
- export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AssetConfigTxn>, {
206
+ export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetConfigTxn>, {
207
207
  reKeyTo: 'rekeyTo';
208
208
  assetManager: 'manager';
209
209
  assetReserve: 'reserve';
@@ -211,7 +211,7 @@ export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Pick<
211
211
  assetClawback: 'clawback';
212
212
  }>, 'from' | 'note' | 'assetIndex' | 'manager' | 'reserve' | 'freeze' | 'clawback' | 'suggestedParams' | 'rekeyTo'> & {
213
213
  strictEmptyAddressChecking: boolean;
214
- }): txnBuilder.Transaction;
214
+ }>): txnBuilder.Transaction;
215
215
  /** makeAssetDestroyTxnWithSuggestedParams will allow the asset's manager to remove this asset from the ledger, so long
216
216
  * as all outstanding assets are held by the creator.
217
217
  *
@@ -245,7 +245,7 @@ export declare function makeAssetDestroyTxnWithSuggestedParams(from: AssetDestro
245
245
  * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
246
246
  */
247
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
- export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Pick<RenameProperty<MustHaveSuggestedParams<AssetDestroyTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>): txnBuilder.Transaction;
248
+ export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<AssetDestroyTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
249
249
  /** makeAssetFreezeTxnWithSuggestedParams will allow the asset's freeze manager to freeze or un-freeze an account,
250
250
  * blocking or allowing asset transfers to and from the targeted account.
251
251
  *
@@ -283,10 +283,10 @@ export declare function makeAssetFreezeTxnWithSuggestedParams(from: AssetFreezeT
283
283
  * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
284
284
  */
285
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
- export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AssetFreezeTxn>, {
286
+ export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetFreezeTxn>, {
287
287
  freezeAccount: 'freezeTarget';
288
288
  reKeyTo: 'rekeyTo';
289
- }>, 'from' | 'note' | 'assetIndex' | 'freezeTarget' | 'freezeState' | 'suggestedParams' | 'rekeyTo'>): txnBuilder.Transaction;
289
+ }>, 'from' | 'note' | 'assetIndex' | 'freezeTarget' | 'freezeState' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
290
290
  /** makeAssetTransferTxnWithSuggestedParams allows for the creation of an asset transfer transaction.
291
291
  * Special case: to begin accepting assets, set amount=0 and from=to.
292
292
  *
@@ -334,10 +334,10 @@ export declare function makeAssetTransferTxnWithSuggestedParams(from: AssetTrans
334
334
  * @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
335
335
  */
336
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
- export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AssetTransferTxn>, {
337
+ export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetTransferTxn>, {
338
338
  assetRevocationTarget: 'revocationTarget';
339
339
  reKeyTo: 'rekeyTo';
340
- }>, 'from' | 'to' | 'closeRemainderTo' | 'revocationTarget' | 'amount' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>): txnBuilder.Transaction;
340
+ }>, 'from' | 'to' | 'closeRemainderTo' | 'revocationTarget' | 'amount' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
341
341
  /**
342
342
  * Make a transaction that will create an application.
343
343
  * @param from - address of sender
@@ -366,7 +366,7 @@ export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Pic
366
366
  * @param extraPages - integer extra pages of memory to rent on creation of application
367
367
  */
368
368
  export declare function makeApplicationCreateTxn(from: AppCreateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCreateTxn>['suggestedParams'], onComplete: AppCreateTxn['appOnComplete'], approvalProgram: AppCreateTxn['appApprovalProgram'], clearProgram: AppCreateTxn['appClearProgram'], numLocalInts: AppCreateTxn['appLocalInts'], numLocalByteSlices: AppCreateTxn['appLocalByteSlices'], numGlobalInts: AppCreateTxn['appGlobalInts'], numGlobalByteSlices: AppCreateTxn['appGlobalByteSlices'], appArgs?: AppCreateTxn['appArgs'], accounts?: AppCreateTxn['appAccounts'], foreignApps?: AppCreateTxn['appForeignApps'], foreignAssets?: AppCreateTxn['appForeignAssets'], note?: AppCreateTxn['note'], lease?: AppCreateTxn['lease'], rekeyTo?: AppCreateTxn['reKeyTo'], extraPages?: AppCreateTxn['extraPages']): txnBuilder.Transaction;
369
- export declare function makeApplicationCreateTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
369
+ export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
370
370
  appOnComplete: 'onComplete';
371
371
  appApprovalProgram: 'approvalProgram';
372
372
  appClearProgram: 'clearProgram';
@@ -378,7 +378,7 @@ export declare function makeApplicationCreateTxnFromObject(o: Pick<RenamePropert
378
378
  appForeignApps: 'foreignApps';
379
379
  appForeignAssets: 'foreignAssets';
380
380
  reKeyTo: 'rekeyTo';
381
- }>, 'from' | 'suggestedParams' | 'onComplete' | 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'>): txnBuilder.Transaction;
381
+ }>, 'from' | 'suggestedParams' | 'onComplete' | 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'>>): txnBuilder.Transaction;
382
382
  /**
383
383
  * Make a transaction that changes an application's approval and clear programs
384
384
  * @param from - address of sender
@@ -402,14 +402,14 @@ export declare function makeApplicationCreateTxnFromObject(o: Pick<RenamePropert
402
402
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
403
403
  */
404
404
  export declare function makeApplicationUpdateTxn(from: AppUpdateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppUpdateTxn>['suggestedParams'], appIndex: AppUpdateTxn['appIndex'], approvalProgram: AppUpdateTxn['appApprovalProgram'], clearProgram: AppUpdateTxn['appClearProgram'], appArgs?: AppUpdateTxn['appArgs'], accounts?: AppUpdateTxn['appAccounts'], foreignApps?: AppUpdateTxn['appForeignApps'], foreignAssets?: AppUpdateTxn['appForeignAssets'], note?: AppUpdateTxn['note'], lease?: AppUpdateTxn['lease'], rekeyTo?: AppUpdateTxn['reKeyTo']): txnBuilder.Transaction;
405
- export declare function makeApplicationUpdateTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppUpdateTxn>, {
405
+ export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppUpdateTxn>, {
406
406
  appApprovalProgram: 'approvalProgram';
407
407
  appClearProgram: 'clearProgram';
408
408
  appAccounts: 'accounts';
409
409
  appForeignApps: 'foreignApps';
410
410
  appForeignAssets: 'foreignAssets';
411
411
  reKeyTo: 'rekeyTo';
412
- }>, 'from' | 'suggestedParams' | 'appIndex' | 'approvalProgram' | 'clearProgram' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>): txnBuilder.Transaction;
412
+ }>, 'from' | 'suggestedParams' | 'appIndex' | 'approvalProgram' | 'clearProgram' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
413
413
  /**
414
414
  * Make a transaction that deletes an application
415
415
  * @param from - address of sender
@@ -431,12 +431,12 @@ export declare function makeApplicationUpdateTxnFromObject(o: Pick<RenamePropert
431
431
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
432
432
  */
433
433
  export declare function makeApplicationDeleteTxn(from: AppDeleteTxn['from'], suggestedParams: MustHaveSuggestedParams<AppDeleteTxn>['suggestedParams'], appIndex: AppDeleteTxn['appIndex'], appArgs?: AppDeleteTxn['appArgs'], accounts?: AppDeleteTxn['appAccounts'], foreignApps?: AppDeleteTxn['appForeignApps'], foreignAssets?: AppDeleteTxn['appForeignAssets'], note?: AppDeleteTxn['note'], lease?: AppDeleteTxn['lease'], rekeyTo?: AppDeleteTxn['reKeyTo']): txnBuilder.Transaction;
434
- export declare function makeApplicationDeleteTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppDeleteTxn>, {
434
+ export declare function makeApplicationDeleteTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppDeleteTxn>, {
435
435
  appAccounts: 'accounts';
436
436
  appForeignApps: 'foreignApps';
437
437
  appForeignAssets: 'foreignAssets';
438
438
  reKeyTo: 'rekeyTo';
439
- }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>): txnBuilder.Transaction;
439
+ }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
440
440
  /**
441
441
  * Make a transaction that opts in to use an application
442
442
  * @param from - address of sender
@@ -458,12 +458,12 @@ export declare function makeApplicationDeleteTxnFromObject(o: Pick<RenamePropert
458
458
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
459
459
  */
460
460
  export declare function makeApplicationOptInTxn(from: AppOptInTxn['from'], suggestedParams: MustHaveSuggestedParams<AppOptInTxn>['suggestedParams'], appIndex: AppOptInTxn['appIndex'], appArgs?: AppOptInTxn['appArgs'], accounts?: AppOptInTxn['appAccounts'], foreignApps?: AppOptInTxn['appForeignApps'], foreignAssets?: AppOptInTxn['appForeignAssets'], note?: AppOptInTxn['note'], lease?: AppOptInTxn['lease'], rekeyTo?: AppOptInTxn['reKeyTo']): txnBuilder.Transaction;
461
- export declare function makeApplicationOptInTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
461
+ export declare function makeApplicationOptInTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
462
462
  appAccounts: 'accounts';
463
463
  appForeignApps: 'foreignApps';
464
464
  appForeignAssets: 'foreignAssets';
465
465
  reKeyTo: 'rekeyTo';
466
- }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>): txnBuilder.Transaction;
466
+ }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
467
467
  /**
468
468
  * Make a transaction that closes out a user's state in an application
469
469
  * @param from - address of sender
@@ -485,12 +485,12 @@ export declare function makeApplicationOptInTxnFromObject(o: Pick<RenameProperti
485
485
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
486
486
  */
487
487
  export declare function makeApplicationCloseOutTxn(from: AppCloseOutTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCloseOutTxn>['suggestedParams'], appIndex: AppCloseOutTxn['appIndex'], appArgs?: AppCloseOutTxn['appArgs'], accounts?: AppCloseOutTxn['appAccounts'], foreignApps?: AppCloseOutTxn['appForeignApps'], foreignAssets?: AppCloseOutTxn['appForeignAssets'], note?: AppCloseOutTxn['note'], lease?: AppCloseOutTxn['lease'], rekeyTo?: AppCloseOutTxn['reKeyTo']): txnBuilder.Transaction;
488
- export declare function makeApplicationCloseOutTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
488
+ export declare function makeApplicationCloseOutTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
489
489
  appAccounts: 'accounts';
490
490
  appForeignApps: 'foreignApps';
491
491
  appForeignAssets: 'foreignAssets';
492
492
  reKeyTo: 'rekeyTo';
493
- }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>): txnBuilder.Transaction;
493
+ }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
494
494
  /**
495
495
  * Make a transaction that clears a user's state in an application
496
496
  * @param from - address of sender
@@ -512,12 +512,12 @@ export declare function makeApplicationCloseOutTxnFromObject(o: Pick<RenamePrope
512
512
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
513
513
  */
514
514
  export declare function makeApplicationClearStateTxn(from: AppClearStateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppClearStateTxn>['suggestedParams'], appIndex: AppClearStateTxn['appIndex'], appArgs?: AppClearStateTxn['appArgs'], accounts?: AppClearStateTxn['appAccounts'], foreignApps?: AppClearStateTxn['appForeignApps'], foreignAssets?: AppClearStateTxn['appForeignAssets'], note?: AppClearStateTxn['note'], lease?: AppClearStateTxn['lease'], rekeyTo?: AppClearStateTxn['reKeyTo']): txnBuilder.Transaction;
515
- export declare function makeApplicationClearStateTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
515
+ export declare function makeApplicationClearStateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
516
516
  appAccounts: 'accounts';
517
517
  appForeignApps: 'foreignApps';
518
518
  appForeignAssets: 'foreignAssets';
519
519
  reKeyTo: 'rekeyTo';
520
- }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>): txnBuilder.Transaction;
520
+ }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
521
521
  /**
522
522
  * Make a transaction that just calls an application, doing nothing on completion
523
523
  * @param from - address of sender
@@ -539,17 +539,17 @@ export declare function makeApplicationClearStateTxnFromObject(o: Pick<RenamePro
539
539
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
540
540
  */
541
541
  export declare function makeApplicationNoOpTxn(from: AppNoOpTxn['from'], suggestedParams: MustHaveSuggestedParams<AppNoOpTxn>['suggestedParams'], appIndex: AppNoOpTxn['appIndex'], appArgs?: AppNoOpTxn['appArgs'], accounts?: AppNoOpTxn['appAccounts'], foreignApps?: AppNoOpTxn['appForeignApps'], foreignAssets?: AppNoOpTxn['appForeignAssets'], note?: AppNoOpTxn['note'], lease?: AppNoOpTxn['lease'], rekeyTo?: AppNoOpTxn['reKeyTo']): txnBuilder.Transaction;
542
- export declare function makeApplicationNoOpTxnFromObject(o: Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
542
+ export declare function makeApplicationNoOpTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
543
543
  appAccounts: 'accounts';
544
544
  appForeignApps: 'foreignApps';
545
545
  appForeignAssets: 'foreignAssets';
546
546
  reKeyTo: 'rekeyTo';
547
- }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>): txnBuilder.Transaction;
547
+ }>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
548
548
  export { OnApplicationComplete } from './types/transactions/base';
549
549
  /**
550
550
  * Generic function for creating any application call transaction.
551
551
  */
552
- export declare function makeApplicationCallTxnFromObject(options: Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
552
+ export declare function makeApplicationCallTxnFromObject(options: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
553
553
  appOnComplete: 'onComplete';
554
554
  appAccounts: 'accounts';
555
555
  appForeignApps: 'foreignApps';
@@ -562,4 +562,4 @@ export declare function makeApplicationCallTxnFromObject(options: Pick<RenamePro
562
562
  appLocalByteSlices: 'numLocalByteSlices';
563
563
  appGlobalInts: 'numGlobalInts';
564
564
  appGlobalByteSlices: 'numGlobalByteSlices';
565
- }>, 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices'>>): txnBuilder.Transaction;
565
+ }>, 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices'>>>): txnBuilder.Transaction;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Expands types for IntelliSense so they are more human readable
3
+ * See https://stackoverflow.com/a/69288824
4
+ */
5
+ export declare type Expand<T> = T extends (...args: infer A) => infer R ? (...args: Expand<A>) => Expand<R> : T extends infer O ? {
6
+ [K in keyof O]: O[K];
7
+ } : never;
1
8
  /**
2
9
  * Same as TypeScript's Pick, but will distribute the Pick over unions
3
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algosdk",
3
- "version": "1.14.0-beta.1",
3
+ "version": "1.15.0",
4
4
  "description": "The official JavaScript SDK for Algorand",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -36,7 +36,7 @@
36
36
  "@typescript-eslint/eslint-plugin": "^4.26.1",
37
37
  "@typescript-eslint/parser": "^4.26.1",
38
38
  "assert": "^2.0.0",
39
- "chromedriver": "^97.0.0",
39
+ "chromedriver": "^99.0.0",
40
40
  "concurrently": "^6.2.0",
41
41
  "coveralls": "^3.1.0",
42
42
  "cucumber": "^5.1.0",
@@ -59,7 +59,7 @@
59
59
  "source-map-loader": "^2.0.2",
60
60
  "ts-loader": "^8.3.0",
61
61
  "ts-node": "^10.0.0",
62
- "typedoc": "^0.22.10",
62
+ "typedoc": "^0.22.11",
63
63
  "typedoc-plugin-missing-exports": "^0.22.6",
64
64
  "typedoc-plugin-rename-defaults": "^0.4.0",
65
65
  "typescript": "^4.2.3",