algosdk 1.22.0 → 1.23.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/src/boxStorage.js +33 -0
- package/dist/cjs/src/boxStorage.js.map +1 -0
- package/dist/cjs/src/client/client.js +11 -9
- package/dist/cjs/src/client/client.js.map +1 -1
- package/dist/cjs/src/client/urlTokenBaseHTTPClient.js +93 -96
- package/dist/cjs/src/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/cjs/src/client/v2/algod/algod.js +38 -1
- package/dist/cjs/src/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/src/client/v2/algod/getApplicationBoxByName.js +44 -0
- package/dist/cjs/src/client/v2/algod/getApplicationBoxByName.js.map +1 -0
- package/dist/cjs/src/client/v2/algod/getApplicationBoxes.js +60 -0
- package/dist/cjs/src/client/v2/algod/getApplicationBoxes.js.map +1 -0
- package/dist/cjs/src/client/v2/algod/models/types.js +815 -42
- package/dist/cjs/src/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/src/client/v2/{algod/models/base.js → basemodel.js} +1 -1
- package/dist/cjs/src/client/v2/basemodel.js.map +1 -0
- package/dist/cjs/src/client/v2/indexer/indexer.js +50 -0
- package/dist/cjs/src/client/v2/indexer/indexer.js.map +1 -1
- package/dist/cjs/src/client/v2/indexer/lookupApplicationBoxByIDandName.js +45 -0
- package/dist/cjs/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
- package/dist/cjs/src/client/v2/indexer/models/types.js +3077 -0
- package/dist/cjs/src/client/v2/indexer/models/types.js.map +1 -0
- package/dist/cjs/src/client/v2/indexer/searchForApplicationBoxes.js +99 -0
- package/dist/cjs/src/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
- package/dist/cjs/src/client/v2/jsonrequest.js +11 -1
- package/dist/cjs/src/client/v2/jsonrequest.js.map +1 -1
- package/dist/cjs/src/composer.js +4 -1
- package/dist/cjs/src/composer.js.map +1 -1
- package/dist/cjs/src/dryrun.js +1 -1
- package/dist/cjs/src/dryrun.js.map +1 -1
- package/dist/cjs/src/main.js +3 -2
- package/dist/cjs/src/main.js.map +1 -1
- package/dist/cjs/src/makeTxn.js +29 -14
- package/dist/cjs/src/makeTxn.js.map +1 -1
- package/dist/cjs/src/multisig.js +15 -25
- package/dist/cjs/src/multisig.js.map +1 -1
- package/dist/cjs/src/transaction.js +30 -0
- package/dist/cjs/src/transaction.js.map +1 -1
- package/dist/cjs/src/types/transactions/index.js.map +1 -1
- package/dist/esm/src/boxStorage.js +29 -0
- package/dist/esm/src/boxStorage.js.map +1 -0
- package/dist/esm/src/client/client.js +11 -9
- package/dist/esm/src/client/client.js.map +1 -1
- package/dist/esm/src/client/urlTokenBaseHTTPClient.js +93 -73
- package/dist/esm/src/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/esm/src/client/v2/algod/algod.js +38 -1
- package/dist/esm/src/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/src/client/v2/algod/getApplicationBoxByName.js +38 -0
- package/dist/esm/src/client/v2/algod/getApplicationBoxByName.js.map +1 -0
- package/dist/esm/src/client/v2/algod/getApplicationBoxes.js +54 -0
- package/dist/esm/src/client/v2/algod/getApplicationBoxes.js.map +1 -0
- package/dist/esm/src/client/v2/algod/models/types.js +771 -2
- package/dist/esm/src/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/src/client/v2/{algod/models/base.js → basemodel.js} +1 -1
- package/dist/esm/src/client/v2/basemodel.js.map +1 -0
- package/dist/esm/src/client/v2/indexer/indexer.js +50 -0
- package/dist/esm/src/client/v2/indexer/indexer.js.map +1 -1
- package/dist/esm/src/client/v2/indexer/lookupApplicationBoxByIDandName.js +39 -0
- package/dist/esm/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
- package/dist/esm/src/client/v2/indexer/models/types.js +3009 -0
- package/dist/esm/src/client/v2/indexer/models/types.js.map +1 -0
- package/dist/esm/src/client/v2/indexer/searchForApplicationBoxes.js +93 -0
- package/dist/esm/src/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
- package/dist/esm/src/client/v2/jsonrequest.js +11 -1
- package/dist/esm/src/client/v2/jsonrequest.js.map +1 -1
- package/dist/esm/src/composer.js +4 -1
- package/dist/esm/src/composer.js.map +1 -1
- package/dist/esm/src/dryrun.js +1 -1
- package/dist/esm/src/dryrun.js.map +1 -1
- package/dist/esm/src/main.js +2 -0
- package/dist/esm/src/main.js.map +1 -1
- package/dist/esm/src/makeTxn.js +29 -14
- package/dist/esm/src/makeTxn.js.map +1 -1
- package/dist/esm/src/multisig.js +15 -25
- package/dist/esm/src/multisig.js.map +1 -1
- package/dist/esm/src/transaction.js +30 -0
- package/dist/esm/src/transaction.js.map +1 -1
- package/dist/esm/src/types/transactions/index.js +1 -1
- package/dist/esm/src/types/transactions/index.js.map +1 -1
- package/dist/types/src/boxStorage.d.ts +7 -0
- package/dist/types/src/client/client.d.ts +5 -3
- package/dist/types/src/client/urlTokenBaseHTTPClient.d.ts +8 -12
- package/dist/types/src/client/v2/algod/algod.d.ts +34 -1
- package/dist/types/src/client/v2/algod/getApplicationBoxByName.d.ts +28 -0
- package/dist/types/src/client/v2/algod/getApplicationBoxes.d.ts +43 -0
- package/dist/types/src/client/v2/algod/models/types.d.ts +117 -2
- package/dist/types/src/client/v2/{algod/models/base.d.ts → basemodel.d.ts} +0 -0
- package/dist/types/src/client/v2/indexer/indexer.d.ts +46 -0
- package/dist/types/src/client/v2/indexer/lookupApplicationBoxByIDandName.d.ts +29 -0
- package/dist/types/src/client/v2/indexer/models/types.d.ts +2689 -0
- package/dist/types/src/client/v2/indexer/searchForApplicationBoxes.d.ts +80 -0
- package/dist/types/src/client/v2/jsonrequest.d.ts +8 -1
- package/dist/types/src/composer.d.ts +4 -2
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/makeTxn.d.ts +22 -15
- package/dist/types/src/transaction.d.ts +3 -1
- package/dist/types/src/types/transactions/application.d.ts +3 -3
- package/dist/types/src/types/transactions/base.d.ts +15 -1
- package/dist/types/src/types/transactions/encoded.d.ts +12 -1
- package/dist/types/src/types/transactions/index.d.ts +1 -1
- package/package.json +6 -7
- package/dist/cjs/src/client/v2/algod/models/base.js.map +0 -1
- package/dist/esm/src/client/v2/algod/models/base.js.map +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import JSONRequest from '../jsonrequest';
|
|
2
|
+
import HTTPClient from '../../client';
|
|
3
|
+
import IntDecoding from '../../../types/intDecoding';
|
|
4
|
+
import { BoxesResponse } from './models/types';
|
|
5
|
+
export default class SearchForApplicationBoxes extends JSONRequest<BoxesResponse, Record<string, any>> {
|
|
6
|
+
private index;
|
|
7
|
+
/**
|
|
8
|
+
* Returns information about indexed application boxes.
|
|
9
|
+
*
|
|
10
|
+
* #### Example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const maxResults = 20;
|
|
13
|
+
* const appID = 1234;
|
|
14
|
+
*
|
|
15
|
+
* const responsePage1 = await indexerClient
|
|
16
|
+
* .searchForApplicationBoxes(appID)
|
|
17
|
+
* .limit(maxResults)
|
|
18
|
+
* .do();
|
|
19
|
+
* const boxNamesPage1 = responsePage1.boxes.map(box => box.name);
|
|
20
|
+
*
|
|
21
|
+
* const responsePage2 = await indexerClient
|
|
22
|
+
* .searchForApplicationBoxes(appID)
|
|
23
|
+
* .limit(maxResults)
|
|
24
|
+
* .nextToken(responsePage1.nextToken)
|
|
25
|
+
* .do();
|
|
26
|
+
* const boxNamesPage2 = responsePage2.boxes.map(box => box.name);
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-idboxes)
|
|
30
|
+
* @oaram index - application index.
|
|
31
|
+
* @category GET
|
|
32
|
+
*/
|
|
33
|
+
constructor(c: HTTPClient, intDecoding: IntDecoding, index: number);
|
|
34
|
+
/**
|
|
35
|
+
* @returns `/v2/applications/${index}/boxes`
|
|
36
|
+
*/
|
|
37
|
+
path(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Specify the next page of results.
|
|
40
|
+
*
|
|
41
|
+
* #### Example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const maxResults = 20;
|
|
44
|
+
* const appID = 1234;
|
|
45
|
+
*
|
|
46
|
+
* const responsePage1 = await indexerClient
|
|
47
|
+
* .searchForApplicationBoxes(appID)
|
|
48
|
+
* .limit(maxResults)
|
|
49
|
+
* .do();
|
|
50
|
+
* const boxNamesPage1 = responsePage1.boxes.map(box => box.name);
|
|
51
|
+
*
|
|
52
|
+
* const responsePage2 = await indexerClient
|
|
53
|
+
* .searchForApplicationBoxes(appID)
|
|
54
|
+
* .limit(maxResults)
|
|
55
|
+
* .nextToken(responsePage1.nextToken)
|
|
56
|
+
* .do();
|
|
57
|
+
* const boxNamesPage2 = responsePage2.boxes.map(box => box.name);
|
|
58
|
+
* ```
|
|
59
|
+
* @param nextToken - provided by the previous results.
|
|
60
|
+
* @category query
|
|
61
|
+
*/
|
|
62
|
+
nextToken(next: string): this;
|
|
63
|
+
/**
|
|
64
|
+
* Limit results for pagination.
|
|
65
|
+
*
|
|
66
|
+
* #### Example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const maxResults = 20;
|
|
69
|
+
* const boxesResponse = await indexerClient
|
|
70
|
+
* .searchForApplicationBoxes(1234)
|
|
71
|
+
* .limit(maxResults)
|
|
72
|
+
* .do();
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param limit - maximum number of results to return.
|
|
76
|
+
* @category query
|
|
77
|
+
*/
|
|
78
|
+
limit(limit: number): this;
|
|
79
|
+
prepare(body: Record<string, any>): BoxesResponse;
|
|
80
|
+
}
|
|
@@ -35,10 +35,17 @@ export default abstract class JSONRequest<Data = Record<string, any>, Body = Dat
|
|
|
35
35
|
/**
|
|
36
36
|
* Execute the request.
|
|
37
37
|
* @param headers - Additional headers to send in the request. Optional.
|
|
38
|
-
* @returns A promise which resolves to the response data.
|
|
38
|
+
* @returns A promise which resolves to the parsed response data.
|
|
39
39
|
* @category JSONRequest
|
|
40
40
|
*/
|
|
41
41
|
do(headers?: Record<string, any>): Promise<Data>;
|
|
42
|
+
/**
|
|
43
|
+
* Execute the request, but do not process the response data in any way.
|
|
44
|
+
* @param headers - Additional headers to send in the request. Optional.
|
|
45
|
+
* @returns A promise which resolves to the raw response data, exactly as returned by the server.
|
|
46
|
+
* @category JSONRequest
|
|
47
|
+
*/
|
|
48
|
+
doRaw(headers?: Record<string, any>): Promise<Uint8Array>;
|
|
42
49
|
/**
|
|
43
50
|
* Configure how integers in this request's JSON response will be decoded.
|
|
44
51
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ABIValue, ABIMethod } from './abi';
|
|
2
2
|
import Algodv2 from './client/v2/algod/algod';
|
|
3
3
|
import { TransactionSigner, TransactionWithSigner } from './signer';
|
|
4
|
-
import { OnApplicationComplete, SuggestedParams } from './types/transactions/base';
|
|
4
|
+
import { BoxReference, OnApplicationComplete, SuggestedParams } from './types/transactions/base';
|
|
5
5
|
export declare type ABIArgument = ABIValue | TransactionWithSigner;
|
|
6
6
|
/** Represents the output from a successful ABI method call. */
|
|
7
7
|
export interface ABIResult {
|
|
@@ -74,7 +74,7 @@ export declare class AtomicTransactionComposer {
|
|
|
74
74
|
* causes the current group to exceed MAX_GROUP_SIZE, or if the provided arguments are invalid
|
|
75
75
|
* for the given method.
|
|
76
76
|
*/
|
|
77
|
-
addMethodCall({ appID, method, methodArgs, sender, suggestedParams, onComplete, approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages, note, lease, rekeyTo, signer, }: {
|
|
77
|
+
addMethodCall({ appID, method, methodArgs, sender, suggestedParams, onComplete, approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages, boxes, note, lease, rekeyTo, signer, }: {
|
|
78
78
|
/** The ID of the smart contract to call. Set this to 0 to indicate an application creation call. */
|
|
79
79
|
appID: number;
|
|
80
80
|
/** The method to call on the smart contract */
|
|
@@ -101,6 +101,8 @@ export declare class AtomicTransactionComposer {
|
|
|
101
101
|
numLocalByteSlices?: number;
|
|
102
102
|
/** The number of extra pages to allocate for the application's programs. Only set this if this is an application creation call. If omitted, defaults to 0. */
|
|
103
103
|
extraPages?: number;
|
|
104
|
+
/** The box references for this application call */
|
|
105
|
+
boxes?: BoxReference[];
|
|
104
106
|
/** The note value for this application call */
|
|
105
107
|
note?: Uint8Array;
|
|
106
108
|
/** The lease value for this application call */
|
package/dist/types/src/main.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export { bytesToBigInt, bigIntToBytes } from './encoding/bigint';
|
|
|
73
73
|
export { encodeUint64, decodeUint64 } from './encoding/uint64';
|
|
74
74
|
export { default as generateAccount } from './account';
|
|
75
75
|
export * as modelsv2 from './client/v2/algod/models/types';
|
|
76
|
+
export * as indexerModels from './client/v2/indexer/models/types';
|
|
76
77
|
export { mnemonicToMasterDerivationKey, masterDerivationKeyToMnemonic, secretKeyToMnemonic, mnemonicToSecretKey, seedFromMnemonic, mnemonicFromSeed, } from './mnemonic/mnemonic';
|
|
77
78
|
export { microalgosToAlgos, algosToMicroalgos, INVALID_MICROALGOS_ERROR_MSG, } from './convert';
|
|
78
79
|
export { computeGroupID, assignGroupID } from './group';
|
|
@@ -364,8 +364,9 @@ export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Exp
|
|
|
364
364
|
* @param lease - Lease a transaction
|
|
365
365
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
366
366
|
* @param extraPages - integer extra pages of memory to rent on creation of application
|
|
367
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
367
368
|
*/
|
|
368
|
-
export declare function makeApplicationCreateTxn(from: AppCreateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCreateTxn>['suggestedParams'], onComplete: AppCreateTxn['appOnComplete'], approvalProgram: AppCreateTxn['appApprovalProgram'], clearProgram: AppCreateTxn['appClearProgram'], numLocalInts: AppCreateTxn['appLocalInts'], numLocalByteSlices: AppCreateTxn['appLocalByteSlices'], numGlobalInts: AppCreateTxn['appGlobalInts'], numGlobalByteSlices: AppCreateTxn['appGlobalByteSlices'], appArgs?: AppCreateTxn['appArgs'], accounts?: AppCreateTxn['appAccounts'], foreignApps?: AppCreateTxn['appForeignApps'], foreignAssets?: AppCreateTxn['appForeignAssets'], note?: AppCreateTxn['note'], lease?: AppCreateTxn['lease'], rekeyTo?: AppCreateTxn['reKeyTo'], extraPages?: AppCreateTxn['extraPages']): txnBuilder.Transaction;
|
|
369
|
+
export declare function makeApplicationCreateTxn(from: AppCreateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCreateTxn>['suggestedParams'], onComplete: AppCreateTxn['appOnComplete'], approvalProgram: AppCreateTxn['appApprovalProgram'], clearProgram: AppCreateTxn['appClearProgram'], numLocalInts: AppCreateTxn['appLocalInts'], numLocalByteSlices: AppCreateTxn['appLocalByteSlices'], numGlobalInts: AppCreateTxn['appGlobalInts'], numGlobalByteSlices: AppCreateTxn['appGlobalByteSlices'], appArgs?: AppCreateTxn['appArgs'], accounts?: AppCreateTxn['appAccounts'], foreignApps?: AppCreateTxn['appForeignApps'], foreignAssets?: AppCreateTxn['appForeignAssets'], note?: AppCreateTxn['note'], lease?: AppCreateTxn['lease'], rekeyTo?: AppCreateTxn['reKeyTo'], extraPages?: AppCreateTxn['extraPages'], boxes?: AppCreateTxn['boxes']): txnBuilder.Transaction;
|
|
369
370
|
export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
|
|
370
371
|
appOnComplete: 'onComplete';
|
|
371
372
|
appApprovalProgram: 'approvalProgram';
|
|
@@ -378,7 +379,7 @@ export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<Rename
|
|
|
378
379
|
appForeignApps: 'foreignApps';
|
|
379
380
|
appForeignAssets: 'foreignAssets';
|
|
380
381
|
reKeyTo: 'rekeyTo';
|
|
381
|
-
}>, 'from' | 'suggestedParams' | 'onComplete' | 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'>>): txnBuilder.Transaction;
|
|
382
|
+
}>, 'from' | 'suggestedParams' | 'onComplete' | 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'>>): txnBuilder.Transaction;
|
|
382
383
|
/**
|
|
383
384
|
* Make a transaction that changes an application's approval and clear programs
|
|
384
385
|
* @param from - address of sender
|
|
@@ -400,8 +401,9 @@ export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<Rename
|
|
|
400
401
|
* @param note - Arbitrary data for sender to store
|
|
401
402
|
* @param lease - Lease a transaction
|
|
402
403
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
404
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
403
405
|
*/
|
|
404
|
-
export declare function makeApplicationUpdateTxn(from: AppUpdateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppUpdateTxn>['suggestedParams'], appIndex: AppUpdateTxn['appIndex'], approvalProgram: AppUpdateTxn['appApprovalProgram'], clearProgram: AppUpdateTxn['appClearProgram'], appArgs?: AppUpdateTxn['appArgs'], accounts?: AppUpdateTxn['appAccounts'], foreignApps?: AppUpdateTxn['appForeignApps'], foreignAssets?: AppUpdateTxn['appForeignAssets'], note?: AppUpdateTxn['note'], lease?: AppUpdateTxn['lease'], rekeyTo?: AppUpdateTxn['reKeyTo']): txnBuilder.Transaction;
|
|
406
|
+
export declare function makeApplicationUpdateTxn(from: AppUpdateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppUpdateTxn>['suggestedParams'], appIndex: AppUpdateTxn['appIndex'], approvalProgram: AppUpdateTxn['appApprovalProgram'], clearProgram: AppUpdateTxn['appClearProgram'], appArgs?: AppUpdateTxn['appArgs'], accounts?: AppUpdateTxn['appAccounts'], foreignApps?: AppUpdateTxn['appForeignApps'], foreignAssets?: AppUpdateTxn['appForeignAssets'], note?: AppUpdateTxn['note'], lease?: AppUpdateTxn['lease'], rekeyTo?: AppUpdateTxn['reKeyTo'], boxes?: AppUpdateTxn['boxes']): txnBuilder.Transaction;
|
|
405
407
|
export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppUpdateTxn>, {
|
|
406
408
|
appApprovalProgram: 'approvalProgram';
|
|
407
409
|
appClearProgram: 'clearProgram';
|
|
@@ -409,7 +411,7 @@ export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<Rename
|
|
|
409
411
|
appForeignApps: 'foreignApps';
|
|
410
412
|
appForeignAssets: 'foreignAssets';
|
|
411
413
|
reKeyTo: 'rekeyTo';
|
|
412
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'approvalProgram' | 'clearProgram' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
414
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'approvalProgram' | 'clearProgram' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
413
415
|
/**
|
|
414
416
|
* Make a transaction that deletes an application
|
|
415
417
|
* @param from - address of sender
|
|
@@ -429,14 +431,15 @@ export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<Rename
|
|
|
429
431
|
* @param note - Arbitrary data for sender to store
|
|
430
432
|
* @param lease - Lease a transaction
|
|
431
433
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
434
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
432
435
|
*/
|
|
433
|
-
export declare function makeApplicationDeleteTxn(from: AppDeleteTxn['from'], suggestedParams: MustHaveSuggestedParams<AppDeleteTxn>['suggestedParams'], appIndex: AppDeleteTxn['appIndex'], appArgs?: AppDeleteTxn['appArgs'], accounts?: AppDeleteTxn['appAccounts'], foreignApps?: AppDeleteTxn['appForeignApps'], foreignAssets?: AppDeleteTxn['appForeignAssets'], note?: AppDeleteTxn['note'], lease?: AppDeleteTxn['lease'], rekeyTo?: AppDeleteTxn['reKeyTo']): txnBuilder.Transaction;
|
|
436
|
+
export declare function makeApplicationDeleteTxn(from: AppDeleteTxn['from'], suggestedParams: MustHaveSuggestedParams<AppDeleteTxn>['suggestedParams'], appIndex: AppDeleteTxn['appIndex'], appArgs?: AppDeleteTxn['appArgs'], accounts?: AppDeleteTxn['appAccounts'], foreignApps?: AppDeleteTxn['appForeignApps'], foreignAssets?: AppDeleteTxn['appForeignAssets'], note?: AppDeleteTxn['note'], lease?: AppDeleteTxn['lease'], rekeyTo?: AppDeleteTxn['reKeyTo'], boxes?: AppDeleteTxn['boxes']): txnBuilder.Transaction;
|
|
434
437
|
export declare function makeApplicationDeleteTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppDeleteTxn>, {
|
|
435
438
|
appAccounts: 'accounts';
|
|
436
439
|
appForeignApps: 'foreignApps';
|
|
437
440
|
appForeignAssets: 'foreignAssets';
|
|
438
441
|
reKeyTo: 'rekeyTo';
|
|
439
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
442
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
440
443
|
/**
|
|
441
444
|
* Make a transaction that opts in to use an application
|
|
442
445
|
* @param from - address of sender
|
|
@@ -456,14 +459,15 @@ export declare function makeApplicationDeleteTxnFromObject(o: Expand<Pick<Rename
|
|
|
456
459
|
* @param note - Arbitrary data for sender to store
|
|
457
460
|
* @param lease - Lease a transaction
|
|
458
461
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
462
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
459
463
|
*/
|
|
460
|
-
export declare function makeApplicationOptInTxn(from: AppOptInTxn['from'], suggestedParams: MustHaveSuggestedParams<AppOptInTxn>['suggestedParams'], appIndex: AppOptInTxn['appIndex'], appArgs?: AppOptInTxn['appArgs'], accounts?: AppOptInTxn['appAccounts'], foreignApps?: AppOptInTxn['appForeignApps'], foreignAssets?: AppOptInTxn['appForeignAssets'], note?: AppOptInTxn['note'], lease?: AppOptInTxn['lease'], rekeyTo?: AppOptInTxn['reKeyTo']): txnBuilder.Transaction;
|
|
464
|
+
export declare function makeApplicationOptInTxn(from: AppOptInTxn['from'], suggestedParams: MustHaveSuggestedParams<AppOptInTxn>['suggestedParams'], appIndex: AppOptInTxn['appIndex'], appArgs?: AppOptInTxn['appArgs'], accounts?: AppOptInTxn['appAccounts'], foreignApps?: AppOptInTxn['appForeignApps'], foreignAssets?: AppOptInTxn['appForeignAssets'], note?: AppOptInTxn['note'], lease?: AppOptInTxn['lease'], rekeyTo?: AppOptInTxn['reKeyTo'], boxes?: AppOptInTxn['boxes']): txnBuilder.Transaction;
|
|
461
465
|
export declare function makeApplicationOptInTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
462
466
|
appAccounts: 'accounts';
|
|
463
467
|
appForeignApps: 'foreignApps';
|
|
464
468
|
appForeignAssets: 'foreignAssets';
|
|
465
469
|
reKeyTo: 'rekeyTo';
|
|
466
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
470
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
467
471
|
/**
|
|
468
472
|
* Make a transaction that closes out a user's state in an application
|
|
469
473
|
* @param from - address of sender
|
|
@@ -483,14 +487,15 @@ export declare function makeApplicationOptInTxnFromObject(o: Expand<Pick<RenameP
|
|
|
483
487
|
* @param note - Arbitrary data for sender to store
|
|
484
488
|
* @param lease - Lease a transaction
|
|
485
489
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
490
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
486
491
|
*/
|
|
487
|
-
export declare function makeApplicationCloseOutTxn(from: AppCloseOutTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCloseOutTxn>['suggestedParams'], appIndex: AppCloseOutTxn['appIndex'], appArgs?: AppCloseOutTxn['appArgs'], accounts?: AppCloseOutTxn['appAccounts'], foreignApps?: AppCloseOutTxn['appForeignApps'], foreignAssets?: AppCloseOutTxn['appForeignAssets'], note?: AppCloseOutTxn['note'], lease?: AppCloseOutTxn['lease'], rekeyTo?: AppCloseOutTxn['reKeyTo']): txnBuilder.Transaction;
|
|
492
|
+
export declare function makeApplicationCloseOutTxn(from: AppCloseOutTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCloseOutTxn>['suggestedParams'], appIndex: AppCloseOutTxn['appIndex'], appArgs?: AppCloseOutTxn['appArgs'], accounts?: AppCloseOutTxn['appAccounts'], foreignApps?: AppCloseOutTxn['appForeignApps'], foreignAssets?: AppCloseOutTxn['appForeignAssets'], note?: AppCloseOutTxn['note'], lease?: AppCloseOutTxn['lease'], rekeyTo?: AppCloseOutTxn['reKeyTo'], boxes?: AppCloseOutTxn['boxes']): txnBuilder.Transaction;
|
|
488
493
|
export declare function makeApplicationCloseOutTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
489
494
|
appAccounts: 'accounts';
|
|
490
495
|
appForeignApps: 'foreignApps';
|
|
491
496
|
appForeignAssets: 'foreignAssets';
|
|
492
497
|
reKeyTo: 'rekeyTo';
|
|
493
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
498
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
494
499
|
/**
|
|
495
500
|
* Make a transaction that clears a user's state in an application
|
|
496
501
|
* @param from - address of sender
|
|
@@ -510,14 +515,15 @@ export declare function makeApplicationCloseOutTxnFromObject(o: Expand<Pick<Rena
|
|
|
510
515
|
* @param note - Arbitrary data for sender to store
|
|
511
516
|
* @param lease - Lease a transaction
|
|
512
517
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
518
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
513
519
|
*/
|
|
514
|
-
export declare function makeApplicationClearStateTxn(from: AppClearStateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppClearStateTxn>['suggestedParams'], appIndex: AppClearStateTxn['appIndex'], appArgs?: AppClearStateTxn['appArgs'], accounts?: AppClearStateTxn['appAccounts'], foreignApps?: AppClearStateTxn['appForeignApps'], foreignAssets?: AppClearStateTxn['appForeignAssets'], note?: AppClearStateTxn['note'], lease?: AppClearStateTxn['lease'], rekeyTo?: AppClearStateTxn['reKeyTo']): txnBuilder.Transaction;
|
|
520
|
+
export declare function makeApplicationClearStateTxn(from: AppClearStateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppClearStateTxn>['suggestedParams'], appIndex: AppClearStateTxn['appIndex'], appArgs?: AppClearStateTxn['appArgs'], accounts?: AppClearStateTxn['appAccounts'], foreignApps?: AppClearStateTxn['appForeignApps'], foreignAssets?: AppClearStateTxn['appForeignAssets'], note?: AppClearStateTxn['note'], lease?: AppClearStateTxn['lease'], rekeyTo?: AppClearStateTxn['reKeyTo'], boxes?: AppClearStateTxn['boxes']): txnBuilder.Transaction;
|
|
515
521
|
export declare function makeApplicationClearStateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
516
522
|
appAccounts: 'accounts';
|
|
517
523
|
appForeignApps: 'foreignApps';
|
|
518
524
|
appForeignAssets: 'foreignAssets';
|
|
519
525
|
reKeyTo: 'rekeyTo';
|
|
520
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
526
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
521
527
|
/**
|
|
522
528
|
* Make a transaction that just calls an application, doing nothing on completion
|
|
523
529
|
* @param from - address of sender
|
|
@@ -537,14 +543,15 @@ export declare function makeApplicationClearStateTxnFromObject(o: Expand<Pick<Re
|
|
|
537
543
|
* @param note - Arbitrary data for sender to store
|
|
538
544
|
* @param lease - Lease a transaction
|
|
539
545
|
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
546
|
+
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
540
547
|
*/
|
|
541
|
-
export declare function makeApplicationNoOpTxn(from: AppNoOpTxn['from'], suggestedParams: MustHaveSuggestedParams<AppNoOpTxn>['suggestedParams'], appIndex: AppNoOpTxn['appIndex'], appArgs?: AppNoOpTxn['appArgs'], accounts?: AppNoOpTxn['appAccounts'], foreignApps?: AppNoOpTxn['appForeignApps'], foreignAssets?: AppNoOpTxn['appForeignAssets'], note?: AppNoOpTxn['note'], lease?: AppNoOpTxn['lease'], rekeyTo?: AppNoOpTxn['reKeyTo']): txnBuilder.Transaction;
|
|
548
|
+
export declare function makeApplicationNoOpTxn(from: AppNoOpTxn['from'], suggestedParams: MustHaveSuggestedParams<AppNoOpTxn>['suggestedParams'], appIndex: AppNoOpTxn['appIndex'], appArgs?: AppNoOpTxn['appArgs'], accounts?: AppNoOpTxn['appAccounts'], foreignApps?: AppNoOpTxn['appForeignApps'], foreignAssets?: AppNoOpTxn['appForeignAssets'], note?: AppNoOpTxn['note'], lease?: AppNoOpTxn['lease'], rekeyTo?: AppNoOpTxn['reKeyTo'], boxes?: AppNoOpTxn['boxes']): txnBuilder.Transaction;
|
|
542
549
|
export declare function makeApplicationNoOpTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
543
550
|
appAccounts: 'accounts';
|
|
544
551
|
appForeignApps: 'foreignApps';
|
|
545
552
|
appForeignAssets: 'foreignAssets';
|
|
546
553
|
reKeyTo: 'rekeyTo';
|
|
547
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
554
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
548
555
|
export { OnApplicationComplete } from './types/transactions/base';
|
|
549
556
|
/**
|
|
550
557
|
* Generic function for creating any application call transaction.
|
|
@@ -555,7 +562,7 @@ export declare function makeApplicationCallTxnFromObject(options: Expand<Pick<Re
|
|
|
555
562
|
appForeignApps: 'foreignApps';
|
|
556
563
|
appForeignAssets: 'foreignAssets';
|
|
557
564
|
reKeyTo: 'rekeyTo';
|
|
558
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'onComplete' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'> & Partial<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
|
|
565
|
+
}>, 'from' | 'suggestedParams' | 'appIndex' | 'onComplete' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'> & Partial<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
|
|
559
566
|
appApprovalProgram: 'approvalProgram';
|
|
560
567
|
appClearProgram: 'clearProgram';
|
|
561
568
|
appLocalInts: 'numLocalInts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OnApplicationComplete, TransactionParams, TransactionType } from './types/transactions/base';
|
|
2
|
+
import { OnApplicationComplete, TransactionParams, TransactionType, BoxReference } from './types/transactions/base';
|
|
3
3
|
import AnyTransaction, { EncodedTransaction, EncodedMultisig, EncodedLogicSig } from './types/transactions';
|
|
4
4
|
import { Address } from './types/address';
|
|
5
5
|
export declare const ALGORAND_MIN_TX_FEE = 1000;
|
|
@@ -58,6 +58,7 @@ interface TransactionStorageStructure extends Omit<TransactionParams, 'from' | '
|
|
|
58
58
|
nonParticipation?: boolean;
|
|
59
59
|
group?: Buffer;
|
|
60
60
|
extraPages?: number;
|
|
61
|
+
boxes?: BoxReference[];
|
|
61
62
|
stateProofType?: number | bigint;
|
|
62
63
|
stateProof?: Uint8Array;
|
|
63
64
|
stateProofMessage?: Uint8Array;
|
|
@@ -112,6 +113,7 @@ export declare class Transaction implements TransactionStorageStructure {
|
|
|
112
113
|
appAccounts?: Address[];
|
|
113
114
|
appForeignApps?: number[];
|
|
114
115
|
appForeignAssets?: number[];
|
|
116
|
+
boxes?: BoxReference[];
|
|
115
117
|
type?: TransactionType;
|
|
116
118
|
flatFee: boolean;
|
|
117
119
|
reKeyTo?: Address;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TransactionType, TransactionParams } from './base';
|
|
2
2
|
import { ConstructTransaction } from './builder';
|
|
3
|
-
declare type SpecificParametersForCreate = Pick<TransactionParams, 'appIndex' | 'appOnComplete' | 'appApprovalProgram' | 'appClearProgram' | 'appLocalInts' | 'appLocalByteSlices' | 'appGlobalInts' | 'appGlobalByteSlices' | 'appArgs' | 'appAccounts' | 'appForeignApps' | 'appForeignAssets' | 'extraPages'>;
|
|
3
|
+
declare type SpecificParametersForCreate = Pick<TransactionParams, 'appIndex' | 'appOnComplete' | 'appApprovalProgram' | 'appClearProgram' | 'appLocalInts' | 'appLocalByteSlices' | 'appGlobalInts' | 'appGlobalByteSlices' | 'appArgs' | 'appAccounts' | 'appForeignApps' | 'appForeignAssets' | 'boxes' | 'extraPages'>;
|
|
4
4
|
interface OverwritesForCreate {
|
|
5
5
|
type?: TransactionType.appl;
|
|
6
6
|
}
|
|
7
7
|
export declare type ApplicationCreateTransaction = ConstructTransaction<SpecificParametersForCreate, OverwritesForCreate>;
|
|
8
|
-
declare type SpecificParametersForUpdate = Pick<TransactionParams, 'appIndex' | 'appOnComplete' | 'appApprovalProgram' | 'appClearProgram' | 'appArgs' | 'appAccounts' | 'appForeignApps' | 'appForeignAssets'>;
|
|
8
|
+
declare type SpecificParametersForUpdate = Pick<TransactionParams, 'appIndex' | 'appOnComplete' | 'appApprovalProgram' | 'appClearProgram' | 'appArgs' | 'appAccounts' | 'appForeignApps' | 'appForeignAssets' | 'boxes'>;
|
|
9
9
|
interface OverwritesForUpdate {
|
|
10
10
|
type?: TransactionType.appl;
|
|
11
11
|
}
|
|
12
12
|
export declare type ApplicationUpdateTransaction = ConstructTransaction<SpecificParametersForUpdate, OverwritesForUpdate>;
|
|
13
|
-
declare type SpecificParametersForDelete = Pick<TransactionParams, 'appIndex' | 'appOnComplete' | 'appArgs' | 'appAccounts' | 'appForeignApps' | 'appForeignAssets'>;
|
|
13
|
+
declare type SpecificParametersForDelete = Pick<TransactionParams, 'appIndex' | 'appOnComplete' | 'appArgs' | 'appAccounts' | 'appForeignApps' | 'appForeignAssets' | 'boxes'>;
|
|
14
14
|
interface OverwritesForDelete {
|
|
15
15
|
type?: TransactionType.appl;
|
|
16
16
|
}
|
|
@@ -101,6 +101,19 @@ export interface SuggestedParams {
|
|
|
101
101
|
*/
|
|
102
102
|
genesisHash: string;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* A grouping of the app ID and name of the box in an Uint8Array
|
|
106
|
+
*/
|
|
107
|
+
export interface BoxReference {
|
|
108
|
+
/**
|
|
109
|
+
* A unique application index
|
|
110
|
+
*/
|
|
111
|
+
appIndex: number;
|
|
112
|
+
/**
|
|
113
|
+
* Name of box to reference
|
|
114
|
+
*/
|
|
115
|
+
name: Uint8Array;
|
|
116
|
+
}
|
|
104
117
|
/**
|
|
105
118
|
* A full list of all available transaction parameters
|
|
106
119
|
*
|
|
@@ -314,8 +327,9 @@ export interface TransactionParams {
|
|
|
314
327
|
*/
|
|
315
328
|
extraPages?: number;
|
|
316
329
|
/**
|
|
317
|
-
*
|
|
330
|
+
* A grouping of the app ID and name of the box in an Uint8Array
|
|
318
331
|
*/
|
|
332
|
+
boxes?: BoxReference[];
|
|
319
333
|
stateProofType?: number | bigint;
|
|
320
334
|
/**
|
|
321
335
|
* Byte array containing the state proof.
|
|
@@ -68,6 +68,16 @@ export interface EncodedGlobalStateSchema {
|
|
|
68
68
|
*/
|
|
69
69
|
nbs: number;
|
|
70
70
|
}
|
|
71
|
+
export interface EncodedBoxReference {
|
|
72
|
+
/**
|
|
73
|
+
* index of the app ID in the foreign apps array
|
|
74
|
+
*/
|
|
75
|
+
i: number;
|
|
76
|
+
/**
|
|
77
|
+
* box name
|
|
78
|
+
*/
|
|
79
|
+
n: Uint8Array;
|
|
80
|
+
}
|
|
71
81
|
/**
|
|
72
82
|
* A rough structure for the encoded transaction object. Every property is labelled with its associated Transaction type property
|
|
73
83
|
*/
|
|
@@ -241,8 +251,9 @@ export interface EncodedTransaction {
|
|
|
241
251
|
*/
|
|
242
252
|
apep?: number;
|
|
243
253
|
/**
|
|
244
|
-
*
|
|
254
|
+
* boxes
|
|
245
255
|
*/
|
|
256
|
+
apbx?: EncodedBoxReference[];
|
|
246
257
|
sptype?: number | bigint;
|
|
247
258
|
/**
|
|
248
259
|
* stateProof
|
|
@@ -3,7 +3,7 @@ import KeyRegistrationTxn from './keyreg';
|
|
|
3
3
|
import { AssetCreateTransaction as AssetCreateTxn, AssetConfigurationTransaction as AssetConfigTxn, AssetDestroyTransaction as AssetDestroyTxn, AssetFreezeTransaction as AssetFreezeTxn, AssetTransferTransaction as AssetTransferTxn } from './asset';
|
|
4
4
|
import { ApplicationCreateTransaction as AppCreateTxn, ApplicationUpdateTransaction as AppUpdateTxn, ApplicationDeleteTransaction as AppDeleteTxn, ApplicationOptInTransaction as AppOptInTxn, ApplicationCloseOutTransaction as AppCloseOutTxn, ApplicationClearStateTransaction as AppClearStateTxn, ApplicationNoOpTransaction as AppNoOpTxn } from './application';
|
|
5
5
|
import StateProofTxn from './stateproof';
|
|
6
|
-
export { TransactionParams, TransactionType, SuggestedParams } from './base';
|
|
6
|
+
export { TransactionParams, TransactionType, SuggestedParams, BoxReference, } from './base';
|
|
7
7
|
export { MustHaveSuggestedParams, MustHaveSuggestedParamsInline, } from './builder';
|
|
8
8
|
export * from './encoded';
|
|
9
9
|
export { default as PaymentTxn } from './payment';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "algosdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.2",
|
|
4
4
|
"description": "The official JavaScript SDK for Algorand",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -19,22 +19,18 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"algo-msgpack-with-bigint": "^2.1.1",
|
|
21
21
|
"buffer": "^6.0.2",
|
|
22
|
+
"cross-fetch": "^3.1.5",
|
|
22
23
|
"hi-base32": "^0.5.1",
|
|
23
24
|
"js-sha256": "^0.9.0",
|
|
24
25
|
"js-sha3": "^0.8.0",
|
|
25
26
|
"js-sha512": "^0.8.0",
|
|
26
27
|
"json-bigint": "^1.0.0",
|
|
27
|
-
"superagent": "^6.1.0",
|
|
28
28
|
"tweetnacl": "^1.0.3",
|
|
29
29
|
"vlq": "^2.0.4"
|
|
30
30
|
},
|
|
31
|
-
"optionalDependencies": {
|
|
32
|
-
"fsevents": "2.1.2"
|
|
33
|
-
},
|
|
34
31
|
"devDependencies": {
|
|
35
32
|
"@types/json-bigint": "^1.0.0",
|
|
36
33
|
"@types/mocha": "^8.2.2",
|
|
37
|
-
"@types/superagent": "^4.1.11",
|
|
38
34
|
"@types/url-parse": "^1.4.3",
|
|
39
35
|
"@typescript-eslint/eslint-plugin": "^4.26.1",
|
|
40
36
|
"@typescript-eslint/parser": "^4.26.1",
|
|
@@ -81,5 +77,8 @@
|
|
|
81
77
|
"example": "ts-node"
|
|
82
78
|
},
|
|
83
79
|
"author": "Algorand, llc",
|
|
84
|
-
"license": "MIT"
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=14.0.0"
|
|
83
|
+
}
|
|
85
84
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../../src/client/v2/algod/models/base.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mDAAmD;AACnD,SAAS,aAAa,CAAC,GAAQ;IAC7B,kDAAkD;IAClD,OAAO,CACL,GAAG,KAAK,SAAS;QACjB,GAAG,IAAI,IAAI;QACX,CAAC,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