algosdk 3.1.0 → 3.3.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.
- package/README.md +5 -5
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/abi/abi_type.js +9 -7
- package/dist/cjs/abi/abi_type.js.map +1 -1
- package/dist/cjs/client/v2/algod/block.js +21 -0
- package/dist/cjs/client/v2/algod/block.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js +58 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +165 -141
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/indexer.js +15 -0
- package/dist/cjs/client/v2/indexer/indexer.js.map +1 -1
- package/dist/cjs/client/v2/indexer/models/types.js +10 -1
- package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchAccounts.js +19 -0
- package/dist/cjs/client/v2/indexer/searchAccounts.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForBlockHeaders.js +217 -0
- package/dist/cjs/client/v2/indexer/searchForBlockHeaders.js.map +1 -0
- package/dist/esm/abi/abi_type.js +10 -8
- package/dist/esm/abi/abi_type.js.map +1 -1
- package/dist/esm/client/v2/algod/block.js +21 -0
- package/dist/esm/client/v2/algod/block.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxes.js +58 -1
- package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +161 -136
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/indexer.js +15 -0
- package/dist/esm/client/v2/indexer/indexer.js.map +1 -1
- package/dist/esm/client/v2/indexer/models/types.js +10 -1
- package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchAccounts.js +19 -0
- package/dist/esm/client/v2/indexer/searchAccounts.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForBlockHeaders.js +211 -0
- package/dist/esm/client/v2/indexer/searchForBlockHeaders.js.map +1 -0
- package/dist/types/abi/abi_type.d.ts +13 -1
- package/dist/types/client/v2/algod/block.d.ts +18 -0
- package/dist/types/client/v2/algod/getApplicationBoxes.d.ts +49 -1
- package/dist/types/client/v2/algod/models/types.d.ts +93 -83
- package/dist/types/client/v2/indexer/indexer.d.ts +13 -0
- package/dist/types/client/v2/indexer/models/types.d.ts +7 -1
- package/dist/types/client/v2/indexer/searchAccounts.d.ts +16 -0
- package/dist/types/client/v2/indexer/searchForBlockHeaders.d.ts +176 -0
- package/package.json +2 -2
- package/src/abi/abi_type.ts +16 -9
- package/src/client/v2/algod/block.ts +22 -0
- package/src/client/v2/algod/getApplicationBoxes.ts +61 -1
- package/src/client/v2/algod/models/types.ts +285 -197
- package/src/client/v2/indexer/indexer.ts +16 -0
- package/src/client/v2/indexer/models/types.ts +17 -0
- package/src/client/v2/indexer/searchAccounts.ts +20 -0
- package/src/client/v2/indexer/searchForBlockHeaders.ts +223 -0
|
@@ -257,6 +257,25 @@ export default class SearchAccounts extends JSONRequest {
|
|
|
257
257
|
this.query.exclude = exclude;
|
|
258
258
|
return this;
|
|
259
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* If true, only online accounts will be returned in the response.
|
|
262
|
+
*
|
|
263
|
+
* #### Example
|
|
264
|
+
* ```typescript
|
|
265
|
+
* const onlineOnly = true;
|
|
266
|
+
* const accounts = await indexerClient
|
|
267
|
+
* .searchAccounts
|
|
268
|
+
* .onlineOnly(onlineOnly)
|
|
269
|
+
* .do();
|
|
270
|
+
* ```
|
|
271
|
+
*
|
|
272
|
+
* @param onlineOnly - if true, only online accounts will be returned in the response
|
|
273
|
+
* @category query
|
|
274
|
+
*/
|
|
275
|
+
onlineOnly(onlineOnly) {
|
|
276
|
+
this.query['online-only'] = onlineOnly;
|
|
277
|
+
return this;
|
|
278
|
+
}
|
|
260
279
|
// eslint-disable-next-line class-methods-use-this
|
|
261
280
|
prepare(response) {
|
|
262
281
|
return decodeJSON(response.getJSONText(), AccountsResponse);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAA6B;IACvE;;OAEG;IACH,kDAAkD;IAClD,IAAI;QACF,OAAO,cAAc,CAAC;IACxB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,uGAAuG;QACvG,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,gBAAgB,CAAC,MAAuB;QACtC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAmB;QACzB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAq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,CAAC,QAAQ,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,aAA8B;QAC1C,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,aAAa,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,OAAe;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,UAAmB;QAC5B,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import JSONRequest from '../jsonrequest.js';
|
|
2
|
+
import { decodeJSON } from '../../../encoding/encoding.js';
|
|
3
|
+
import { BlockHeadersResponse } from './models/types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Returns information about indexed block headers.
|
|
6
|
+
*
|
|
7
|
+
* #### Example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const bhs = await indexerClient.searchForBlockHeaders().do();
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2block-headers)
|
|
13
|
+
* @category GET
|
|
14
|
+
*/
|
|
15
|
+
export default class SearchForBlockHeaders extends JSONRequest {
|
|
16
|
+
/**
|
|
17
|
+
* @returns `/v2/block-headers`
|
|
18
|
+
*/
|
|
19
|
+
// eslint-disable-next-line class-methods-use-this
|
|
20
|
+
path() {
|
|
21
|
+
return '/v2/block-headers';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Accounts marked as absent in the block header's participation updates.
|
|
25
|
+
*
|
|
26
|
+
* #### Example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const address1 = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
|
|
29
|
+
* const address2 = "4H5UNRBJ2Q6JENAXQ6HNTGKLKINP4J4VTQBEPK5F3I6RDICMZBPGNH6KD4";
|
|
30
|
+
* const bhs = await indexerClient
|
|
31
|
+
* .searchForBlockHeaders()
|
|
32
|
+
* .absent([address1,address2])
|
|
33
|
+
* .do();
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @param absent - a comma separated list of addresses
|
|
37
|
+
* @category query
|
|
38
|
+
*/
|
|
39
|
+
absent(absent) {
|
|
40
|
+
this.query.absent = absent;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Include results after the given time.
|
|
45
|
+
*
|
|
46
|
+
* #### Example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const afterTime = "2022-10-21T00:00:11.55Z";
|
|
49
|
+
* const bhs = await indexerClient
|
|
50
|
+
* .searchForBlockHeaders()
|
|
51
|
+
* .afterTime(afterTime)
|
|
52
|
+
* .do();
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param after - rfc3339 string or Date object
|
|
56
|
+
* @category query
|
|
57
|
+
*/
|
|
58
|
+
afterTime(after) {
|
|
59
|
+
this.query['after-time'] =
|
|
60
|
+
after instanceof Date ? after.toISOString() : after;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Include results before the given time.
|
|
65
|
+
*
|
|
66
|
+
* #### Example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const beforeTime = "2022-02-02T20:20:22.02Z";
|
|
69
|
+
* const bhs = await indexerClient
|
|
70
|
+
* .searchForBlockHeaders()
|
|
71
|
+
* .beforeTime(beforeTime)
|
|
72
|
+
* .do();
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param before - rfc3339 string or Date object
|
|
76
|
+
* @category query
|
|
77
|
+
*/
|
|
78
|
+
beforeTime(before) {
|
|
79
|
+
this.query['before-time'] =
|
|
80
|
+
before instanceof Date ? before.toISOString() : before;
|
|
81
|
+
return this;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Accounts marked as expired in the block header's participation updates.
|
|
85
|
+
*
|
|
86
|
+
* #### Example
|
|
87
|
+
* ```typescript
|
|
88
|
+
* const address1 = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
|
|
89
|
+
* const address2 = "4H5UNRBJ2Q6JENAXQ6HNTGKLKINP4J4VTQBEPK5F3I6RDICMZBPGNH6KD4";
|
|
90
|
+
* const bhs = await indexerClient
|
|
91
|
+
* .searchForBlockHeaders()
|
|
92
|
+
* .expired([address1,address2])
|
|
93
|
+
* .do();
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @param expired - - a comma separated list of addresses
|
|
97
|
+
* @category query
|
|
98
|
+
*/
|
|
99
|
+
expired(expired) {
|
|
100
|
+
this.query.expired = expired;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Maximum number of results to return.
|
|
105
|
+
*
|
|
106
|
+
* #### Example
|
|
107
|
+
* ```typescript
|
|
108
|
+
* const maxResults = 25;
|
|
109
|
+
* const bhs = await indexerClient
|
|
110
|
+
* .searchForBlockHeaders()
|
|
111
|
+
* .limit(maxResults)
|
|
112
|
+
* .do();
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param limit
|
|
116
|
+
* @category query
|
|
117
|
+
*/
|
|
118
|
+
limit(limit) {
|
|
119
|
+
this.query.limit = limit;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Include results at or before the specified max-round.
|
|
124
|
+
*
|
|
125
|
+
* #### Example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* const maxRound = 18309917;
|
|
128
|
+
* const bhs = await indexerClient
|
|
129
|
+
* .searchForBlockHeaders()
|
|
130
|
+
* .maxRound(maxRound)
|
|
131
|
+
* .do();
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* @param round
|
|
135
|
+
* @category query
|
|
136
|
+
*/
|
|
137
|
+
maxRound(round) {
|
|
138
|
+
this.query['max-round'] = round;
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Include results at or after the specified min-round.
|
|
143
|
+
*
|
|
144
|
+
* #### Example
|
|
145
|
+
* ```typescript
|
|
146
|
+
* const minRound = 18309917;
|
|
147
|
+
* const bhs = await indexerClient
|
|
148
|
+
* .searchForBlockHeaders()
|
|
149
|
+
* .minRound(minRound)
|
|
150
|
+
* .do();
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* @param round
|
|
154
|
+
* @category query
|
|
155
|
+
*/
|
|
156
|
+
minRound(round) {
|
|
157
|
+
this.query['min-round'] = round;
|
|
158
|
+
return this;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* The next page of results.
|
|
162
|
+
*
|
|
163
|
+
* #### Example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* const maxResults = 25;
|
|
166
|
+
*
|
|
167
|
+
* const bh1 = await indexerClient
|
|
168
|
+
* .searchForBlockHeaders()
|
|
169
|
+
* .limit(maxResults)
|
|
170
|
+
* .do();
|
|
171
|
+
*
|
|
172
|
+
* const bh2 = await indexerClient
|
|
173
|
+
* .searchForBlockHeaders()
|
|
174
|
+
* .limit(maxResults)
|
|
175
|
+
* .nextToken(bh1["next-token"])
|
|
176
|
+
* .do();
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* @param nextToken - provided by the previous results
|
|
180
|
+
* @category query
|
|
181
|
+
*/
|
|
182
|
+
nextToken(nextToken) {
|
|
183
|
+
this.query.next = nextToken;
|
|
184
|
+
return this;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Accounts marked as proposer in the block header's participation updates.
|
|
188
|
+
*
|
|
189
|
+
* #### Example
|
|
190
|
+
* ```typescript
|
|
191
|
+
* const address1 = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
|
|
192
|
+
* const address2 = "4H5UNRBJ2Q6JENAXQ6HNTGKLKINP4J4VTQBEPK5F3I6RDICMZBPGNH6KD4";
|
|
193
|
+
* const bhs = await indexerClient
|
|
194
|
+
* .searchForBlockHeaders()
|
|
195
|
+
* .proposers([address1,address2])
|
|
196
|
+
* .do();
|
|
197
|
+
* ```
|
|
198
|
+
*
|
|
199
|
+
* @param proposers - a comma separated list of addresses
|
|
200
|
+
* @category query
|
|
201
|
+
*/
|
|
202
|
+
proposers(proposers) {
|
|
203
|
+
this.query.proposers = proposers;
|
|
204
|
+
return this;
|
|
205
|
+
}
|
|
206
|
+
// eslint-disable-next-line class-methods-use-this
|
|
207
|
+
prepare(response) {
|
|
208
|
+
return decodeJSON(response.getJSONText(), BlockHeadersResponse);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=searchForBlockHeaders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchForBlockHeaders.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchForBlockHeaders.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MA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C;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,KAAsB;QAC7B,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,SAA+B;QACvC,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAClE,CAAC;CACF"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
//ABI-Types: uint<N>: An N-bit unsigned integer (8 <= N <= 512 and N % 8 = 0).
|
|
3
|
+
// | byte (alias for uint8)
|
|
4
|
+
// | ufixed <N> x <M> (8 <= N <= 512, N % 8 = 0, and 0 < M <= 160)
|
|
5
|
+
// | bool
|
|
6
|
+
// | address (alias for byte[32])
|
|
7
|
+
// | <type> [<N>]
|
|
8
|
+
// | <type> []
|
|
9
|
+
// | string
|
|
10
|
+
// | (T1, ..., Tn)
|
|
11
|
+
*/
|
|
12
|
+
import { Address } from '../encoding/address.js';
|
|
1
13
|
export declare const MAX_LEN: number;
|
|
2
14
|
export declare const ADDR_BYTE_SIZE = 32;
|
|
3
15
|
export declare const SINGLE_BYTE_SIZE = 1;
|
|
4
16
|
export declare const SINGLE_BOOL_SIZE = 1;
|
|
5
17
|
export declare const LENGTH_ENCODE_BYTE_SIZE = 2;
|
|
6
|
-
export type ABIValue = boolean | number | bigint | string | Uint8Array | ABIValue[];
|
|
18
|
+
export type ABIValue = boolean | number | bigint | string | Uint8Array | ABIValue[] | Address;
|
|
7
19
|
export declare abstract class ABIType {
|
|
8
20
|
abstract toString(): string;
|
|
9
21
|
abstract equals(other: ABIType): boolean;
|
|
@@ -8,5 +8,23 @@ export default class Block extends JSONRequest<BlockResponse> {
|
|
|
8
8
|
private round;
|
|
9
9
|
constructor(c: HTTPClient, roundNumber: number | bigint);
|
|
10
10
|
path(): string;
|
|
11
|
+
/**
|
|
12
|
+
* If true, only the block header (exclusive of payset or certificate) may be included in response.
|
|
13
|
+
*
|
|
14
|
+
* #### Example
|
|
15
|
+
* ```typescript
|
|
16
|
+
*
|
|
17
|
+
* const roundNumber = 41000000;
|
|
18
|
+
*
|
|
19
|
+
* const blockResponse = await algodClient
|
|
20
|
+
* .block(roundNumber)
|
|
21
|
+
* .headerOnly(true)
|
|
22
|
+
* .do();
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param headerOnly - the flag indicating whether exclusively return header in response
|
|
26
|
+
* @category query
|
|
27
|
+
*/
|
|
28
|
+
headerOnly(headerOnly: boolean): this;
|
|
11
29
|
prepare(response: HTTPClientResponse): BlockResponse;
|
|
12
30
|
}
|
|
@@ -7,7 +7,7 @@ import { BoxesResponse } from './models/types.js';
|
|
|
7
7
|
* #### Example
|
|
8
8
|
* ```typescript
|
|
9
9
|
* const index = 60553466;
|
|
10
|
-
* const boxesResponse = await algodClient.getApplicationBoxes(index).
|
|
10
|
+
* const boxesResponse = await algodClient.getApplicationBoxes(index).prefix('int:1234').next('b64:A==').values(true).do();
|
|
11
11
|
* const boxNames = boxesResponse.boxes.map(box => box.name);
|
|
12
12
|
* ```
|
|
13
13
|
*
|
|
@@ -38,5 +38,53 @@ export default class GetApplicationBoxes extends JSONRequest<BoxesResponse> {
|
|
|
38
38
|
* @category query
|
|
39
39
|
*/
|
|
40
40
|
max(max: number): this;
|
|
41
|
+
/**
|
|
42
|
+
* A box name prefix, in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
|
|
43
|
+
*
|
|
44
|
+
* #### Example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const prefix = 'int:1234';
|
|
47
|
+
* const boxesResult = await algodClient
|
|
48
|
+
* .GetApplicationBoxes(1234)
|
|
49
|
+
* .prefix(prefix)
|
|
50
|
+
* .do();
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param prefix - the box name prefix in the form 'encoding:value'
|
|
54
|
+
* @category query
|
|
55
|
+
*/
|
|
56
|
+
prefix(prefix: string): this;
|
|
57
|
+
/**
|
|
58
|
+
* A box name, in the goal app call arg form 'encoding:value'. When provided, the returned boxes begin (lexographically) with the supplied name. Callers may implement pagination by reinvoking the endpoint with the token from a previous call's next-token.
|
|
59
|
+
*
|
|
60
|
+
* #### Example
|
|
61
|
+
* ```typescript
|
|
62
|
+
* const next = 'int:1234';
|
|
63
|
+
* const boxesResult = await algodClient
|
|
64
|
+
* .GetApplicationBoxes(1234)
|
|
65
|
+
* .next(next)
|
|
66
|
+
* .do();
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param next - the next box name for pagination, in the goal app call arg form 'encoding:value'
|
|
70
|
+
* @category query
|
|
71
|
+
*/
|
|
72
|
+
next(next: string): this;
|
|
73
|
+
/**
|
|
74
|
+
* If true, box values will be returned.
|
|
75
|
+
*
|
|
76
|
+
* #### Example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* const values = true;
|
|
79
|
+
* const boxesResult = await algodClient
|
|
80
|
+
* .GetApplicationBoxes(1234)
|
|
81
|
+
* .values(values)
|
|
82
|
+
* .do();
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param values - if true, box values will be returned
|
|
86
|
+
* @category query
|
|
87
|
+
*/
|
|
88
|
+
values(values: boolean): this;
|
|
41
89
|
prepare(response: HTTPClientResponse): BoxesResponse;
|
|
42
90
|
}
|
|
@@ -684,6 +684,10 @@ export declare class ApplicationParams implements Encodable {
|
|
|
684
684
|
* (lsch) local schema
|
|
685
685
|
*/
|
|
686
686
|
localStateSchema?: ApplicationStateSchema;
|
|
687
|
+
/**
|
|
688
|
+
* (v) the number of updates to the application programs
|
|
689
|
+
*/
|
|
690
|
+
version?: number;
|
|
687
691
|
/**
|
|
688
692
|
* Creates a new `ApplicationParams` object.
|
|
689
693
|
* @param approvalProgram - (approv) approval program.
|
|
@@ -694,8 +698,9 @@ export declare class ApplicationParams implements Encodable {
|
|
|
694
698
|
* @param globalState - (gs) global state
|
|
695
699
|
* @param globalStateSchema - (gsch) global schema
|
|
696
700
|
* @param localStateSchema - (lsch) local schema
|
|
701
|
+
* @param version - (v) the number of updates to the application programs
|
|
697
702
|
*/
|
|
698
|
-
constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }: {
|
|
703
|
+
constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, version, }: {
|
|
699
704
|
approvalProgram: string | Uint8Array;
|
|
700
705
|
clearStateProgram: string | Uint8Array;
|
|
701
706
|
creator: Address | string;
|
|
@@ -703,6 +708,7 @@ export declare class ApplicationParams implements Encodable {
|
|
|
703
708
|
globalState?: TealKeyValue[];
|
|
704
709
|
globalStateSchema?: ApplicationStateSchema;
|
|
705
710
|
localStateSchema?: ApplicationStateSchema;
|
|
711
|
+
version?: number | bigint;
|
|
706
712
|
});
|
|
707
713
|
getEncodingSchema(): Schema;
|
|
708
714
|
toEncodingData(): Map<string, unknown>;
|
|
@@ -1087,27 +1093,6 @@ export declare class BlockHashResponse implements Encodable {
|
|
|
1087
1093
|
toEncodingData(): Map<string, unknown>;
|
|
1088
1094
|
static fromEncodingData(data: unknown): BlockHashResponse;
|
|
1089
1095
|
}
|
|
1090
|
-
/**
|
|
1091
|
-
* Block header.
|
|
1092
|
-
*/
|
|
1093
|
-
export declare class BlockHeaderResponse implements Encodable {
|
|
1094
|
-
private static encodingSchemaValue;
|
|
1095
|
-
static get encodingSchema(): Schema;
|
|
1096
|
-
/**
|
|
1097
|
-
* Block header data.
|
|
1098
|
-
*/
|
|
1099
|
-
blockheader: Block;
|
|
1100
|
-
/**
|
|
1101
|
-
* Creates a new `BlockHeaderResponse` object.
|
|
1102
|
-
* @param blockheader - Block header data.
|
|
1103
|
-
*/
|
|
1104
|
-
constructor({ blockheader }: {
|
|
1105
|
-
blockheader: Block;
|
|
1106
|
-
});
|
|
1107
|
-
getEncodingSchema(): Schema;
|
|
1108
|
-
toEncodingData(): Map<string, unknown>;
|
|
1109
|
-
static fromEncodingData(data: unknown): BlockHeaderResponse;
|
|
1110
|
-
}
|
|
1111
1096
|
/**
|
|
1112
1097
|
* All logs emitted in the given round. Each app call, whether top-level or inner,
|
|
1113
1098
|
* that contains logs results in a separate AppCallLogs object. Therefore there may
|
|
@@ -1189,53 +1174,32 @@ export declare class Box implements Encodable {
|
|
|
1189
1174
|
private static encodingSchemaValue;
|
|
1190
1175
|
static get encodingSchema(): Schema;
|
|
1191
1176
|
/**
|
|
1192
|
-
*
|
|
1177
|
+
* The box name, base64 encoded
|
|
1193
1178
|
*/
|
|
1194
1179
|
name: Uint8Array;
|
|
1195
1180
|
/**
|
|
1196
1181
|
* The round for which this information is relevant
|
|
1197
1182
|
*/
|
|
1198
|
-
round
|
|
1183
|
+
round?: bigint;
|
|
1199
1184
|
/**
|
|
1200
|
-
*
|
|
1185
|
+
* The box value, base64 encoded.
|
|
1201
1186
|
*/
|
|
1202
|
-
value
|
|
1187
|
+
value?: Uint8Array;
|
|
1203
1188
|
/**
|
|
1204
1189
|
* Creates a new `Box` object.
|
|
1205
|
-
* @param name -
|
|
1190
|
+
* @param name - The box name, base64 encoded
|
|
1206
1191
|
* @param round - The round for which this information is relevant
|
|
1207
|
-
* @param value -
|
|
1192
|
+
* @param value - The box value, base64 encoded.
|
|
1208
1193
|
*/
|
|
1209
1194
|
constructor({ name, round, value, }: {
|
|
1210
1195
|
name: string | Uint8Array;
|
|
1211
|
-
round
|
|
1212
|
-
value
|
|
1196
|
+
round?: number | bigint;
|
|
1197
|
+
value?: string | Uint8Array;
|
|
1213
1198
|
});
|
|
1214
1199
|
getEncodingSchema(): Schema;
|
|
1215
1200
|
toEncodingData(): Map<string, unknown>;
|
|
1216
1201
|
static fromEncodingData(data: unknown): Box;
|
|
1217
1202
|
}
|
|
1218
|
-
/**
|
|
1219
|
-
* Box descriptor describes a Box.
|
|
1220
|
-
*/
|
|
1221
|
-
export declare class BoxDescriptor implements Encodable {
|
|
1222
|
-
private static encodingSchemaValue;
|
|
1223
|
-
static get encodingSchema(): Schema;
|
|
1224
|
-
/**
|
|
1225
|
-
* Base64 encoded box name
|
|
1226
|
-
*/
|
|
1227
|
-
name: Uint8Array;
|
|
1228
|
-
/**
|
|
1229
|
-
* Creates a new `BoxDescriptor` object.
|
|
1230
|
-
* @param name - Base64 encoded box name
|
|
1231
|
-
*/
|
|
1232
|
-
constructor({ name }: {
|
|
1233
|
-
name: string | Uint8Array;
|
|
1234
|
-
});
|
|
1235
|
-
getEncodingSchema(): Schema;
|
|
1236
|
-
toEncodingData(): Map<string, unknown>;
|
|
1237
|
-
static fromEncodingData(data: unknown): BoxDescriptor;
|
|
1238
|
-
}
|
|
1239
1203
|
/**
|
|
1240
1204
|
* References a box of an application.
|
|
1241
1205
|
*/
|
|
@@ -1264,18 +1228,32 @@ export declare class BoxReference implements Encodable {
|
|
|
1264
1228
|
static fromEncodingData(data: unknown): BoxReference;
|
|
1265
1229
|
}
|
|
1266
1230
|
/**
|
|
1267
|
-
*
|
|
1231
|
+
* Boxes of an application
|
|
1268
1232
|
*/
|
|
1269
1233
|
export declare class BoxesResponse implements Encodable {
|
|
1270
1234
|
private static encodingSchemaValue;
|
|
1271
1235
|
static get encodingSchema(): Schema;
|
|
1272
|
-
boxes:
|
|
1236
|
+
boxes: Box[];
|
|
1237
|
+
/**
|
|
1238
|
+
* The round for which this information is relevant.
|
|
1239
|
+
*/
|
|
1240
|
+
round: number;
|
|
1241
|
+
/**
|
|
1242
|
+
* Used for pagination, when making another request provide this token with the
|
|
1243
|
+
* next parameter.
|
|
1244
|
+
*/
|
|
1245
|
+
nextToken?: string;
|
|
1273
1246
|
/**
|
|
1274
1247
|
* Creates a new `BoxesResponse` object.
|
|
1275
1248
|
* @param boxes -
|
|
1249
|
+
* @param round - The round for which this information is relevant.
|
|
1250
|
+
* @param nextToken - Used for pagination, when making another request provide this token with the
|
|
1251
|
+
* next parameter.
|
|
1276
1252
|
*/
|
|
1277
|
-
constructor({ boxes }: {
|
|
1278
|
-
boxes:
|
|
1253
|
+
constructor({ boxes, round, nextToken, }: {
|
|
1254
|
+
boxes: Box[];
|
|
1255
|
+
round: number | bigint;
|
|
1256
|
+
nextToken?: string;
|
|
1279
1257
|
});
|
|
1280
1258
|
getEncodingSchema(): Schema;
|
|
1281
1259
|
toEncodingData(): Map<string, unknown>;
|
|
@@ -1660,6 +1638,66 @@ export declare class EvalDeltaKeyValue implements Encodable {
|
|
|
1660
1638
|
toEncodingData(): Map<string, unknown>;
|
|
1661
1639
|
static fromEncodingData(data: unknown): EvalDeltaKeyValue;
|
|
1662
1640
|
}
|
|
1641
|
+
export declare class Genesis implements Encodable {
|
|
1642
|
+
private static encodingSchemaValue;
|
|
1643
|
+
static get encodingSchema(): Schema;
|
|
1644
|
+
alloc: GenesisAllocation[];
|
|
1645
|
+
fees: string;
|
|
1646
|
+
id: string;
|
|
1647
|
+
network: string;
|
|
1648
|
+
proto: string;
|
|
1649
|
+
rwd: string;
|
|
1650
|
+
timestamp: number;
|
|
1651
|
+
comment?: string;
|
|
1652
|
+
devmode?: boolean;
|
|
1653
|
+
/**
|
|
1654
|
+
* Creates a new `Genesis` object.
|
|
1655
|
+
* @param alloc -
|
|
1656
|
+
* @param fees -
|
|
1657
|
+
* @param id -
|
|
1658
|
+
* @param network -
|
|
1659
|
+
* @param proto -
|
|
1660
|
+
* @param rwd -
|
|
1661
|
+
* @param timestamp -
|
|
1662
|
+
* @param comment -
|
|
1663
|
+
* @param devmode -
|
|
1664
|
+
*/
|
|
1665
|
+
constructor({ alloc, fees, id, network, proto, rwd, timestamp, comment, devmode, }: {
|
|
1666
|
+
alloc: GenesisAllocation[];
|
|
1667
|
+
fees: string;
|
|
1668
|
+
id: string;
|
|
1669
|
+
network: string;
|
|
1670
|
+
proto: string;
|
|
1671
|
+
rwd: string;
|
|
1672
|
+
timestamp: number | bigint;
|
|
1673
|
+
comment?: string;
|
|
1674
|
+
devmode?: boolean;
|
|
1675
|
+
});
|
|
1676
|
+
getEncodingSchema(): Schema;
|
|
1677
|
+
toEncodingData(): Map<string, unknown>;
|
|
1678
|
+
static fromEncodingData(data: unknown): Genesis;
|
|
1679
|
+
}
|
|
1680
|
+
export declare class GenesisAllocation implements Encodable {
|
|
1681
|
+
private static encodingSchemaValue;
|
|
1682
|
+
static get encodingSchema(): Schema;
|
|
1683
|
+
addr: string;
|
|
1684
|
+
comment: string;
|
|
1685
|
+
state: UntypedValue;
|
|
1686
|
+
/**
|
|
1687
|
+
* Creates a new `GenesisAllocation` object.
|
|
1688
|
+
* @param addr -
|
|
1689
|
+
* @param comment -
|
|
1690
|
+
* @param state -
|
|
1691
|
+
*/
|
|
1692
|
+
constructor({ addr, comment, state, }: {
|
|
1693
|
+
addr: string;
|
|
1694
|
+
comment: string;
|
|
1695
|
+
state: UntypedValue;
|
|
1696
|
+
});
|
|
1697
|
+
getEncodingSchema(): Schema;
|
|
1698
|
+
toEncodingData(): Map<string, unknown>;
|
|
1699
|
+
static fromEncodingData(data: unknown): GenesisAllocation;
|
|
1700
|
+
}
|
|
1663
1701
|
/**
|
|
1664
1702
|
* Response containing the timestamp offset in seconds
|
|
1665
1703
|
*/
|
|
@@ -1702,34 +1740,6 @@ export declare class GetSyncRoundResponse implements Encodable {
|
|
|
1702
1740
|
toEncodingData(): Map<string, unknown>;
|
|
1703
1741
|
static fromEncodingData(data: unknown): GetSyncRoundResponse;
|
|
1704
1742
|
}
|
|
1705
|
-
/**
|
|
1706
|
-
* A single Delta containing the key, the previous value and the current value for
|
|
1707
|
-
* a single round.
|
|
1708
|
-
*/
|
|
1709
|
-
export declare class KvDelta implements Encodable {
|
|
1710
|
-
private static encodingSchemaValue;
|
|
1711
|
-
static get encodingSchema(): Schema;
|
|
1712
|
-
/**
|
|
1713
|
-
* The key, base64 encoded.
|
|
1714
|
-
*/
|
|
1715
|
-
key?: Uint8Array;
|
|
1716
|
-
/**
|
|
1717
|
-
* The new value of the KV store entry, base64 encoded.
|
|
1718
|
-
*/
|
|
1719
|
-
value?: Uint8Array;
|
|
1720
|
-
/**
|
|
1721
|
-
* Creates a new `KvDelta` object.
|
|
1722
|
-
* @param key - The key, base64 encoded.
|
|
1723
|
-
* @param value - The new value of the KV store entry, base64 encoded.
|
|
1724
|
-
*/
|
|
1725
|
-
constructor({ key, value, }: {
|
|
1726
|
-
key?: string | Uint8Array;
|
|
1727
|
-
value?: string | Uint8Array;
|
|
1728
|
-
});
|
|
1729
|
-
getEncodingSchema(): Schema;
|
|
1730
|
-
toEncodingData(): Map<string, unknown>;
|
|
1731
|
-
static fromEncodingData(data: unknown): KvDelta;
|
|
1732
|
-
}
|
|
1733
1743
|
/**
|
|
1734
1744
|
* Contains a ledger delta for a single transaction group
|
|
1735
1745
|
*/
|
|
@@ -15,6 +15,7 @@ import LookupApplications from './lookupApplications.js';
|
|
|
15
15
|
import LookupApplicationLogs from './lookupApplicationLogs.js';
|
|
16
16
|
import LookupApplicationBoxByIDandName from './lookupApplicationBoxByIDandName.js';
|
|
17
17
|
import SearchAccounts from './searchAccounts.js';
|
|
18
|
+
import SearchForBlockHeaders from './searchForBlockHeaders.js';
|
|
18
19
|
import SearchForTransactions from './searchForTransactions.js';
|
|
19
20
|
import SearchForAssets from './searchForAssets.js';
|
|
20
21
|
import SearchForApplications from './searchForApplications.js';
|
|
@@ -266,6 +267,18 @@ export declare class IndexerClient extends ServiceClient {
|
|
|
266
267
|
* @category GET
|
|
267
268
|
*/
|
|
268
269
|
searchAccounts(): SearchAccounts;
|
|
270
|
+
/**
|
|
271
|
+
* Returns information about indexed block headers.
|
|
272
|
+
*
|
|
273
|
+
* #### Example
|
|
274
|
+
* ```typescript
|
|
275
|
+
* const bhs = await indexerClient.searchForBlockHeaders().do();
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2block-headers)
|
|
279
|
+
* @category GET
|
|
280
|
+
*/
|
|
281
|
+
searchForBlockHeaders(): SearchForBlockHeaders;
|
|
269
282
|
/**
|
|
270
283
|
* Returns information about indexed transactions.
|
|
271
284
|
*
|
|
@@ -620,6 +620,10 @@ export declare class ApplicationParams implements Encodable {
|
|
|
620
620
|
* local schema
|
|
621
621
|
*/
|
|
622
622
|
localStateSchema?: ApplicationStateSchema;
|
|
623
|
+
/**
|
|
624
|
+
* the number of updates to the application programs
|
|
625
|
+
*/
|
|
626
|
+
version?: number;
|
|
623
627
|
/**
|
|
624
628
|
* Creates a new `ApplicationParams` object.
|
|
625
629
|
* @param approvalProgram - approval program.
|
|
@@ -630,8 +634,9 @@ export declare class ApplicationParams implements Encodable {
|
|
|
630
634
|
* @param globalState - global state
|
|
631
635
|
* @param globalStateSchema - global schema
|
|
632
636
|
* @param localStateSchema - local schema
|
|
637
|
+
* @param version - the number of updates to the application programs
|
|
633
638
|
*/
|
|
634
|
-
constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }: {
|
|
639
|
+
constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, version, }: {
|
|
635
640
|
approvalProgram: string | Uint8Array;
|
|
636
641
|
clearStateProgram: string | Uint8Array;
|
|
637
642
|
creator?: Address | string;
|
|
@@ -639,6 +644,7 @@ export declare class ApplicationParams implements Encodable {
|
|
|
639
644
|
globalState?: TealKeyValue[];
|
|
640
645
|
globalStateSchema?: ApplicationStateSchema;
|
|
641
646
|
localStateSchema?: ApplicationStateSchema;
|
|
647
|
+
version?: number | bigint;
|
|
642
648
|
});
|
|
643
649
|
getEncodingSchema(): Schema;
|
|
644
650
|
toEncodingData(): Map<string, unknown>;
|