algosdk 3.0.0-beta.1 → 3.0.0-beta.2
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.
- package/README.md +4 -4
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/client/urlTokenBaseHTTPClient.js +1 -1
- package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js +1 -1
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountAssetInformation.js +1 -1
- package/dist/cjs/client/v2/algod/accountAssetInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/algod.js +2 -2
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/block.js +1 -1
- package/dist/cjs/client/v2/algod/block.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationByID.js +1 -1
- package/dist/cjs/client/v2/algod/getApplicationByID.js.map +1 -1
- package/dist/cjs/client/v2/algod/getAssetByID.js +1 -1
- package/dist/cjs/client/v2/algod/getAssetByID.js.map +1 -1
- package/dist/cjs/client/v2/algod/getBlockHash.js +1 -1
- package/dist/cjs/client/v2/algod/getBlockHash.js.map +1 -1
- package/dist/cjs/client/v2/algod/getBlockTxids.js +1 -3
- package/dist/cjs/client/v2/algod/getBlockTxids.js.map +1 -1
- package/dist/cjs/client/v2/algod/getLedgerStateDelta.js +1 -1
- package/dist/cjs/client/v2/algod/getLedgerStateDelta.js.map +1 -1
- package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js +1 -1
- package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/getTransactionProof.js +1 -1
- package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -1
- package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js +1 -1
- package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js.map +1 -1
- package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js +1 -1
- package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
- package/dist/cjs/client/v2/algod/setSyncRound.js +1 -1
- package/dist/cjs/client/v2/algod/setSyncRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/stateproof.js +1 -1
- package/dist/cjs/client/v2/algod/stateproof.js.map +1 -1
- package/dist/cjs/client/v2/algod/statusAfterBlock.js +1 -3
- package/dist/cjs/client/v2/algod/statusAfterBlock.js.map +1 -1
- package/dist/cjs/client/v2/indexer/indexer.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountAssets.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountByID.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplications.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupBlock.js +1 -1
- package/dist/cjs/client/v2/indexer/lookupBlock.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchAccounts.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js +1 -1
- package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForAssets.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -1
- package/dist/cjs/composer.js +1 -1
- package/dist/cjs/composer.js.map +1 -1
- package/dist/cjs/wait.js +4 -3
- package/dist/cjs/wait.js.map +1 -1
- package/dist/esm/client/urlTokenBaseHTTPClient.js +1 -1
- package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/esm/client/v2/algod/accountApplicationInformation.js +1 -1
- package/dist/esm/client/v2/algod/accountApplicationInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/accountAssetInformation.js +1 -1
- package/dist/esm/client/v2/algod/accountAssetInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/algod.js +2 -2
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/block.js +1 -1
- package/dist/esm/client/v2/algod/block.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxes.js +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationByID.js +1 -1
- package/dist/esm/client/v2/algod/getApplicationByID.js.map +1 -1
- package/dist/esm/client/v2/algod/getAssetByID.js +1 -1
- package/dist/esm/client/v2/algod/getAssetByID.js.map +1 -1
- package/dist/esm/client/v2/algod/getBlockHash.js +1 -1
- package/dist/esm/client/v2/algod/getBlockHash.js.map +1 -1
- package/dist/esm/client/v2/algod/getBlockTxids.js +1 -3
- package/dist/esm/client/v2/algod/getBlockTxids.js.map +1 -1
- package/dist/esm/client/v2/algod/getLedgerStateDelta.js +1 -1
- package/dist/esm/client/v2/algod/getLedgerStateDelta.js.map +1 -1
- package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js +1 -1
- package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
- package/dist/esm/client/v2/algod/getTransactionProof.js +1 -1
- package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -1
- package/dist/esm/client/v2/algod/lightBlockHeaderProof.js +1 -1
- package/dist/esm/client/v2/algod/lightBlockHeaderProof.js.map +1 -1
- package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js +1 -1
- package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
- package/dist/esm/client/v2/algod/setSyncRound.js +1 -1
- package/dist/esm/client/v2/algod/setSyncRound.js.map +1 -1
- package/dist/esm/client/v2/algod/stateproof.js +1 -1
- package/dist/esm/client/v2/algod/stateproof.js.map +1 -1
- package/dist/esm/client/v2/algod/statusAfterBlock.js +1 -3
- package/dist/esm/client/v2/algod/statusAfterBlock.js.map +1 -1
- package/dist/esm/client/v2/indexer/indexer.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountAssets.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountByID.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplications.js +1 -1
- package/dist/esm/client/v2/indexer/lookupApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetByID.js +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetByID.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupBlock.js +1 -1
- package/dist/esm/client/v2/indexer/lookupBlock.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchAccounts.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js +1 -1
- package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForAssets.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -1
- package/dist/esm/composer.js +1 -1
- package/dist/esm/composer.js.map +1 -1
- package/dist/esm/wait.js +4 -3
- package/dist/esm/wait.js.map +1 -1
- package/dist/types/client/v2/algod/accountApplicationInformation.d.ts +2 -2
- package/dist/types/client/v2/algod/accountAssetInformation.d.ts +2 -2
- package/dist/types/client/v2/algod/algod.d.ts +17 -17
- package/dist/types/client/v2/algod/block.d.ts +1 -1
- package/dist/types/client/v2/algod/getApplicationBoxByName.d.ts +1 -1
- package/dist/types/client/v2/algod/getApplicationBoxes.d.ts +1 -1
- package/dist/types/client/v2/algod/getBlockHash.d.ts +2 -2
- package/dist/types/client/v2/algod/getBlockTxids.d.ts +2 -2
- package/dist/types/client/v2/algod/getLedgerStateDelta.d.ts +1 -1
- package/dist/types/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.d.ts +1 -1
- package/dist/types/client/v2/algod/getTransactionProof.d.ts +2 -2
- package/dist/types/client/v2/algod/lightBlockHeaderProof.d.ts +1 -1
- package/dist/types/client/v2/algod/setBlockOffsetTimestamp.d.ts +1 -1
- package/dist/types/client/v2/algod/setSyncRound.d.ts +1 -1
- package/dist/types/client/v2/algod/stateproof.d.ts +1 -1
- package/dist/types/client/v2/algod/statusAfterBlock.d.ts +1 -1
- package/dist/types/client/v2/indexer/indexer.d.ts +8 -8
- package/dist/types/client/v2/indexer/lookupAccountAppLocalStates.d.ts +2 -2
- package/dist/types/client/v2/indexer/lookupAccountAssets.d.ts +2 -2
- package/dist/types/client/v2/indexer/lookupAccountByID.d.ts +1 -1
- package/dist/types/client/v2/indexer/lookupAccountCreatedApplications.d.ts +2 -2
- package/dist/types/client/v2/indexer/lookupAccountCreatedAssets.d.ts +2 -2
- package/dist/types/client/v2/indexer/lookupAccountTransactions.d.ts +6 -6
- package/dist/types/client/v2/indexer/lookupApplicationBoxByIDandName.d.ts +1 -1
- package/dist/types/client/v2/indexer/lookupApplicationLogs.d.ts +3 -3
- package/dist/types/client/v2/indexer/lookupApplications.d.ts +1 -1
- package/dist/types/client/v2/indexer/lookupAssetBalances.d.ts +3 -3
- package/dist/types/client/v2/indexer/lookupAssetByID.d.ts +1 -1
- package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +6 -6
- package/dist/types/client/v2/indexer/lookupBlock.d.ts +1 -1
- package/dist/types/client/v2/indexer/searchAccounts.d.ts +5 -5
- package/dist/types/client/v2/indexer/searchForApplicationBoxes.d.ts +1 -1
- package/dist/types/client/v2/indexer/searchForApplications.d.ts +1 -1
- package/dist/types/client/v2/indexer/searchForAssets.d.ts +1 -1
- package/dist/types/client/v2/indexer/searchForTransactions.d.ts +7 -7
- package/dist/types/composer.d.ts +1 -1
- package/package.json +1 -1
- package/src/client/urlTokenBaseHTTPClient.ts +1 -1
- package/src/client/v2/algod/accountApplicationInformation.ts +3 -1
- package/src/client/v2/algod/accountAssetInformation.ts +3 -1
- package/src/client/v2/algod/algod.ts +20 -17
- package/src/client/v2/algod/block.ts +3 -3
- package/src/client/v2/algod/getApplicationBoxByName.ts +4 -5
- package/src/client/v2/algod/getApplicationBoxes.ts +4 -4
- package/src/client/v2/algod/getApplicationByID.ts +4 -4
- package/src/client/v2/algod/getAssetByID.ts +4 -4
- package/src/client/v2/algod/getBlockHash.ts +3 -3
- package/src/client/v2/algod/getBlockTxids.ts +3 -5
- package/src/client/v2/algod/getLedgerStateDelta.ts +4 -4
- package/src/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.ts +4 -4
- package/src/client/v2/algod/getTransactionProof.ts +4 -1
- package/src/client/v2/algod/lightBlockHeaderProof.ts +4 -4
- package/src/client/v2/algod/setBlockOffsetTimestamp.ts +4 -4
- package/src/client/v2/algod/setSyncRound.ts +4 -4
- package/src/client/v2/algod/stateproof.ts +4 -4
- package/src/client/v2/algod/statusAfterBlock.ts +4 -5
- package/src/client/v2/indexer/indexer.ts +8 -8
- package/src/client/v2/indexer/lookupAccountAppLocalStates.ts +2 -2
- package/src/client/v2/indexer/lookupAccountAssets.ts +2 -2
- package/src/client/v2/indexer/lookupAccountByID.ts +1 -1
- package/src/client/v2/indexer/lookupAccountCreatedApplications.ts +2 -2
- package/src/client/v2/indexer/lookupAccountCreatedAssets.ts +2 -2
- package/src/client/v2/indexer/lookupAccountTransactions.ts +6 -6
- package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +4 -5
- package/src/client/v2/indexer/lookupApplicationLogs.ts +6 -6
- package/src/client/v2/indexer/lookupApplications.ts +4 -4
- package/src/client/v2/indexer/lookupAssetBalances.ts +6 -6
- package/src/client/v2/indexer/lookupAssetByID.ts +4 -4
- package/src/client/v2/indexer/lookupAssetTransactions.ts +9 -9
- package/src/client/v2/indexer/lookupBlock.ts +4 -4
- package/src/client/v2/indexer/searchAccounts.ts +5 -5
- package/src/client/v2/indexer/searchForApplicationBoxes.ts +4 -4
- package/src/client/v2/indexer/searchForApplications.ts +1 -1
- package/src/client/v2/indexer/searchForAssets.ts +1 -1
- package/src/client/v2/indexer/searchForTransactions.ts +7 -7
- package/src/composer.ts +2 -2
- package/src/wait.ts +4 -3
|
@@ -46,7 +46,7 @@ export default class SearchAccounts extends JSONRequest<AccountsResponse> {
|
|
|
46
46
|
* @param greater
|
|
47
47
|
* @category query
|
|
48
48
|
*/
|
|
49
|
-
currencyGreaterThan(greater: number): this;
|
|
49
|
+
currencyGreaterThan(greater: number | bigint): this;
|
|
50
50
|
/**
|
|
51
51
|
* Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
|
|
52
52
|
*
|
|
@@ -73,7 +73,7 @@ export default class SearchAccounts extends JSONRequest<AccountsResponse> {
|
|
|
73
73
|
* @param lesser
|
|
74
74
|
* @category query
|
|
75
75
|
*/
|
|
76
|
-
currencyLessThan(lesser: number): this;
|
|
76
|
+
currencyLessThan(lesser: number | bigint): this;
|
|
77
77
|
/**
|
|
78
78
|
* Maximum number of results to return.
|
|
79
79
|
*
|
|
@@ -105,7 +105,7 @@ export default class SearchAccounts extends JSONRequest<AccountsResponse> {
|
|
|
105
105
|
* @param id
|
|
106
106
|
* @category query
|
|
107
107
|
*/
|
|
108
|
-
assetID(id: number): this;
|
|
108
|
+
assetID(id: number | bigint): this;
|
|
109
109
|
/**
|
|
110
110
|
* The next page of results.
|
|
111
111
|
*
|
|
@@ -144,7 +144,7 @@ export default class SearchAccounts extends JSONRequest<AccountsResponse> {
|
|
|
144
144
|
* @param round
|
|
145
145
|
* @category query
|
|
146
146
|
*/
|
|
147
|
-
round(round: number): this;
|
|
147
|
+
round(round: number | bigint): this;
|
|
148
148
|
/**
|
|
149
149
|
* Include accounts that use this spending key.
|
|
150
150
|
*
|
|
@@ -175,7 +175,7 @@ export default class SearchAccounts extends JSONRequest<AccountsResponse> {
|
|
|
175
175
|
* @param applicationID
|
|
176
176
|
* @category query
|
|
177
177
|
*/
|
|
178
|
-
applicationID(applicationID: number): this;
|
|
178
|
+
applicationID(applicationID: number | bigint): this;
|
|
179
179
|
/**
|
|
180
180
|
* Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
|
|
181
181
|
*
|
|
@@ -29,7 +29,7 @@ export default class SearchForApplicationBoxes extends JSONRequest<BoxesResponse
|
|
|
29
29
|
* @oaram index - application index.
|
|
30
30
|
* @category GET
|
|
31
31
|
*/
|
|
32
|
-
constructor(c: HTTPClient, index: number);
|
|
32
|
+
constructor(c: HTTPClient, index: number | bigint);
|
|
33
33
|
/**
|
|
34
34
|
* @returns `/v2/applications/${index}/boxes`
|
|
35
35
|
*/
|
|
@@ -98,7 +98,7 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
98
98
|
* @param round
|
|
99
99
|
* @category query
|
|
100
100
|
*/
|
|
101
|
-
round(round: number): this;
|
|
101
|
+
round(round: number | bigint): this;
|
|
102
102
|
/**
|
|
103
103
|
* Include results at or after the specified min-round.
|
|
104
104
|
*
|
|
@@ -114,7 +114,7 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
114
114
|
* @param round
|
|
115
115
|
* @category query
|
|
116
116
|
*/
|
|
117
|
-
minRound(round: number): this;
|
|
117
|
+
minRound(round: number | bigint): this;
|
|
118
118
|
/**
|
|
119
119
|
* Include results at or before the specified max-round.
|
|
120
120
|
*
|
|
@@ -130,7 +130,7 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
130
130
|
* @param round
|
|
131
131
|
* @category query
|
|
132
132
|
*/
|
|
133
|
-
maxRound(round: number): this;
|
|
133
|
+
maxRound(round: number | bigint): this;
|
|
134
134
|
/**
|
|
135
135
|
* Asset ID to filter with.
|
|
136
136
|
*
|
|
@@ -146,7 +146,7 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
146
146
|
* @param id
|
|
147
147
|
* @category query
|
|
148
148
|
*/
|
|
149
|
-
assetID(id: number): this;
|
|
149
|
+
assetID(id: number | bigint): this;
|
|
150
150
|
/**
|
|
151
151
|
* Maximum number of results to return.
|
|
152
152
|
*
|
|
@@ -297,7 +297,7 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
297
297
|
* @param applicationID
|
|
298
298
|
* @category query
|
|
299
299
|
*/
|
|
300
|
-
applicationID(applicationID: number): this;
|
|
300
|
+
applicationID(applicationID: number | bigint): this;
|
|
301
301
|
/**
|
|
302
302
|
* Filtered results should have an amount greater than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
|
|
303
303
|
*
|
|
@@ -324,7 +324,7 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
324
324
|
* @param greater
|
|
325
325
|
* @category query
|
|
326
326
|
*/
|
|
327
|
-
currencyGreaterThan(greater: number): this;
|
|
327
|
+
currencyGreaterThan(greater: number | bigint): this;
|
|
328
328
|
/**
|
|
329
329
|
* Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
|
|
330
330
|
*
|
|
@@ -351,6 +351,6 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
|
|
|
351
351
|
* @param lesser
|
|
352
352
|
* @category query
|
|
353
353
|
*/
|
|
354
|
-
currencyLessThan(lesser: number): this;
|
|
354
|
+
currencyLessThan(lesser: number | bigint): this;
|
|
355
355
|
prepare(response: HTTPClientResponse): TransactionsResponse;
|
|
356
356
|
}
|
package/dist/types/composer.d.ts
CHANGED
|
@@ -189,7 +189,7 @@ export declare class AtomicTransactionComposer {
|
|
|
189
189
|
* one element for each method call transaction in this group.
|
|
190
190
|
*/
|
|
191
191
|
execute(client: AlgodClient, waitRounds: number): Promise<{
|
|
192
|
-
confirmedRound:
|
|
192
|
+
confirmedRound: bigint;
|
|
193
193
|
txIDs: string[];
|
|
194
194
|
methodResults: ABIResult[];
|
|
195
195
|
}>;
|
package/package.json
CHANGED
|
@@ -95,7 +95,7 @@ export class URLTokenBaseHTTPClient implements BaseHTTPClient {
|
|
|
95
95
|
const address = new URL(fixedRelativePath, this.baseURL);
|
|
96
96
|
if (query) {
|
|
97
97
|
for (const [key, value] of Object.entries(query)) {
|
|
98
|
-
address.searchParams.set(key, value);
|
|
98
|
+
address.searchParams.set(key, value.toString());
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
return address.toString();
|
|
@@ -6,14 +6,16 @@ import { Address } from '../../../encoding/address.js';
|
|
|
6
6
|
|
|
7
7
|
export default class AccountApplicationInformation extends JSONRequest<AccountApplicationResponse> {
|
|
8
8
|
private account: string;
|
|
9
|
+
private applicationID: bigint;
|
|
9
10
|
|
|
10
11
|
constructor(
|
|
11
12
|
c: HTTPClient,
|
|
12
13
|
account: string | Address,
|
|
13
|
-
|
|
14
|
+
applicationID: number | bigint
|
|
14
15
|
) {
|
|
15
16
|
super(c);
|
|
16
17
|
this.account = account.toString();
|
|
18
|
+
this.applicationID = BigInt(applicationID);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
path() {
|
|
@@ -6,14 +6,16 @@ import { Address } from '../../../encoding/address.js';
|
|
|
6
6
|
|
|
7
7
|
export default class AccountAssetInformation extends JSONRequest<AccountAssetResponse> {
|
|
8
8
|
private account: string;
|
|
9
|
+
private assetID: bigint;
|
|
9
10
|
|
|
10
11
|
constructor(
|
|
11
12
|
c: HTTPClient,
|
|
12
13
|
account: string | Address,
|
|
13
|
-
|
|
14
|
+
assetID: number | bigint
|
|
14
15
|
) {
|
|
15
16
|
super(c);
|
|
16
17
|
this.account = account.toString();
|
|
18
|
+
this.assetID = BigInt(assetID);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
path() {
|
|
@@ -96,7 +96,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
96
96
|
*
|
|
97
97
|
* #### Example
|
|
98
98
|
* ```typescript
|
|
99
|
-
*
|
|
99
|
+
* await algodClient.healthCheck().do();
|
|
100
100
|
* ```
|
|
101
101
|
*
|
|
102
102
|
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#get-health)
|
|
@@ -126,7 +126,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
126
126
|
*
|
|
127
127
|
* #### Example
|
|
128
128
|
* ```typescript
|
|
129
|
-
* const {
|
|
129
|
+
* const { txid } = await algodClient.sendRawTransaction(signedTxns).do();
|
|
130
130
|
* const result = await waitForConfirmation(algodClient, txid, 3);
|
|
131
131
|
* ```
|
|
132
132
|
*
|
|
@@ -173,7 +173,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
173
173
|
* @param index - The asset ID to look up.
|
|
174
174
|
* @category GET
|
|
175
175
|
*/
|
|
176
|
-
accountAssetInformation(account: string | Address, index: number) {
|
|
176
|
+
accountAssetInformation(account: string | Address, index: number | bigint) {
|
|
177
177
|
return new AccountAssetInformation(this.c, account, index);
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -192,7 +192,10 @@ export class AlgodClient extends ServiceClient {
|
|
|
192
192
|
* @param index - The application ID to look up.
|
|
193
193
|
* @category GET
|
|
194
194
|
*/
|
|
195
|
-
accountApplicationInformation(
|
|
195
|
+
accountApplicationInformation(
|
|
196
|
+
account: string | Address,
|
|
197
|
+
index: number | bigint
|
|
198
|
+
) {
|
|
196
199
|
return new AccountApplicationInformation(this.c, account, index);
|
|
197
200
|
}
|
|
198
201
|
|
|
@@ -209,7 +212,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
209
212
|
* @param roundNumber - The round number of the block to get.
|
|
210
213
|
* @category GET
|
|
211
214
|
*/
|
|
212
|
-
block(roundNumber: number) {
|
|
215
|
+
block(roundNumber: number | bigint) {
|
|
213
216
|
return new Block(this.c, roundNumber);
|
|
214
217
|
}
|
|
215
218
|
|
|
@@ -226,7 +229,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
226
229
|
* @param roundNumber - The round number of the block to get.
|
|
227
230
|
* @category GET
|
|
228
231
|
*/
|
|
229
|
-
getBlockHash(roundNumber: number) {
|
|
232
|
+
getBlockHash(roundNumber: number | bigint) {
|
|
230
233
|
return new GetBlockHash(this.c, roundNumber);
|
|
231
234
|
}
|
|
232
235
|
|
|
@@ -243,7 +246,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
243
246
|
* @param roundNumber - The round number of the block to get.
|
|
244
247
|
* @category GET
|
|
245
248
|
*/
|
|
246
|
-
getBlockTxids(roundNumber: number) {
|
|
249
|
+
getBlockTxids(roundNumber: number | bigint) {
|
|
247
250
|
return new GetBlockTxids(this.c, roundNumber);
|
|
248
251
|
}
|
|
249
252
|
|
|
@@ -355,7 +358,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
355
358
|
* @param round - The number of the round to wait for.
|
|
356
359
|
* @category GET
|
|
357
360
|
*/
|
|
358
|
-
statusAfterBlock(round: number) {
|
|
361
|
+
statusAfterBlock(round: number | bigint) {
|
|
359
362
|
return new StatusAfterBlock(this.c, round);
|
|
360
363
|
}
|
|
361
364
|
|
|
@@ -504,7 +507,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
504
507
|
* @param index - The application ID to look up.
|
|
505
508
|
* @category GET
|
|
506
509
|
*/
|
|
507
|
-
getApplicationBoxByName(index: number, boxName: Uint8Array) {
|
|
510
|
+
getApplicationBoxByName(index: number | bigint, boxName: Uint8Array) {
|
|
508
511
|
return new GetApplicationBoxByName(this.c, index, boxName);
|
|
509
512
|
}
|
|
510
513
|
|
|
@@ -522,7 +525,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
522
525
|
* @param index - The application ID to look up.
|
|
523
526
|
* @category GET
|
|
524
527
|
*/
|
|
525
|
-
getApplicationBoxes(index: number) {
|
|
528
|
+
getApplicationBoxes(index: number | bigint) {
|
|
526
529
|
return new GetApplicationBoxes(this.c, index);
|
|
527
530
|
}
|
|
528
531
|
|
|
@@ -556,7 +559,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
556
559
|
* @param txID - The transaction ID for which to generate a proof.
|
|
557
560
|
* @category GET
|
|
558
561
|
*/
|
|
559
|
-
getTransactionProof(round: number, txID: string) {
|
|
562
|
+
getTransactionProof(round: number | bigint, txID: string) {
|
|
560
563
|
return new GetTransactionProof(this.c, round, txID);
|
|
561
564
|
}
|
|
562
565
|
|
|
@@ -572,7 +575,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
572
575
|
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2blocksroundlightheaderproof)
|
|
573
576
|
* @param round
|
|
574
577
|
*/
|
|
575
|
-
getLightBlockHeaderProof(round: number) {
|
|
578
|
+
getLightBlockHeaderProof(round: number | bigint) {
|
|
576
579
|
return new LightBlockHeaderProof(this.c, round);
|
|
577
580
|
}
|
|
578
581
|
|
|
@@ -588,7 +591,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
588
591
|
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2stateproofsround)
|
|
589
592
|
* @param round
|
|
590
593
|
*/
|
|
591
|
-
getStateProof(round: number) {
|
|
594
|
+
getStateProof(round: number | bigint) {
|
|
592
595
|
return new StateProof(this.c, round);
|
|
593
596
|
}
|
|
594
597
|
|
|
@@ -678,7 +681,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
678
681
|
* @param offset
|
|
679
682
|
* @category POST
|
|
680
683
|
*/
|
|
681
|
-
setBlockOffsetTimestamp(offset: number) {
|
|
684
|
+
setBlockOffsetTimestamp(offset: number | bigint) {
|
|
682
685
|
return new SetBlockOffsetTimestamp(this.c, offset);
|
|
683
686
|
}
|
|
684
687
|
|
|
@@ -710,7 +713,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
710
713
|
* @param round
|
|
711
714
|
* @category POST
|
|
712
715
|
*/
|
|
713
|
-
setSyncRound(round: number) {
|
|
716
|
+
setSyncRound(round: number | bigint) {
|
|
714
717
|
return new SetSyncRound(this.c, round);
|
|
715
718
|
}
|
|
716
719
|
|
|
@@ -789,7 +792,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
789
792
|
* @param round the round number to be searched for
|
|
790
793
|
* @category GET
|
|
791
794
|
*/
|
|
792
|
-
getLedgerStateDelta(round: number) {
|
|
795
|
+
getLedgerStateDelta(round: number | bigint) {
|
|
793
796
|
return new GetLedgerStateDelta(this.c, round);
|
|
794
797
|
}
|
|
795
798
|
|
|
@@ -806,7 +809,7 @@ export class AlgodClient extends ServiceClient {
|
|
|
806
809
|
* @param round the round number to be searched for
|
|
807
810
|
* @category GET
|
|
808
811
|
*/
|
|
809
|
-
getTransactionGroupLedgerStateDeltasForRound(round: number) {
|
|
812
|
+
getTransactionGroupLedgerStateDeltasForRound(round: number | bigint) {
|
|
810
813
|
return new GetTransactionGroupLedgerStateDeltasForRound(this.c, round);
|
|
811
814
|
}
|
|
812
815
|
}
|
|
@@ -7,11 +7,11 @@ import { BlockResponse } from './models/types.js';
|
|
|
7
7
|
* block gets the block info for the given round. this call may block
|
|
8
8
|
*/
|
|
9
9
|
export default class Block extends JSONRequest<BlockResponse> {
|
|
10
|
-
private round:
|
|
10
|
+
private round: bigint;
|
|
11
11
|
|
|
12
|
-
constructor(c: HTTPClient, roundNumber: number) {
|
|
12
|
+
constructor(c: HTTPClient, roundNumber: number | bigint) {
|
|
13
13
|
super(c);
|
|
14
|
-
this.round = roundNumber;
|
|
14
|
+
this.round = BigInt(roundNumber);
|
|
15
15
|
this.query = { format: 'msgpack' };
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -20,12 +20,11 @@ import { Box } from './models/types.js';
|
|
|
20
20
|
* @category GET
|
|
21
21
|
*/
|
|
22
22
|
export default class GetApplicationBoxByName extends JSONRequest<Box> {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
name: Uint8Array
|
|
27
|
-
) {
|
|
23
|
+
private index: bigint;
|
|
24
|
+
|
|
25
|
+
constructor(c: HTTPClient, index: number | bigint, name: Uint8Array) {
|
|
28
26
|
super(c);
|
|
27
|
+
this.index = BigInt(index);
|
|
29
28
|
// Encode name in base64 format and append the encoding prefix.
|
|
30
29
|
const encodedName = bytesToBase64(name);
|
|
31
30
|
this.query.name = encodeURI(`b64:${encodedName}`);
|
|
@@ -18,11 +18,11 @@ import { BoxesResponse } from './models/types.js';
|
|
|
18
18
|
* @category GET
|
|
19
19
|
*/
|
|
20
20
|
export default class GetApplicationBoxes extends JSONRequest<BoxesResponse> {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
) {
|
|
21
|
+
private index: bigint;
|
|
22
|
+
|
|
23
|
+
constructor(c: HTTPClient, index: number | bigint) {
|
|
25
24
|
super(c);
|
|
25
|
+
this.index = BigInt(index);
|
|
26
26
|
this.query.max = 0;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -4,11 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { Application } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class GetApplicationByID extends JSONRequest<Application> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private index: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, index: number | bigint) {
|
|
11
10
|
super(c);
|
|
11
|
+
this.index = BigInt(index);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
path() {
|
|
@@ -4,11 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { Asset } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class GetAssetByID extends JSONRequest<Asset> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private index: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, index: number | bigint) {
|
|
11
10
|
super(c);
|
|
11
|
+
this.index = BigInt(index);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
path() {
|
|
@@ -4,11 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { BlockHashResponse } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class GetBlockHash extends JSONRequest<BlockHashResponse> {
|
|
7
|
-
round:
|
|
7
|
+
private round: bigint;
|
|
8
8
|
|
|
9
|
-
constructor(c: HTTPClient, roundNumber: number) {
|
|
9
|
+
constructor(c: HTTPClient, roundNumber: number | bigint) {
|
|
10
10
|
super(c);
|
|
11
|
-
this.round = roundNumber;
|
|
11
|
+
this.round = BigInt(roundNumber);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
path() {
|
|
@@ -4,13 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { BlockTxidsResponse } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class GetBlockTxids extends JSONRequest<BlockTxidsResponse> {
|
|
7
|
-
round:
|
|
7
|
+
private round: bigint;
|
|
8
8
|
|
|
9
|
-
constructor(c: HTTPClient, roundNumber: number) {
|
|
9
|
+
constructor(c: HTTPClient, roundNumber: number | bigint) {
|
|
10
10
|
super(c);
|
|
11
|
-
|
|
12
|
-
throw Error('roundNumber should be an integer');
|
|
13
|
-
this.round = roundNumber;
|
|
11
|
+
this.round = BigInt(roundNumber);
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
path() {
|
|
@@ -4,11 +4,11 @@ import { decodeMsgpack } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { LedgerStateDelta } from '../../../types/statedelta.js';
|
|
5
5
|
|
|
6
6
|
export default class GetLedgerStateDelta extends JSONRequest<LedgerStateDelta> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private round: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, round: number | bigint) {
|
|
11
10
|
super(c);
|
|
11
|
+
this.round = BigInt(round);
|
|
12
12
|
this.query = { format: 'msgpack' };
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -4,11 +4,11 @@ import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
|
4
4
|
import { decodeMsgpack } from '../../../encoding/encoding.js';
|
|
5
5
|
|
|
6
6
|
export default class GetTransactionGroupLedgerStateDeltasForRound extends JSONRequest<TransactionGroupLedgerStateDeltasForRoundResponse> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private round: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, round: number | bigint) {
|
|
11
10
|
super(c);
|
|
11
|
+
this.round = BigInt(round);
|
|
12
12
|
this.query = { format: 'msgpack' };
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -4,12 +4,15 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { TransactionProofResponse } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class GetTransactionProof extends JSONRequest<TransactionProofResponse> {
|
|
7
|
+
private round: bigint;
|
|
8
|
+
|
|
7
9
|
constructor(
|
|
8
10
|
c: HTTPClient,
|
|
9
|
-
|
|
11
|
+
round: number | bigint,
|
|
10
12
|
private txID: string
|
|
11
13
|
) {
|
|
12
14
|
super(c);
|
|
15
|
+
this.round = BigInt(round);
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
path() {
|
|
@@ -4,11 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { LightBlockHeaderProof as LBHP } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class LightBlockHeaderProof extends JSONRequest<LBHP> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private round: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, round: number | bigint) {
|
|
11
10
|
super(c);
|
|
11
|
+
this.round = BigInt(round);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
path() {
|
|
@@ -2,11 +2,11 @@ import JSONRequest from '../jsonrequest.js';
|
|
|
2
2
|
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
3
3
|
|
|
4
4
|
export default class SetBlockOffsetTimestamp extends JSONRequest<void> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
) {
|
|
5
|
+
private offset: bigint;
|
|
6
|
+
|
|
7
|
+
constructor(c: HTTPClient, offset: number | bigint) {
|
|
9
8
|
super(c);
|
|
9
|
+
this.offset = BigInt(offset);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
path() {
|
|
@@ -2,11 +2,11 @@ import JSONRequest from '../jsonrequest.js';
|
|
|
2
2
|
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
3
3
|
|
|
4
4
|
export default class SetSyncRound extends JSONRequest<void> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
) {
|
|
5
|
+
private round: bigint;
|
|
6
|
+
|
|
7
|
+
constructor(c: HTTPClient, round: number | bigint) {
|
|
9
8
|
super(c);
|
|
9
|
+
this.round = BigInt(round);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
path() {
|
|
@@ -4,11 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { StateProof as SP } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class StateProof extends JSONRequest<SP> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private round: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, round: number | bigint) {
|
|
11
10
|
super(c);
|
|
11
|
+
this.round = BigInt(round);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
path() {
|
|
@@ -4,12 +4,11 @@ import { decodeJSON } from '../../../encoding/encoding.js';
|
|
|
4
4
|
import { NodeStatusResponse } from './models/types.js';
|
|
5
5
|
|
|
6
6
|
export default class StatusAfterBlock extends JSONRequest<NodeStatusResponse> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
) {
|
|
7
|
+
private round: bigint;
|
|
8
|
+
|
|
9
|
+
constructor(c: HTTPClient, round: number | bigint) {
|
|
11
10
|
super(c);
|
|
12
|
-
|
|
11
|
+
this.round = BigInt(round);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
path() {
|