algosdk 3.3.0 → 3.4.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 (39) hide show
  1. package/README.md +5 -5
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/client/v2/algod/getApplicationBoxes.js +1 -58
  5. package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -1
  6. package/dist/cjs/client/v2/algod/getTransactionProof.js +1 -1
  7. package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -1
  8. package/dist/cjs/client/v2/algod/models/types.js +53 -35
  9. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  10. package/dist/cjs/client/v2/indexer/models/types.js +75 -3
  11. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  12. package/dist/cjs/client/v2/indexer/searchForTransactions.js +19 -0
  13. package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -1
  14. package/dist/cjs/encoding/schema/bytearray.js +3 -0
  15. package/dist/cjs/encoding/schema/bytearray.js.map +1 -1
  16. package/dist/esm/client/v2/algod/getApplicationBoxes.js +1 -58
  17. package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -1
  18. package/dist/esm/client/v2/algod/getTransactionProof.js +2 -2
  19. package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -1
  20. package/dist/esm/client/v2/algod/models/types.js +49 -32
  21. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  22. package/dist/esm/client/v2/indexer/models/types.js +72 -1
  23. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  24. package/dist/esm/client/v2/indexer/searchForTransactions.js +19 -0
  25. package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -1
  26. package/dist/esm/encoding/schema/bytearray.js +3 -0
  27. package/dist/esm/encoding/schema/bytearray.js.map +1 -1
  28. package/dist/types/client/v2/algod/getApplicationBoxes.d.ts +1 -49
  29. package/dist/types/client/v2/algod/getTransactionProof.d.ts +3 -3
  30. package/dist/types/client/v2/algod/models/types.d.ts +32 -25
  31. package/dist/types/client/v2/indexer/models/types.d.ts +46 -1
  32. package/dist/types/client/v2/indexer/searchForTransactions.d.ts +16 -0
  33. package/package.json +2 -2
  34. package/src/client/v2/algod/getApplicationBoxes.ts +1 -61
  35. package/src/client/v2/algod/getTransactionProof.ts +4 -4
  36. package/src/client/v2/algod/models/types.ts +72 -66
  37. package/src/client/v2/indexer/models/types.ts +119 -0
  38. package/src/client/v2/indexer/searchForTransactions.ts +20 -0
  39. package/src/encoding/schema/bytearray.ts +3 -0
@@ -98,6 +98,25 @@ export default class SearchForTransactions extends JSONRequest {
98
98
  this.query.txid = txid;
99
99
  return this;
100
100
  }
