@algorandfoundation/algokit-utils 1.0.0-beta.2 → 1.0.0-beta.20
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/{dist/account.d.ts → account.d.ts} +29 -31
- package/account.d.ts.map +1 -0
- package/{dist/account.js → account.js} +43 -43
- package/account.js.map +1 -0
- package/amount.d.ts +8 -0
- package/amount.d.ts.map +1 -0
- package/amount.js +24 -0
- package/amount.js.map +1 -0
- package/app.d.ts +51 -0
- package/app.d.ts.map +1 -0
- package/app.js +288 -0
- package/app.js.map +1 -0
- package/application-client.d.ts +10 -0
- package/application-client.d.ts.map +1 -0
- package/application-client.js +15 -0
- package/application-client.js.map +1 -0
- package/deploy-app.d.ts +93 -0
- package/deploy-app.d.ts.map +1 -0
- package/{dist/deploy-app.js → deploy-app.js} +129 -137
- package/deploy-app.js.map +1 -0
- package/index.d.ts +14 -0
- package/index.d.ts.map +1 -0
- package/{dist/index.js → index.js} +6 -4
- package/index.js.map +1 -0
- package/{dist/indexer-lookup.d.ts → indexer-lookup.d.ts} +1 -1
- package/{dist/indexer-lookup.d.ts.map → indexer-lookup.d.ts.map} +1 -1
- package/{dist/localnet.d.ts → localnet.d.ts} +4 -4
- package/localnet.d.ts.map +1 -0
- package/{dist/localnet.js → localnet.js} +10 -10
- package/localnet.js.map +1 -0
- package/{dist/network-client.d.ts → network-client.d.ts} +11 -20
- package/network-client.d.ts.map +1 -0
- package/{dist/network-client.js → network-client.js} +11 -11
- package/{dist/network-client.js.map → network-client.js.map} +1 -1
- package/package.json +4 -92
- package/testing/account.d.ts +14 -0
- package/testing/account.d.ts.map +1 -0
- package/testing/account.js +31 -0
- package/testing/account.js.map +1 -0
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +19 -0
- package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +1 -0
- package/testing/fixtures/algokit-log-capture-fixture.js +43 -0
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
- package/testing/fixtures/algorand-fixture.d.ts +20 -0
- package/testing/fixtures/algorand-fixture.d.ts.map +1 -0
- package/testing/fixtures/algorand-fixture.js +49 -0
- package/testing/fixtures/algorand-fixture.js.map +1 -0
- package/testing/fixtures/index.d.ts +3 -0
- package/testing/fixtures/index.d.ts.map +1 -0
- package/testing/fixtures/index.js +19 -0
- package/testing/fixtures/index.js.map +1 -0
- package/testing/index.d.ts +6 -0
- package/testing/index.d.ts.map +1 -0
- package/testing/index.js +22 -0
- package/testing/index.js.map +1 -0
- package/testing/indexer.d.ts +12 -0
- package/testing/indexer.d.ts.map +1 -0
- package/testing/indexer.js +39 -0
- package/testing/indexer.js.map +1 -0
- package/testing/test-logger.d.ts +39 -0
- package/testing/test-logger.d.ts.map +1 -0
- package/testing/test-logger.js +69 -0
- package/testing/test-logger.js.map +1 -0
- package/testing/transaction-logger.d.ts +29 -0
- package/testing/transaction-logger.d.ts.map +1 -0
- package/testing/transaction-logger.js +71 -0
- package/testing/transaction-logger.js.map +1 -0
- package/transaction.d.ts +80 -0
- package/transaction.d.ts.map +1 -0
- package/{dist/transaction.js → transaction.js} +88 -106
- package/transaction.js.map +1 -0
- package/transfer.d.ts +21 -0
- package/transfer.d.ts.map +1 -0
- package/transfer.js +65 -0
- package/transfer.js.map +1 -0
- package/types/account.d.ts +52 -0
- package/types/account.d.ts.map +1 -0
- package/types/account.js +86 -0
- package/types/account.js.map +1 -0
- package/types/algo-http-client-with-retry.d.ts.map +1 -0
- package/{dist → types}/algo-http-client-with-retry.js +2 -2
- package/types/algo-http-client-with-retry.js.map +1 -0
- package/{dist/algod-type.d.ts → types/algod.d.ts} +6 -7
- package/types/algod.d.ts.map +1 -0
- package/{dist/algod-type.js → types/algod.js} +1 -1
- package/types/algod.js.map +1 -0
- package/{dist/algo-amount.d.ts → types/amount.d.ts} +3 -1
- package/types/amount.d.ts.map +1 -0
- package/{dist/algo-amount.js → types/amount.js} +7 -1
- package/types/amount.js.map +1 -0
- package/types/app.d.ts +234 -0
- package/types/app.d.ts.map +1 -0
- package/types/app.js +32 -0
- package/types/app.js.map +1 -0
- package/types/application-client.d.ts +147 -0
- package/types/application-client.d.ts.map +1 -0
- package/types/application-client.js +340 -0
- package/types/application-client.js.map +1 -0
- package/types/appspec.d.ts +77 -0
- package/types/appspec.d.ts.map +1 -0
- package/types/appspec.js +15 -0
- package/types/appspec.js.map +1 -0
- package/types/config.d.ts +15 -0
- package/types/config.d.ts.map +1 -0
- package/types/config.js +27 -0
- package/types/config.js.map +1 -0
- package/{dist/indexer-type.d.ts → types/indexer.d.ts} +9 -10
- package/types/indexer.d.ts.map +1 -0
- package/{dist/indexer-type.js → types/indexer.js} +1 -1
- package/types/indexer.js.map +1 -0
- package/{dist/config.d.ts → types/logging.d.ts} +3 -15
- package/types/logging.d.ts.map +1 -0
- package/types/logging.js +27 -0
- package/types/logging.js.map +1 -0
- package/types/logic-error.d.ts +16 -0
- package/types/logic-error.d.ts.map +1 -0
- package/types/logic-error.js +35 -0
- package/types/logic-error.js.map +1 -0
- package/types/network-client.d.ts +11 -0
- package/types/network-client.d.ts.map +1 -0
- package/types/network-client.js +3 -0
- package/types/network-client.js.map +1 -0
- package/types/testing.d.ts +89 -0
- package/types/testing.d.ts.map +1 -0
- package/types/testing.js +3 -0
- package/types/testing.js.map +1 -0
- package/types/transaction.d.ts +67 -0
- package/types/transaction.d.ts.map +1 -0
- package/types/transaction.js +3 -0
- package/types/transaction.js.map +1 -0
- package/types/transfer.d.ts +32 -0
- package/types/transfer.d.ts.map +1 -0
- package/types/transfer.js +3 -0
- package/types/transfer.js.map +1 -0
- package/types/urlTokenBaseHTTPClient.d.ts.map +1 -0
- package/types/urlTokenBaseHTTPClient.js.map +1 -0
- package/LICENSE +0 -21
- package/README.md +0 -31
- package/dist/account.d.ts.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/algo-amount.d.ts.map +0 -1
- package/dist/algo-amount.js.map +0 -1
- package/dist/algo-http-client-with-retry.d.ts.map +0 -1
- package/dist/algo-http-client-with-retry.js.map +0 -1
- package/dist/algod-type.d.ts.map +0 -1
- package/dist/algod-type.js.map +0 -1
- package/dist/app.d.ts +0 -150
- package/dist/app.d.ts.map +0 -1
- package/dist/app.js +0 -160
- package/dist/app.js.map +0 -1
- package/dist/application-client.d.ts +0 -1
- package/dist/application-client.d.ts.map +0 -1
- package/dist/application-client.js +0 -69
- package/dist/application-client.js.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -28
- package/dist/config.js.map +0 -1
- package/dist/deploy-app.d.ts +0 -149
- package/dist/deploy-app.d.ts.map +0 -1
- package/dist/deploy-app.js.map +0 -1
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/indexer-type.d.ts.map +0 -1
- package/dist/indexer-type.js.map +0 -1
- package/dist/localnet.d.ts.map +0 -1
- package/dist/localnet.js.map +0 -1
- package/dist/network-client.d.ts.map +0 -1
- package/dist/package.json +0 -20
- package/dist/transaction.d.ts +0 -147
- package/dist/transaction.d.ts.map +0 -1
- package/dist/transaction.js.map +0 -1
- package/dist/transfer.d.ts +0 -24
- package/dist/transfer.d.ts.map +0 -1
- package/dist/transfer.js +0 -33
- package/dist/transfer.js.map +0 -1
- package/dist/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/dist/urlTokenBaseHTTPClient.js.map +0 -1
- /package/{dist/indexer-lookup.js → indexer-lookup.js} +0 -0
- /package/{dist/indexer-lookup.js.map → indexer-lookup.js.map} +0 -0
- /package/{dist → types}/algo-http-client-with-retry.d.ts +0 -0
- /package/{dist → types}/urlTokenBaseHTTPClient.d.ts +0 -0
- /package/{dist → types}/urlTokenBaseHTTPClient.js +0 -0
package/types/logging.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.nullLogger = exports.consoleLogger = void 0;
|
|
6
|
+
/** A logger implementation that writes to console */
|
|
7
|
+
exports.consoleLogger = {
|
|
8
|
+
error: console.error,
|
|
9
|
+
warn: console.warn,
|
|
10
|
+
info: console.info,
|
|
11
|
+
verbose: console.trace,
|
|
12
|
+
debug: console.debug,
|
|
13
|
+
};
|
|
14
|
+
/** A logger implementation that does nothing */
|
|
15
|
+
exports.nullLogger = {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
17
|
+
error: function (message, ...optionalParams) { },
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
19
|
+
warn: function (message, ...optionalParams) { },
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
21
|
+
info: function (message, ...optionalParams) { },
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
23
|
+
verbose: function (message, ...optionalParams) { },
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
25
|
+
debug: function (message, ...optionalParams) { },
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=logging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/types/logging.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,+BAA+B;;;AAW/B,qDAAqD;AACxC,QAAA,aAAa,GAAW;IACnC,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB,OAAO,EAAE,OAAO,CAAC,KAAK;IACtB,KAAK,EAAE,OAAO,CAAC,KAAK;CACrB,CAAA;AAED,gDAAgD;AACnC,QAAA,UAAU,GAAW;IAChC,gEAAgE;IAChE,KAAK,EAAE,UAAU,OAAe,EAAE,GAAG,cAAyB,IAAS,CAAC;IACxE,gEAAgE;IAChE,IAAI,EAAE,UAAU,OAAe,EAAE,GAAG,cAAyB,IAAS,CAAC;IACvE,gEAAgE;IAChE,IAAI,EAAE,UAAU,OAAe,EAAE,GAAG,cAAyB,IAAS,CAAC;IACvE,gEAAgE;IAChE,OAAO,EAAE,UAAU,OAAe,EAAE,GAAG,cAAyB,IAAS,CAAC;IAC1E,gEAAgE;IAChE,KAAK,EAAE,UAAU,OAAe,EAAE,GAAG,cAAyB,IAAS,CAAC;CACzE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type algosdk from 'algosdk';
|
|
2
|
+
export interface LogicErrorDetails {
|
|
3
|
+
txId: string;
|
|
4
|
+
pc: number;
|
|
5
|
+
msg: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class LogicError extends Error {
|
|
8
|
+
static parseLogicError(errMsg: string): LogicErrorDetails;
|
|
9
|
+
led: LogicErrorDetails;
|
|
10
|
+
program: string[];
|
|
11
|
+
lines: number;
|
|
12
|
+
teal_line: number;
|
|
13
|
+
stack?: string;
|
|
14
|
+
constructor(led: LogicErrorDetails, program: string[], map: algosdk.SourceMap);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=logic-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logic-error.d.ts","sourceRoot":"","sources":["../../src/types/logic-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAMlC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,qBAAa,UAAW,SAAQ,KAAK;IACnC,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB;IAWzD,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,SAAI;IACT,SAAS,SAAI;IACJ,KAAK,CAAC,EAAE,MAAM,CAAA;gBAEX,GAAG,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,SAAS;CAqB9E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogicError = void 0;
|
|
4
|
+
const LOGIC_ERROR = /TransactionPool.Remember: transaction ([A-Z0-9]+): logic eval error: (.*). Details: pc=([0-9]+), opcodes=.*/;
|
|
5
|
+
class LogicError extends Error {
|
|
6
|
+
static parseLogicError(errMsg) {
|
|
7
|
+
const res = LOGIC_ERROR.exec(errMsg);
|
|
8
|
+
if (res === null || res.length <= 3)
|
|
9
|
+
return {};
|
|
10
|
+
return {
|
|
11
|
+
txId: res[1],
|
|
12
|
+
msg: res[2],
|
|
13
|
+
pc: parseInt(res[3] ? res[3] : '0'),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(led, program, map) {
|
|
17
|
+
super();
|
|
18
|
+
this.lines = 5;
|
|
19
|
+
this.teal_line = 0;
|
|
20
|
+
this.led = led;
|
|
21
|
+
this.program = program;
|
|
22
|
+
const line = map.getLineForPc(led.pc);
|
|
23
|
+
this.teal_line = line === undefined ? 0 : line;
|
|
24
|
+
this.message = `${this.led.msg.slice(0, 20)}... at:${line}`;
|
|
25
|
+
if (this.teal_line > 0) {
|
|
26
|
+
const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0;
|
|
27
|
+
const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length;
|
|
28
|
+
const stack_lines = program.slice(start, stop);
|
|
29
|
+
stack_lines[stack_lines.length / 2] += ' <--- Error';
|
|
30
|
+
this.stack = stack_lines.join('\n');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.LogicError = LogicError;
|
|
35
|
+
//# sourceMappingURL=logic-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1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C,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;YAC3E,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAA;YAExG,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;YAE9C,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,aAAa,CAAA;YAEpD,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;SACpC;IACH,CAAC;CACF;AAvCD,gCAuCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TokenHeader } from 'algosdk/dist/types/client/urlTokenBaseHTTPClient';
|
|
2
|
+
/** Config for an Algorand SDK client */
|
|
3
|
+
export interface AlgoClientConfig {
|
|
4
|
+
/** Base URL of the server e.g. http://localhost, https://testnet-api.algonode.cloud/, etc. */
|
|
5
|
+
server: string;
|
|
6
|
+
/** The port to use e.g. 4001, 443, etc. */
|
|
7
|
+
port?: string | number;
|
|
8
|
+
/** The token to use for API authentication (or undefined if none needed) - can be a string, or an object with the header key => value */
|
|
9
|
+
token?: string | TokenHeader;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=network-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-client.d.ts","sourceRoot":"","sources":["../../src/types/network-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAA;AAE9E,wCAAwC;AACxC,MAAM,WAAW,gBAAgB;IAC/B,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAA;IACd,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-client.js","sourceRoot":"","sources":["../../src/types/network-client.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Account, Algodv2, Indexer, Kmd, Transaction } from 'algosdk';
|
|
2
|
+
import { TransactionLogger } from '../testing';
|
|
3
|
+
import { TestLogger } from '../testing/test-logger';
|
|
4
|
+
import { AlgoAmount } from '../types/amount';
|
|
5
|
+
import { SendTransactionFrom } from '../types/transaction';
|
|
6
|
+
import { TransactionLookupResult } from './indexer';
|
|
7
|
+
/**
|
|
8
|
+
* Test automation context.
|
|
9
|
+
*/
|
|
10
|
+
export interface AlgorandTestAutomationContext {
|
|
11
|
+
/** Algod client instance that will log transactions in @see transactionLogger */
|
|
12
|
+
algod: Algodv2;
|
|
13
|
+
/** Indexer client instance */
|
|
14
|
+
indexer: Indexer;
|
|
15
|
+
/** KMD client instance */
|
|
16
|
+
kmd: Kmd;
|
|
17
|
+
/** Transaction logger that will log transaction IDs for all transactions issued by @see algod */
|
|
18
|
+
transactionLogger: TransactionLogger;
|
|
19
|
+
/** Default, funded test account that is ephemerally created */
|
|
20
|
+
testAccount: Account;
|
|
21
|
+
/** Generate and fund an additional ephemerally created account */
|
|
22
|
+
generateAccount: (params: GetTestAccountParams) => Promise<Account>;
|
|
23
|
+
/** Wait for the indexer to catch up with all transactions logged by @see transactionLogger */
|
|
24
|
+
waitForIndexer: () => Promise<void>;
|
|
25
|
+
/** Wait for the indexer to catch up with the given transaction ID */
|
|
26
|
+
waitForIndexerTransaction: (transactionId: string) => Promise<TransactionLookupResult>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Parameters for the @see getTestAccount function.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetTestAccountParams {
|
|
32
|
+
/** Initial funds to ensure the account has */
|
|
33
|
+
initialFunds: AlgoAmount;
|
|
34
|
+
/** Whether to suppress the log (which includes a mnemonic) or not (default: do not suppress the log) */
|
|
35
|
+
suppressLog?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/** Configuration for creating an Algorand testing fixture. */
|
|
38
|
+
export interface AlgorandFixtureConfig {
|
|
39
|
+
/** An optional algod client, if not specified then it will create one against default LocalNet. */
|
|
40
|
+
algod?: Algodv2;
|
|
41
|
+
/** An optional indexer client, if not specified then it will create one against default LocalNet. */
|
|
42
|
+
indexer?: Indexer;
|
|
43
|
+
/** An optional kmd client, if not specified then it will create one against default LocalNet. */
|
|
44
|
+
kmd?: Kmd;
|
|
45
|
+
/** The amount of funds to allocate to the default testing account, if not specified then it will get 10 ALGOs. */
|
|
46
|
+
testAccountFunding?: AlgoAmount;
|
|
47
|
+
}
|
|
48
|
+
/** An Algorand automated testing fixture */
|
|
49
|
+
export interface AlgorandFixture {
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve the current context.
|
|
52
|
+
* Useful with destructuring.
|
|
53
|
+
* @example ```typescript
|
|
54
|
+
* test('My test', () => {
|
|
55
|
+
* const {algod, indexer, testAccount, ...} = algorand.context
|
|
56
|
+
* })
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
get context(): AlgorandTestAutomationContext;
|
|
60
|
+
/**
|
|
61
|
+
* Testing framework agnostic handler method to run before each test to prepare the @see context for that test.
|
|
62
|
+
*/
|
|
63
|
+
beforeEach: () => Promise<void>;
|
|
64
|
+
}
|
|
65
|
+
/** Configuration for preparing a captured log snapshot.
|
|
66
|
+
* This helps ensure that the provided configuration items won't appear
|
|
67
|
+
* with random values in the log snapshot, but rather will get substituted with predictable ids.
|
|
68
|
+
*/
|
|
69
|
+
export interface LogSnapshotConfig {
|
|
70
|
+
/** Any transaction IDs or transactions to replace the ID for predictably */
|
|
71
|
+
transactions?: (string | Transaction)[];
|
|
72
|
+
/** Any accounts/addresses to replace the address for predictably */
|
|
73
|
+
accounts?: (string | SendTransactionFrom)[];
|
|
74
|
+
/** Any app IDs to replace predictably */
|
|
75
|
+
apps?: (string | number)[];
|
|
76
|
+
}
|
|
77
|
+
export interface AlgoKitLogCaptureFixture {
|
|
78
|
+
/** The test logger instance for the current test */
|
|
79
|
+
get testLogger(): TestLogger;
|
|
80
|
+
/**
|
|
81
|
+
* Testing framework agnostic handler method to run before each test to prepare the @see testLogger for that test.
|
|
82
|
+
*/
|
|
83
|
+
beforeEach: () => void;
|
|
84
|
+
/**
|
|
85
|
+
* Testing framework agnostic handler method to run after each test to reset the logger.
|
|
86
|
+
*/
|
|
87
|
+
afterEach: () => void;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/types/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,iFAAiF;IACjF,KAAK,EAAE,OAAO,CAAA;IACd,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB,0BAA0B;IAC1B,GAAG,EAAE,GAAG,CAAA;IACR,iGAAiG;IACjG,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,+DAA+D;IAC/D,WAAW,EAAE,OAAO,CAAA;IACpB,kEAAkE;I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ACtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB"}
|
package/types/testing.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../src/types/testing.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Account, LogicSigAccount, Transaction } from 'algosdk';
|
|
2
|
+
import { MultisigAccount, SigningAccount, TransactionSignerAccount } from './account';
|
|
3
|
+
import { PendingTransactionResponse } from './algod';
|
|
4
|
+
import { AlgoAmount } from './amount';
|
|
5
|
+
export type TransactionNote = Uint8Array | TransactionNoteData | Arc2TransactionNote;
|
|
6
|
+
export type TransactionNoteData = string | null | undefined | number | any[] | Record<string, any>;
|
|
7
|
+
/** ARC-0002 compatible transaction note components, @see https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md */
|
|
8
|
+
export type Arc2TransactionNote = {
|
|
9
|
+
dAppName: string;
|
|
10
|
+
format: 'm' | 'b' | 'u';
|
|
11
|
+
data: string;
|
|
12
|
+
} | {
|
|
13
|
+
dAppName: string;
|
|
14
|
+
format: 'j';
|
|
15
|
+
data: TransactionNoteData;
|
|
16
|
+
};
|
|
17
|
+
/** The sending configuration for a transaction */
|
|
18
|
+
export interface SendTransactionParams {
|
|
19
|
+
/** Whether to skip signing and sending the transaction to the chain (default: transaction signed and sent to chain)
|
|
20
|
+
* (and instead just return the raw transaction, e.g. so you can add it to a group of transactions) */
|
|
21
|
+
skipSending?: boolean;
|
|
22
|
+
/** Whether to skip waiting for the submitted transaction (only relevant if `skipSending` is `false` or unset) */
|
|
23
|
+
skipWaiting?: boolean;
|
|
24
|
+
/** Whether to suppress log messages from transaction send, default: do not suppress */
|
|
25
|
+
suppressLog?: boolean;
|
|
26
|
+
/** The flat fee you want to pay, useful for covering extra fees in a transaction group or app call */
|
|
27
|
+
fee?: AlgoAmount;
|
|
28
|
+
/** The maximum fee that you are happy to pay (default: unbounded) - if this is set it's possible the transaction could get rejected during network congestion */
|
|
29
|
+
maxFee?: AlgoAmount;
|
|
30
|
+
/** The maximum number of rounds to wait for confirmation, only applies if `skipWaiting` is `undefined` or `false`, default: wait up to 5 rounds */
|
|
31
|
+
maxRoundsToWaitForConfirmation?: number;
|
|
32
|
+
}
|
|
33
|
+
/** The result of sending a transaction */
|
|
34
|
+
export interface SendTransactionResult {
|
|
35
|
+
/** The transaction */
|
|
36
|
+
transaction: Transaction;
|
|
37
|
+
/** The response if the transaction was sent and waited for */
|
|
38
|
+
confirmation?: PendingTransactionResponse;
|
|
39
|
+
}
|
|
40
|
+
/** The result of sending and confirming a transaction */
|
|
41
|
+
export interface ConfirmedTransactionResult extends SendTransactionResult {
|
|
42
|
+
/** The response if the transaction was sent and waited for */
|
|
43
|
+
confirmation: PendingTransactionResponse;
|
|
44
|
+
}
|
|
45
|
+
export type SendTransactionFrom = Account | SigningAccount | LogicSigAccount | MultisigAccount | TransactionSignerAccount;
|
|
46
|
+
/** Defines an unsigned transaction that will appear in a group of transactions along with its signing information */
|
|
47
|
+
export interface TransactionToSign {
|
|
48
|
+
/** The unsigned transaction to sign and send */
|
|
49
|
+
transaction: Transaction;
|
|
50
|
+
/** The account to use to sign the transaction, either an account (with private key loaded) or a logic signature account */
|
|
51
|
+
signer: SendTransactionFrom;
|
|
52
|
+
}
|
|
53
|
+
/** A group of transactions to send together as an atomic group
|
|
54
|
+
* @see https://developer.algorand.org/docs/get-details/atomic_transfers/
|
|
55
|
+
*/
|
|
56
|
+
export interface TransactionGroupToSend {
|
|
57
|
+
/** Any parameters to control the semantics of the send to the network */
|
|
58
|
+
sendParams?: Omit<Omit<SendTransactionParams, 'maxFee'>, 'skipSending'>;
|
|
59
|
+
/** The list of transactions to send, which can either be a raw transaction (in which case `signer` is required),
|
|
60
|
+
* the async result of an AlgoKit utils method that returns a @see SendTransactionResult (saves unwrapping the promise, be sure to pass `skipSending: true`, `signer` is required)
|
|
61
|
+
* or the transaction with its signer
|
|
62
|
+
**/
|
|
63
|
+
transactions: (TransactionToSign | Transaction | Promise<SendTransactionResult>)[];
|
|
64
|
+
/** Optional signer to pass in, required if at least one transaction provided is just the transaction, ignored otherwise */
|
|
65
|
+
signer?: SendTransactionFrom;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,mBAAmB,GAAG,mBAAmB,CAAA;AAEpF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAClG,kIAAkI;AAClI,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,mBAAmB,CAAA;CAC1B,CAAA;AAEL,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC;4GACwG;IACxG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iHAAiH;IACjH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uFAAuF;IACvF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sGAAsG;IACtG,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB,iKAAiK;IACjK,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,mJAAmJ;IACnJ,8BAA8B,CAAC,EAAE,MAAM,CAAA;CACxC;AAED,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,sBAAsB;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,0BAA0B,CAAA;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE,8DAA8D;IAC9D,YAAY,EAAE,0BAA0B,CAAA;CACzC;AAED,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,wBAAwB,CAAA;AAEzH,qHAAqH;AACrH,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,WAAW,EAAE,WAAW,CAAA;IACxB,2HAA2H;IAC3H,MAAM,EAAE,mBAAmB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAA;IACvE;;;QAGI;IACJ,YAAY,EAAE,CAAC,iBAAiB,GAAG,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAA;IAClF,2HAA2H;IAC3H,MAAM,CAAC,EAAE,mBAAmB,CAAA;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/types/transaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SuggestedParams } from 'algosdk';
|
|
2
|
+
import { AlgoAmount } from './amount';
|
|
3
|
+
import { SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
|
|
4
|
+
/** Parameters for @see transferAlgos call. */
|
|
5
|
+
export interface AlgoTransferParams extends SendTransactionParams {
|
|
6
|
+
/** The account (with private key loaded) that will send the µALGOs */
|
|
7
|
+
from: SendTransactionFrom;
|
|
8
|
+
/** The account address that will receive the ALGOs */
|
|
9
|
+
to: string;
|
|
10
|
+
/** The amount to send */
|
|
11
|
+
amount: AlgoAmount;
|
|
12
|
+
/** Optional transaction parameters */
|
|
13
|
+
transactionParams?: SuggestedParams;
|
|
14
|
+
/** The (optional) transaction note */
|
|
15
|
+
note?: TransactionNote;
|
|
16
|
+
}
|
|
17
|
+
/** Parameters for @see ensureFunded call. */
|
|
18
|
+
export interface EnsureFundedParams extends SendTransactionParams {
|
|
19
|
+
/** The account to fund */
|
|
20
|
+
accountToFund: SendTransactionFrom | string;
|
|
21
|
+
/** The account to use as a funding source */
|
|
22
|
+
fundingSource: SendTransactionFrom;
|
|
23
|
+
/** The minimum balance of ALGOs that the account should have available to spend (i.e. on top of minimum balance requirement) */
|
|
24
|
+
minSpendingBalance: AlgoAmount;
|
|
25
|
+
/** When issuing a funding amount, the minimum amount to transfer (avoids many small transfers if this gets called often on an active account) */
|
|
26
|
+
minFundingIncrement?: AlgoAmount;
|
|
27
|
+
/** Optional transaction parameters */
|
|
28
|
+
transactionParams?: SuggestedParams;
|
|
29
|
+
/** The (optional) transaction note, default: "Funding account to meet minimum requirement" */
|
|
30
|
+
note?: TransactionNote;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=transfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../src/types/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3F,8CAA8C;AAC9C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,sEAAsE;IACtE,IAAI,EAAE,mBAAmB,CAAA;IACzB,sDAAsD;IACtD,EAAE,EAAE,MAAM,CAAA;IACV,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAA;IAClB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,sCAAsC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,6CAA6C;AAC7C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,0BAA0B;IAC1B,aAAa,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAC3C,6CAA6C;IAC7C,aAAa,EAAE,mBAAmB,CAAA;IAClC,gIAAgI;IAChI,kBAAkB,EAAE,UAAU,CAAA;IAC9B,iJAAiJ;IACjJ,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,8FAA8F;IAC9F,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer.js","sourceRoot":"","sources":["../../src/types/transfer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlTokenBaseHTTPClient.d.ts","sourceRoot":"","sources":["../../src/types/urlTokenBaseHTTPClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAuB,sBAAsB,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAI7H,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,UA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AAoB,EACpB,IAAgB,EAChB,KAAqB,EACrB,iBAAyC,EAAE;QAE3C,kCAAkC;QAClC,MAAM,OAAO,GAAG;YACd,GAAG,IAAI,CAAC,WAAW;YACnB,GAAG,IAAI,CAAC,cAAc;YACtB,GAAG,cAAc;SAClB,CAAA;QAED,MAAM,GAAG,GAAG,MAAM,IAAA,mBAAK,EAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,OAAO;SACR,CAAC,CAAA;QAEF,OAAO,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACxD,CAAC;IAED,KAAK,CAAC,MAAM,CACV,YAAoB,EACpB,IAAgB,EAChB,KAAqB,EACrB,iBAAyC,EAAE;QAE3C,kCAAkC;QAClC,MAAM,OAAO,GAAG;YACd,GAAG,IAAI,CAAC,WAAW;YACnB,GAAG,IAAI,CAAC,cAAc;YACtB,GAAG,cAAc;SAClB,CAAA;QAED,MAAM,GAAG,GAAG,MAAM,IAAA,mBAAK,EAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE;YACxD,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,OAAO;SACR,CAAC,CAAA;QAEF,OAAO,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACxD,CAAC;CACF;AA9JD,wDA8JC"}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Algorand Foundation
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# AlgoKit TypeScript Utilities
|
|
2
|
-
|
|
3
|
-
A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand. This project is part of [AlgoKit](https://github.com/algorandfoundation/algokit-cli).
|
|
4
|
-
|
|
5
|
-
The goal of this library is to provide intuitive, productive utility functions that make it easier, quicker and safer to build applications on Algorand. Largely these functions wrap the underlying Algorand SDK, but provide a higher level interface with sensible defaults and capabilities for common tasks.
|
|
6
|
-
|
|
7
|
-
Note: If you prefer Python there's an equivalent [Python utility library](https://github.com/algorandfoundation/algokit-utils-py).
|
|
8
|
-
|
|
9
|
-
[Install](#install) | [Documentation](docs/README.md)
|
|
10
|
-
|
|
11
|
-
## Install
|
|
12
|
-
|
|
13
|
-
This library can be installed from NPM using your favourite npm client, e.g.:
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
npm install @algorandfoundation/algokit-utils
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Guiding principles
|
|
20
|
-
|
|
21
|
-
This library follows the [Guiding Principles of AlgoKit](https://github.com/algorandfoundation/algokit-cli#guiding-principles).
|
|
22
|
-
|
|
23
|
-
## Contributing
|
|
24
|
-
|
|
25
|
-
This is an open source project managed by the Algorand Foundation. See the [AlgoKit contributing page](https://github.com/algorandfoundation/algokit-cli/blob/main/CONTRIBUTING.MD) to learn about making improvements.
|
|
26
|
-
|
|
27
|
-
To successfully run the tests in this repository you need to be running LocalNet via [AlgoKit](https://github.com/algorandfoundation/algokit-cli):
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
algokit localnet start
|
|
31
|
-
```
|
package/dist/account.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,iBAAiB,cAAc,CAAA;AAE5C;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAGtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,UAAU,CAAA;CAAE,GAAG,MAAM,EACzD,KAAK,EAAE,OAAO,EACd,SAAS,CAAC,EAAE,GAAG,GACd,OAAO,CAAC,OAAO,GAAG,cAAc,CAAC,CAmCnC;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B,8CAA8C;IAC9C,YAAY,EAAE,UAAU,CAAA;IACxB,uG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AAC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,8DAEC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB,CAAC,KAAc;IACtD,6LAA6L;IAC7L,MAAM,yBAAyB,GAAG,MAAM,IAAA,2BAAU,EAAC,KAAK,CAAC,CAAA;IACzD,OAAO,yBAAyB,CAAC,CAAC,CAAC,MAAM,IAAA,sCAA2B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,yBAAiB,EAAE,KAAK,CAAC,CAAA;AAC1H,CAAC;AAJD,kDAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algo-amount.d.ts","sourceRoot":"","sources":["../src/algo-amount.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,qBAAa,UAAU;IACrB,OAAO,CAAC,kBAAkB,CAAA;IAE1B,8CAA8C;IAC9C,IAAI,UAAU,WAEb;IAED,6CAA6C;IAC7C,IAAI,KAAK,WAER;gBAEW,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE;IAI9D,+EAA+E;IAC/E,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM;IAI3B,gFAAgF;IAChF,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM;CAGjC"}
|
package/dist/algo-amount.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algo-amount.js","sourceRoot":"","sources":["../src/algo-amount.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA6B;AAE7B,0FAA0F;AAC1F,MAAa,UAAU;IAGrB,8CAA8C;IAC9C,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,kBAAkB,CAAA;IAChC,CAAC;IAED,6CAA6C;IAC7C,IAAI,KAAK;QACP,OAAO,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAA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yB,iCAAS,GAAG,CAAC,CAAA;AACb,sCAAc,GAAG,KAAK,CAAA;AAE9C,oFAAoF;AACpF,mHAAmH;AAC3F,0CAAkB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AACxD,yCAAiB,GAAG;IAC1C,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,OAAO;IACP,WAAW;IACX,aAAa;IACb,WAAW;IACX,QAAQ,EAAE,+CAA+C;CAC1D,CAAA"}
|
package/dist/algod-type.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algod-type.d.ts","sourceRoot":"","sources":["../src/algod-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD,+IAA+I;AAC/I,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAA;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,0BAA0B,EAAE,CAAA;IAC3C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAA;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,EAAE,CAAA;IACnB;4GACwG;IACxG,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;I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type.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algod-type.js","sourceRoot":"","sources":["../src/algod-type.ts"],"names":[],"mappings":""}
|
package/dist/app.d.ts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import algosdk, { Algodv2, SuggestedParams } from 'algosdk';
|
|
2
|
-
import { ApplicationResponse } from './algod-type';
|
|
3
|
-
import { SendTransactionFrom, SendTransactionParams, SendTransactionResult, TransactionNote } from './transaction';
|
|
4
|
-
export declare const APP_PAGE_MAX_SIZE = 2048;
|
|
5
|
-
/** Information about an Algorand app */
|
|
6
|
-
export interface AppReference {
|
|
7
|
-
/** The index of the app */
|
|
8
|
-
appIndex: number;
|
|
9
|
-
/** The Algorand address of the account associated with the app */
|
|
10
|
-
appAddress: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A grouping of the app ID and name of the box in an Uint8Array
|
|
14
|
-
*/
|
|
15
|
-
export interface BoxReference {
|
|
16
|
-
/**
|
|
17
|
-
* A unique application index
|
|
18
|
-
*/
|
|
19
|
-
appIndex: number;
|
|
20
|
-
/**
|
|
21
|
-
* Name of box to reference
|
|
22
|
-
*/
|
|
23
|
-
name: Uint8Array | string;
|
|
24
|
-
}
|
|
25
|
-
/** Arguments to pass to an app call */
|
|
26
|
-
export interface AppCallArgs {
|
|
27
|
-
/** The address of any accounts to load in */
|
|
28
|
-
accounts?: string[];
|
|
29
|
-
/** Any application arguments to pass through */
|
|
30
|
-
appArgs?: (Uint8Array | string)[];
|
|
31
|
-
/** Any box references to load */
|
|
32
|
-
boxes?: BoxReference[];
|
|
33
|
-
/** IDs of any apps to load into the foreignApps array */
|
|
34
|
-
apps?: number[];
|
|
35
|
-
/** IDs of any assets to load into the foreignAssets array */
|
|
36
|
-
assets?: number[];
|
|
37
|
-
/** The optional lease for the transaction */
|
|
38
|
-
lease?: string | Uint8Array;
|
|
39
|
-
}
|
|
40
|
-
/** Base interface for common data passed to an app create or update. */
|
|
41
|
-
interface CreateOrUpdateAppParams extends SendTransactionParams {
|
|
42
|
-
/** The account (with private key loaded) that will send the µALGOs */
|
|
43
|
-
from: SendTransactionFrom;
|
|
44
|
-
/** The approval program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array) */
|
|
45
|
-
approvalProgram: Uint8Array | string;
|
|
46
|
-
/** The clear state program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array) */
|
|
47
|
-
clearStateProgram: Uint8Array | string;
|
|
48
|
-
/** Optional transaction parameters */
|
|
49
|
-
transactionParams?: SuggestedParams;
|
|
50
|
-
/** The (optional) transaction note */
|
|
51
|
-
note?: TransactionNote;
|
|
52
|
-
/** The arguments passed in to the app call */
|
|
53
|
-
args?: AppCallArgs;
|
|
54
|
-
}
|
|
55
|
-
/** Parameters that are passed in when creating an app. */
|
|
56
|
-
export interface CreateAppParams extends CreateOrUpdateAppParams {
|
|
57
|
-
/** The storage schema to request for the created app */
|
|
58
|
-
schema: AppStorageSchema;
|
|
59
|
-
}
|
|
60
|
-
/** Parameters that are passed in when updating an app. */
|
|
61
|
-
export interface UpdateAppParams extends CreateOrUpdateAppParams {
|
|
62
|
-
/** The index of the app to update */
|
|
63
|
-
appIndex: number;
|
|
64
|
-
}
|
|
65
|
-
export interface AppCallParams extends SendTransactionParams {
|
|
66
|
-
/** The index of the app to call */
|
|
67
|
-
appIndex: number;
|
|
68
|
-
/** The type of call, everything except create (@see {createApp} ) and update (@see {updateApp} ) */
|
|
69
|
-
callType: 'optin' | 'closeout' | 'clearstate' | 'delete' | 'normal';
|
|
70
|
-
/** The account to make the call from */
|
|
71
|
-
from: SendTransactionFrom;
|
|
72
|
-
/** Optional transaction parameters */
|
|
73
|
-
transactionParams?: SuggestedParams;
|
|
74
|
-
/** The (optional) transaction note */
|
|
75
|
-
note?: TransactionNote;
|
|
76
|
-
/** The arguments passed in to the app call */
|
|
77
|
-
args?: AppCallArgs;
|
|
78
|
-
}
|
|
79
|
-
/** Parameters representing the storage schema of an app. */
|
|
80
|
-
export interface AppStorageSchema {
|
|
81
|
-
/** Restricts number of ints in per-user local state */
|
|
82
|
-
localInts: number;
|
|
83
|
-
/** Restricts number of byte slices in per-user local state */
|
|
84
|
-
localByteSlices: number;
|
|
85
|
-
/** Restricts number of ints in global state */
|
|
86
|
-
globalInts: number;
|
|
87
|
-
/** Restricts number of byte slices in global state */
|
|
88
|
-
globalByteSlices: number;
|
|
89
|
-
/** Any extra pages that are needed for the smart contract; if left blank then the right number of pages will be calculated based on the teal code size */
|
|
90
|
-
extraPages?: number;
|
|
91
|
-
}
|
|
92
|
-
/** Information about a compiled teal program */
|
|
93
|
-
export interface CompiledTeal {
|
|
94
|
-
/** Original TEAL code */
|
|
95
|
-
teal: string;
|
|
96
|
-
/** The compiled code */
|
|
97
|
-
compiled: string;
|
|
98
|
-
/** The has returned by the compiler */
|
|
99
|
-
compiledHash: string;
|
|
100
|
-
/** The base64 encoded code as a byte array */
|
|
101
|
-
compiledBase64ToBytes: Uint8Array;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Creates a smart contract app, returns the details of the created app.
|
|
105
|
-
* @param create The parameters to create the app with
|
|
106
|
-
* @param algod An algod client
|
|
107
|
-
* @returns The details of the created app, or the transaction to create it if `skipSending`
|
|
108
|
-
*/
|
|
109
|
-
export declare function createApp(create: CreateAppParams, algod: Algodv2): Promise<SendTransactionResult & AppReference>;
|
|
110
|
-
/**
|
|
111
|
-
* Updates a smart contract app.
|
|
112
|
-
* @param update The parameters to update the app with
|
|
113
|
-
* @param algod An algod client
|
|
114
|
-
* @returns The transaction
|
|
115
|
-
*/
|
|
116
|
-
export declare function updateApp(update: UpdateAppParams, algod: Algodv2): Promise<SendTransactionResult>;
|
|
117
|
-
/**
|
|
118
|
-
* Issues a call to a given app.
|
|
119
|
-
* @param call The call details.
|
|
120
|
-
* @param algod An algod client
|
|
121
|
-
* @returns The result of the call
|
|
122
|
-
*/
|
|
123
|
-
export declare function callApp(call: AppCallParams, algod: Algodv2): Promise<SendTransactionResult>;
|
|
124
|
-
/** Returns the app args ready to load onto an app @see {Transaction} object */
|
|
125
|
-
export declare function getAppArgsForTransaction(args?: AppCallArgs): {
|
|
126
|
-
accounts: string[] | undefined;
|
|
127
|
-
appArgs: Uint8Array[] | undefined;
|
|
128
|
-
boxes: algosdk.BoxReference[] | undefined;
|
|
129
|
-
foreignApps: number[] | undefined;
|
|
130
|
-
foreignAssets: number[] | undefined;
|
|
131
|
-
lease: Uint8Array | undefined;
|
|
132
|
-
} | undefined;
|
|
133
|
-
/**
|
|
134
|
-
* Gets the current data for the given app from algod.
|
|
135
|
-
*
|
|
136
|
-
* @param appIndex The index of the app
|
|
137
|
-
* @param algod An algod client
|
|
138
|
-
* @returns The data about the app
|
|
139
|
-
*/
|
|
140
|
-
export declare function getAppByIndex(appIndex: number, algod: Algodv2): Promise<ApplicationResponse>;
|
|
141
|
-
/**
|
|
142
|
-
* Compiles the given TEAL using algod and returns the result.
|
|
143
|
-
*
|
|
144
|
-
* @param algod An algod client
|
|
145
|
-
* @param tealCode The TEAL code
|
|
146
|
-
* @returns The information about the compiled file
|
|
147
|
-
*/
|
|
148
|
-
export declare function compileTeal(tealCode: string, algod: Algodv2): Promise<CompiledTeal>;
|
|
149
|
-
export {};
|
|
150
|
-
//# sourceMappingURL=app.d.ts.map
|
package/dist/app.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAe,MAAM,SAAS,CAAA;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAElD,OAAO,EAKL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,eAAe,CAAA;AAEtB,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAErC,wCAAwC;AACxC,MA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