algosdk 1.13.0-beta.2 → 1.13.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 +4 -4
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/src/client/v2/algod/algod.js +255 -7
- package/dist/cjs/src/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/src/client/v2/indexer/indexer.js +153 -1
- package/dist/cjs/src/client/v2/indexer/indexer.js.map +1 -1
- package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js +98 -6
- package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/cjs/src/client/v2/serviceClient.js.map +1 -1
- package/dist/cjs/src/dryrun.js +103 -0
- package/dist/cjs/src/dryrun.js.map +1 -0
- package/dist/cjs/src/main.js +1 -0
- package/dist/cjs/src/main.js.map +1 -1
- package/dist/esm/src/client/v2/algod/algod.js +255 -7
- package/dist/esm/src/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/src/client/v2/indexer/indexer.js +153 -1
- package/dist/esm/src/client/v2/indexer/indexer.js.map +1 -1
- package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js +98 -6
- package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/esm/src/client/v2/serviceClient.js.map +1 -1
- package/dist/esm/src/dryrun.js +99 -0
- package/dist/esm/src/dryrun.js.map +1 -0
- package/dist/esm/src/main.js +1 -0
- package/dist/esm/src/main.js.map +1 -1
- package/dist/types/src/client/v2/algod/algod.d.ts +255 -7
- package/dist/types/src/client/v2/indexer/indexer.d.ts +153 -1
- package/dist/types/src/client/v2/indexer/lookupAssetBalances.d.ts +98 -0
- package/dist/types/src/client/v2/serviceClient.d.ts +2 -0
- package/dist/types/src/dryrun.d.ts +20 -0
- package/dist/types/src/main.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import AlgodClient from './client/v2/algod/algod';
|
|
2
|
+
import { DryrunRequest, DryrunSource } from './client/v2/algod/models/types';
|
|
3
|
+
import { SignedTransaction } from './transaction';
|
|
4
|
+
/**
|
|
5
|
+
* createDryrun takes an Algod Client (from algod.AlgodV2Client) and an array of Signed Transactions
|
|
6
|
+
* from (transaction.SignedTransaction) and creates a DryrunRequest object with relevant balances
|
|
7
|
+
* @param client - the AlgodClient to make requests against
|
|
8
|
+
* @param txns - the array of SignedTransaction to use for generating the DryrunRequest object
|
|
9
|
+
* @param protocolVersion - the string representing the protocol version to use
|
|
10
|
+
* @param latestTimestamp - the timestamp
|
|
11
|
+
* @returns the DryrunRequest object constructed from the SignedTransactions passed
|
|
12
|
+
*/
|
|
13
|
+
export declare function createDryrun({ client, txns, protocolVersion, latestTimestamp, round, sources, }: {
|
|
14
|
+
client: AlgodClient;
|
|
15
|
+
txns: SignedTransaction[];
|
|
16
|
+
protocolVersion?: string;
|
|
17
|
+
latestTimestamp?: number | bigint;
|
|
18
|
+
round?: number | bigint;
|
|
19
|
+
sources?: DryrunSource[];
|
|
20
|
+
}): Promise<DryrunRequest>;
|
package/dist/types/src/main.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export { computeGroupID, assignGroupID } from './group';
|
|
|
78
78
|
export { LogicSigAccount, makeLogicSig, signLogicSigTransaction, signLogicSigTransactionObject, logicSigFromByte, tealSign, tealSignFromProgram, } from './logicsig';
|
|
79
79
|
export { signMultisigTransaction, mergeMultisigTransactions, appendSignMultisigTransaction, multisigAddress, } from './multisig';
|
|
80
80
|
export declare const LogicTemplates: any;
|
|
81
|
+
export * from './dryrun';
|
|
81
82
|
export * from './makeTxn';
|
|
82
83
|
export * from './transaction';
|
|
83
84
|
export * from './signer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "algosdk",
|
|
3
|
-
"version": "1.13.0
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "The official JavaScript SDK for Algorand",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^4.26.1",
|
|
37
37
|
"@typescript-eslint/parser": "^4.26.1",
|
|
38
38
|
"assert": "^2.0.0",
|
|
39
|
-
"chromedriver": "^
|
|
39
|
+
"chromedriver": "^97.0.0",
|
|
40
40
|
"concurrently": "^6.2.0",
|
|
41
41
|
"coveralls": "^3.1.0",
|
|
42
42
|
"cucumber": "^5.1.0",
|