101
+ /**
102
+ * Lookup transactions by group ID.
103
+ *
104
+ * #### Example
105
+ * ```typescript
106
+ * const groupIdBase64Encoded = "A62qVigWtWo0laUzcE1iZY8+KXWzK1vSkgwN/eKgvjc=";
107
+ * const txns = await indexerClient
108
+ * .searchForTransactions()
109
+ * .groupid(groupIdBase64Encoded)
110
+ * .do();
111
+ * ```
112
+ *
113
+ * @param groupid - base64 string or uint8array
114
+ * @category query
115
+ */
116
+ groupid(groupid) {
117
+ this.query['group-id'] = base64StringFunnel(groupid);
118
+ return this;
119
+ }
101
120
  /**
102
121
  * Include results for the specified round.
103
122
  *
@@ -1 +1 @@
1
- {"version":3,"file":"searchForTransactions.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchForTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,WAA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;;;;;;;;;OAaG;IACH,OAAO,CAAC,OAAgB;QACtB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;QACjC,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;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;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,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAClE,CAAC;CACF"}
1
+ {"version":3,"file":"searchForTransactions.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchForTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,WAAiC;IAClF;;OAEG;IACH,kDAAkD;IAClD,IAAI;QACF,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED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,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,OAAgB;QACtB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;QACjC,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;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;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,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAClE,CAAC;CACF"}
@@ -31,6 +31,9 @@ export class ByteArraySchema extends Schema {
31
31
  throw new Error(`Invalid byte array: (${typeof data}) ${data}`);
32
32
  }
33
33
  fromPreparedJSON(encoded) {
34
+ if (encoded === null || encoded === undefined) {
35
+ return this.defaultValue();
36
+ }
34
37
  if (typeof encoded === 'string') {
35
38
  return base64ToBytes(encoded);
36
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bytearray.js","sourceRoot":"","sources":["../../../../src/encoding/schema/bytearray.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,GAKP,MAAM,gBAAgB,CAAC;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C,OAAO,CAAC,CAAC;YACrC,IAAI,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;gBACrC,OAAO,KAAK,CAAC;YACf,CAAC;YACD,MAAM,IAAI,KAAK,CACb,qCAAqC,IAAI,CAAC,MAAM,SAAS,KAAK,CAAC,UAAU,EAAE,CAC5E,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -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).prefix('int:1234').next('b64:A==').values(true).do();
10
+ * const boxesResponse = await algodClient.getApplicationBoxes(index).max(3).do();
11
11
  * const boxNames = boxesResponse.boxes.map(box => box.name);
12
12
  * ```
13
13
  *
@@ -38,53 +38,5 @@ 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;
89
41
  prepare(response: HTTPClientResponse): BoxesResponse;
90
42
  }
@@ -1,7 +1,7 @@
1
1
  import JSONRequest from '../jsonrequest.js';
2
2
  import { HTTPClient, HTTPClientResponse } from '../../client.js';
3
- import { TransactionProofResponse } from './models/types.js';
4
- export default class GetTransactionProof extends JSONRequest<TransactionProofResponse> {
3
+ import { TransactionProof } from './models/types.js';
4
+ export default class GetTransactionProof extends JSONRequest<TransactionProof> {
5
5
  private txID;
6
6
  private round;
7
7
  constructor(c: HTTPClient, round: number | bigint, txID: string);
@@ -24,5 +24,5 @@ export default class GetTransactionProof extends JSONRequest<TransactionProofRes
24
24
  * @category query
25
25
  */
26
26
  hashType(hashType: string): this;
27
- prepare(response: HTTPClientResponse): TransactionProofResponse;
27
+ prepare(response: HTTPClientResponse): TransactionProof;
28
28
  }
@@ -1180,11 +1180,11 @@ export declare class Box implements Encodable {
1180
1180
  /**
1181
1181
  * The round for which this information is relevant
1182
1182
  */
1183
- round?: bigint;
1183
+ round: bigint;
1184
1184
  /**
1185
1185
  * The box value, base64 encoded.
1186
1186
  */
1187
- value?: Uint8Array;
1187
+ value: Uint8Array;
1188
1188
  /**
1189
1189
  * Creates a new `Box` object.
1190
1190
  * @param name - The box name, base64 encoded
@@ -1193,13 +1193,34 @@ export declare class Box implements Encodable {
1193
1193
  */
1194
1194
  constructor({ name, round, value, }: {
1195
1195
  name: string | Uint8Array;
1196
- round?: number | bigint;
1197
- value?: string | Uint8Array;
1196
+ round: number | bigint;
1197
+ value: string | Uint8Array;
1198
1198
  });
1199
1199
  getEncodingSchema(): Schema;
1200
1200
  toEncodingData(): Map<string, unknown>;
1201
1201
  static fromEncodingData(data: unknown): Box;
1202
1202
  }
1203
+ /**
1204
+ * Box descriptor describes a Box.
1205
+ */
1206
+ export declare class BoxDescriptor implements Encodable {
1207
+ private static encodingSchemaValue;
1208
+ static get encodingSchema(): Schema;
1209
+ /**
1210
+ * Base64 encoded box name
1211
+ */
1212
+ name: Uint8Array;
1213
+ /**
1214
+ * Creates a new `BoxDescriptor` object.
1215
+ * @param name - Base64 encoded box name
1216
+ */
1217
+ constructor({ name }: {
1218
+ name: string | Uint8Array;
1219
+ });
1220
+ getEncodingSchema(): Schema;
1221
+ toEncodingData(): Map<string, unknown>;
1222
+ static fromEncodingData(data: unknown): BoxDescriptor;
1223
+ }
1203
1224
  /**
1204
1225
  * References a box of an application.
1205
1226
  */
@@ -1228,32 +1249,18 @@ export declare class BoxReference implements Encodable {
1228
1249
  static fromEncodingData(data: unknown): BoxReference;
1229
1250
  }
1230
1251
  /**
1231
- * Boxes of an application
1252
+ * Box names of an application
1232
1253
  */
1233
1254
  export declare class BoxesResponse implements Encodable {
1234
1255
  private static encodingSchemaValue;
1235
1256
  static get encodingSchema(): Schema;
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;
1257
+ boxes: BoxDescriptor[];
1246
1258
  /**
1247
1259
  * Creates a new `BoxesResponse` object.
1248
1260
  * @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.
1252
1261
  */
1253
- constructor({ boxes, round, nextToken, }: {
1254
- boxes: Box[];
1255
- round: number | bigint;
1256
- nextToken?: string;
1262
+ constructor({ boxes }: {
1263
+ boxes: BoxDescriptor[];
1257
1264
  });
1258
1265
  getEncodingSchema(): Schema;
1259
1266
  toEncodingData(): Map<string, unknown>;
@@ -3053,7 +3060,7 @@ export declare class TransactionParametersResponse implements Encodable {
3053
3060
  /**
3054
3061
  * Proof of transaction in a block.
3055
3062
  */
3056
- export declare class TransactionProofResponse implements Encodable {
3063
+ export declare class TransactionProof implements Encodable {
3057
3064
  private static encodingSchemaValue;
3058
3065
  static get encodingSchema(): Schema;
3059
3066
  /**
@@ -3080,7 +3087,7 @@ export declare class TransactionProofResponse implements Encodable {
3080
3087
  */
3081
3088
  hashtype?: string;
3082
3089
  /**
3083
- * Creates a new `TransactionProofResponse` object.
3090
+ * Creates a new `TransactionProof` object.
3084
3091
  * @param idx - Index of the transaction in the block's payset.
3085
3092
  * @param proof - Proof of transaction membership.
3086
3093
  * @param stibhash - Hash of SignedTxnInBlock for verifying proof.
@@ -3099,7 +3106,7 @@ export declare class TransactionProofResponse implements Encodable {
3099
3106
  });
3100
3107
  getEncodingSchema(): Schema;
3101
3108
  toEncodingData(): Map<string, unknown>;
3102
- static fromEncodingData(data: unknown): TransactionProofResponse;
3109
+ static fromEncodingData(data: unknown): TransactionProof;
3103
3110
  }
3104
3111
  /**
3105
3112
  * algod version information.
@@ -1475,6 +1475,35 @@ export declare class BoxDescriptor implements Encodable {
1475
1475
  toEncodingData(): Map<string, unknown>;
1476
1476
  static fromEncodingData(data: unknown): BoxDescriptor;
1477
1477
  }
1478
+ /**
1479
+ * BoxReference names a box by its name and the application ID it belongs to.
1480
+ */
1481
+ export declare class BoxReference implements Encodable {
1482
+ private static encodingSchemaValue;
1483
+ static get encodingSchema(): Schema;
1484
+ /**
1485
+ * Application ID to which the box belongs, or zero if referring to the called
1486
+ * application.
1487
+ */
1488
+ app: number;
1489
+ /**
1490
+ * Base64 encoded box name
1491
+ */
1492
+ name: Uint8Array;
1493
+ /**
1494
+ * Creates a new `BoxReference` object.
1495
+ * @param app - Application ID to which the box belongs, or zero if referring to the called
1496
+ * application.
1497
+ * @param name - Base64 encoded box name
1498
+ */
1499
+ constructor({ app, name, }: {
1500
+ app: number | bigint;
1501
+ name: string | Uint8Array;
1502
+ });
1503
+ getEncodingSchema(): Schema;
1504
+ toEncodingData(): Map<string, unknown>;
1505
+ static fromEncodingData(data: unknown): BoxReference;
1506
+ }
1478
1507
  /**
1479
1508
  * Box names of an application
1480
1509
  */
@@ -2490,6 +2519,11 @@ export declare class TransactionApplication implements Encodable {
2490
2519
  * reject the transaction.
2491
2520
  */
2492
2521
  approvalProgram?: Uint8Array;
2522
+ /**
2523
+ * (apbx) the boxes that can be accessed by this transaction (and others in the
2524
+ * same group).
2525
+ */
2526
+ boxReferences?: BoxReference[];
2493
2527
  /**
2494
2528
  * (apsu) Logic executed for application transactions with on-completion set to
2495
2529
  * "clear". It can read and write global state for the application, as well as
@@ -2538,6 +2572,11 @@ export declare class TransactionApplication implements Encodable {
2538
2572
  * * delete
2539
2573
  */
2540
2574
  onCompletion?: string;
2575
+ /**
2576
+ * (aprv) the lowest application version for which this transaction should
2577
+ * immediately fail. 0 indicates that no version check should be performed.
2578
+ */
2579
+ rejectVersion?: number;
2541
2580
  /**
2542
2581
  * Creates a new `TransactionApplication` object.
2543
2582
  * @param applicationId - (apid) ID of the application being configured or empty if creating.
@@ -2549,6 +2588,8 @@ export declare class TransactionApplication implements Encodable {
2549
2588
  * on-completion is set to "clear". It can read and write global state for the
2550
2589
  * application, as well as account-specific local state. Approval programs may
2551
2590
  * reject the transaction.
2591
+ * @param boxReferences - (apbx) the boxes that can be accessed by this transaction (and others in the
2592
+ * same group).
2552
2593
  * @param clearStateProgram - (apsu) Logic executed for application transactions with on-completion set to
2553
2594
  * "clear". It can read and write global state for the application, as well as
2554
2595
  * account-specific local state. Clear state programs cannot reject the
@@ -2576,12 +2617,15 @@ export declare class TransactionApplication implements Encodable {
2576
2617
  * * update
2577
2618
  * * update
2578
2619
  * * delete
2620
+ * @param rejectVersion - (aprv) the lowest application version for which this transaction should
2621
+ * immediately fail. 0 indicates that no version check should be performed.
2579
2622
  */
2580
- constructor({ applicationId, accounts, applicationArgs, approvalProgram, clearStateProgram, extraProgramPages, foreignApps, foreignAssets, globalStateSchema, localStateSchema, onCompletion, }: {
2623
+ constructor({ applicationId, accounts, applicationArgs, approvalProgram, boxReferences, clearStateProgram, extraProgramPages, foreignApps, foreignAssets, globalStateSchema, localStateSchema, onCompletion, rejectVersion, }: {
2581
2624
  applicationId: number | bigint;
2582
2625
  accounts?: (Address | string)[];
2583
2626
  applicationArgs?: Uint8Array[];
2584
2627
  approvalProgram?: string | Uint8Array;
2628
+ boxReferences?: BoxReference[];
2585
2629
  clearStateProgram?: string | Uint8Array;
2586
2630
  extraProgramPages?: number | bigint;
2587
2631
  foreignApps?: (number | bigint)[];
@@ -2589,6 +2633,7 @@ export declare class TransactionApplication implements Encodable {
2589
2633
  globalStateSchema?: StateSchema;
2590
2634
  localStateSchema?: StateSchema;
2591
2635
  onCompletion?: string;
2636
+ rejectVersion?: number | bigint;
2592
2637
  });
2593
2638
  getEncodingSchema(): Schema;
2594
2639
  toEncodingData(): Map<string, unknown>;
@@ -83,6 +83,22 @@ export default class SearchForTransactions extends JSONRequest<TransactionsRespo
83
83
  * @category query
84
84
  */
85
85
  txid(txid: string): this;
86
+ /**
87
+ * Lookup transactions by group ID.
88
+ *
89
+ * #### Example
90
+ * ```typescript
91
+ * const groupIdBase64Encoded = "A62qVigWtWo0laUzcE1iZY8+KXWzK1vSkgwN/eKgvjc=";
92
+ * const txns = await indexerClient
93
+ * .searchForTransactions()
94
+ * .groupid(groupIdBase64Encoded)
95
+ * .do();
96
+ * ```
97
+ *
98
+ * @param groupid - base64 string or uint8array
99
+ * @category query
100
+ */
101
+ groupid(groupid: Uint8Array | string): this;
86
102
  /**
87
103
  * Include results for the specified round.
88
104
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algosdk",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "The official JavaScript SDK for Algorand",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -64,7 +64,7 @@
64
64
  "@typescript-eslint/eslint-plugin": "^6.18.1",
65
65
  "@typescript-eslint/parser": "^6.18.1",
66
66
  "assert": "^2.0.0",
67
- "chromedriver": "^126.0.3",
67
+ "chromedriver": "^136.0.3",
68
68
  "concurrently": "^6.2.0",
69
69
  "cucumber": "^5.1.0",
70
70
  "es-abstract": "^1.18.3",
@@ -9,7 +9,7 @@ import { BoxesResponse } from './models/types.js';
9
9
  * #### Example
10
10
  * ```typescript
11
11
  * const index = 60553466;
12
- * const boxesResponse = await algodClient.getApplicationBoxes(index).prefix('int:1234').next('b64:A==').values(true).do();
12
+ * const boxesResponse = await algodClient.getApplicationBoxes(index).max(3).do();
13
13
  * const boxNames = boxesResponse.boxes.map(box => box.name);
14
14
  * ```
15
15
  *
@@ -53,66 +53,6 @@ export default class GetApplicationBoxes extends JSONRequest<BoxesResponse> {
53
53
  return this;
54
54
  }
55
55
 
56
- /**
57
- * 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...'.
58
- *
59
- * #### Example
60
- * ```typescript
61
- * const prefix = 'int:1234';
62
- * const boxesResult = await algodClient
63
- * .GetApplicationBoxes(1234)
64
- * .prefix(prefix)
65
- * .do();
66
- * ```
67
- *
68
- * @param prefix - the box name prefix in the form 'encoding:value'
69
- * @category query
70
- */
71
- prefix(prefix: string) {
72
- this.query.prefix = prefix;
73
- return this;
74
- }
75
-
76
- /**
77
- * 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.
78
- *
79
- * #### Example
80
- * ```typescript
81
- * const next = 'int:1234';
82
- * const boxesResult = await algodClient
83
- * .GetApplicationBoxes(1234)
84
- * .next(next)
85
- * .do();
86
- * ```
87
- *
88
- * @param next - the next box name for pagination, in the goal app call arg form 'encoding:value'
89
- * @category query
90
- */
91
- next(next: string) {
92
- this.query.next = next;
93
- return this;
94
- }
95
-
96
- /**
97
- * If true, box values will be returned.
98
- *
99
- * #### Example
100
- * ```typescript
101
- * const values = true;
102
- * const boxesResult = await algodClient
103
- * .GetApplicationBoxes(1234)
104
- * .values(values)
105
- * .do();
106
- * ```
107
- *
108
- * @param values - if true, box values will be returned
109
- * @category query
110
- */
111
- values(values: boolean) {
112
- this.query.values = values;
113
- return this;
114
- }
115
-
116
56
  // eslint-disable-next-line class-methods-use-this
117
57
  prepare(response: HTTPClientResponse): BoxesResponse {
118
58
  return decodeJSON(response.getJSONText(), BoxesResponse);
@@ -1,9 +1,9 @@
1
1
  import JSONRequest from '../jsonrequest.js';
2
2
  import { HTTPClient, HTTPClientResponse } from '../../client.js';
3
3
  import { decodeJSON } from '../../../encoding/encoding.js';
4
- import { TransactionProofResponse } from './models/types.js';
4
+ import { TransactionProof } from './models/types.js';
5
5
 
6
- export default class GetTransactionProof extends JSONRequest<TransactionProofResponse> {
6
+ export default class GetTransactionProof extends JSONRequest<TransactionProof> {
7
7
  private round: bigint;
8
8
 
9
9
  constructor(
@@ -42,7 +42,7 @@ export default class GetTransactionProof extends JSONRequest<TransactionProofRes
42
42
  }
43
43
 
44
44
  // eslint-disable-next-line class-methods-use-this
45
- prepare(response: HTTPClientResponse): TransactionProofResponse {
46
- return decodeJSON(response.getJSONText(), TransactionProofResponse);
45
+ prepare(response: HTTPClientResponse): TransactionProof {
46
+ return decodeJSON(response.getJSONText(), TransactionProof);
47
47
  }
48
48
  }