@algorandfoundation/algokit-utils 1.0.0-beta.9 → 1.1.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 +38 -0
- package/account.d.ts +41 -36
- package/account.d.ts.map +1 -1
- package/account.js +59 -44
- package/account.js.map +1 -1
- package/amount.d.ts +20 -0
- package/amount.d.ts.map +1 -0
- package/amount.js +36 -0
- package/amount.js.map +1 -0
- package/app-client.d.ts +14 -0
- package/app-client.d.ts.map +1 -0
- package/app-client.js +19 -0
- package/app-client.js.map +1 -0
- package/app-deploy.d.ts +95 -0
- package/app-deploy.d.ts.map +1 -0
- package/{deploy-app.js → app-deploy.js} +129 -119
- package/app-deploy.js.map +1 -0
- package/app.d.ts +112 -148
- package/app.d.ts.map +1 -1
- package/app.js +460 -143
- package/app.js.map +1 -1
- package/index.d.ts +6 -4
- package/index.d.ts.map +1 -1
- package/index.js +7 -4
- package/index.js.map +1 -1
- package/indexer-lookup.d.ts +11 -4
- package/indexer-lookup.d.ts.map +1 -1
- package/indexer-lookup.js +19 -9
- package/indexer-lookup.js.map +1 -1
- package/localnet.d.ts +10 -10
- package/localnet.d.ts.map +1 -1
- package/localnet.js +16 -16
- package/localnet.js.map +1 -1
- package/network-client.d.ts +15 -24
- package/network-client.d.ts.map +1 -1
- package/network-client.js +16 -16
- package/network-client.js.map +1 -1
- package/package.json +2 -2
- 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 +24 -0
- package/testing/fixtures/algorand-fixture.d.ts.map +1 -0
- package/testing/fixtures/algorand-fixture.js +60 -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 +40 -0
- package/testing/indexer.js.map +1 -0
- package/testing/test-logger.d.ts +41 -0
- package/testing/test-logger.d.ts.map +1 -0
- package/testing/test-logger.js +71 -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 +55 -91
- package/transaction.d.ts.map +1 -1
- package/transaction.js +213 -155
- package/transaction.js.map +1 -1
- package/transfer.d.ts +14 -16
- package/transfer.d.ts.map +1 -1
- package/transfer.js +38 -4
- package/transfer.js.map +1 -1
- package/types/account.d.ts +55 -0
- package/types/account.d.ts.map +1 -0
- package/types/account.js +91 -0
- package/types/account.js.map +1 -0
- package/types/algo-http-client-with-retry.d.ts.map +1 -0
- package/{algo-http-client-with-retry.js → types/algo-http-client-with-retry.js} +3 -3
- package/types/algo-http-client-with-retry.js.map +1 -0
- package/types/algod.d.ts +28 -15
- package/types/algod.d.ts.map +1 -1
- package/{algo-amount.d.ts → types/amount.d.ts} +9 -3
- package/types/amount.d.ts.map +1 -0
- package/{algo-amount.js → types/amount.js} +13 -3
- package/types/amount.js.map +1 -0
- package/types/app-client.d.ts +282 -0
- package/types/app-client.d.ts.map +1 -0
- package/types/app-client.js +529 -0
- package/types/app-client.js.map +1 -0
- package/types/app-spec.d.ts +141 -0
- package/types/app-spec.d.ts.map +1 -0
- package/types/{appspec.js → app-spec.js} +5 -7
- package/types/app-spec.js.map +1 -0
- package/types/app.d.ts +285 -0
- package/types/app.d.ts.map +1 -0
- package/types/app.js +32 -0
- package/types/app.js.map +1 -0
- package/types/config.d.ts +32 -0
- package/types/config.d.ts.map +1 -0
- package/types/config.js +53 -0
- package/types/config.js.map +1 -0
- package/types/indexer.d.ts +368 -58
- package/types/indexer.d.ts.map +1 -1
- package/types/indexer.js +9 -0
- package/types/indexer.js.map +1 -1
- package/{config.d.ts → types/logging.d.ts} +2 -16
- package/types/logging.d.ts.map +1 -0
- package/{config.js → types/logging.js} +5 -24
- package/types/logging.js.map +1 -0
- package/types/logic-error.d.ts +37 -0
- package/types/logic-error.d.ts.map +1 -0
- package/types/logic-error.js +50 -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 +112 -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/algo-amount.d.ts.map +0 -1
- package/algo-amount.js.map +0 -1
- package/algo-http-client-with-retry.d.ts.map +0 -1
- package/algo-http-client-with-retry.js.map +0 -1
- package/application-client.d.ts +0 -113
- package/application-client.d.ts.map +0 -1
- package/application-client.js +0 -258
- package/application-client.js.map +0 -1
- package/config.d.ts.map +0 -1
- package/config.js.map +0 -1
- package/deploy-app.d.ts +0 -164
- package/deploy-app.d.ts.map +0 -1
- package/deploy-app.js.map +0 -1
- package/types/appspec.d.ts +0 -78
- package/types/appspec.d.ts.map +0 -1
- package/types/appspec.js.map +0 -1
- package/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/urlTokenBaseHTTPClient.js.map +0 -1
- /package/{algo-http-client-with-retry.d.ts → types/algo-http-client-with-retry.d.ts} +0 -0
- /package/{urlTokenBaseHTTPClient.d.ts → types/urlTokenBaseHTTPClient.d.ts} +0 -0
- /package/{urlTokenBaseHTTPClient.js → types/urlTokenBaseHTTPClient.js} +0 -0
package/types/indexer.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AccountStatus = exports.SignatureType = exports.ApplicationOnComplete = void 0;
|
|
4
|
+
/** Defines the what additional actions occur with the transaction https://developer.algorand.org/docs/rest-apis/indexer/#oncompletion */
|
|
4
5
|
var ApplicationOnComplete;
|
|
5
6
|
(function (ApplicationOnComplete) {
|
|
6
7
|
ApplicationOnComplete["noop"] = "noop";
|
|
@@ -10,16 +11,24 @@ var ApplicationOnComplete;
|
|
|
10
11
|
ApplicationOnComplete["update"] = "update";
|
|
11
12
|
ApplicationOnComplete["delete"] = "delete";
|
|
12
13
|
})(ApplicationOnComplete = exports.ApplicationOnComplete || (exports.ApplicationOnComplete = {}));
|
|
14
|
+
/** Type of signature used by an account */
|
|
13
15
|
var SignatureType;
|
|
14
16
|
(function (SignatureType) {
|
|
17
|
+
/** Normal signature */
|
|
15
18
|
SignatureType["sig"] = "sig";
|
|
19
|
+
/** Multisig */
|
|
16
20
|
SignatureType["msig"] = "msig";
|
|
21
|
+
/** Logic signature */
|
|
17
22
|
SignatureType["lsig"] = "lsig";
|
|
18
23
|
})(SignatureType = exports.SignatureType || (exports.SignatureType = {}));
|
|
24
|
+
/** Delegation status of the account */
|
|
19
25
|
var AccountStatus;
|
|
20
26
|
(function (AccountStatus) {
|
|
27
|
+
/** Indicates that the associated account is delegated */
|
|
21
28
|
AccountStatus["Offline"] = "Offline";
|
|
29
|
+
/** Indicates that the associated account used as part of the delegation pool */
|
|
22
30
|
AccountStatus["Online"] = "Online";
|
|
31
|
+
/** Indicates that the associated account is neither a delegator nor a delegate */
|
|
23
32
|
AccountStatus["NotParticipating"] = "NotParticipating";
|
|
24
33
|
})(AccountStatus = exports.AccountStatus || (exports.AccountStatus = {}));
|
|
25
34
|
//# sourceMappingURL=indexer.js.map
|
package/types/indexer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexer.js","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"indexer.js","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":";;;AA0eA,yIAAyI;AACzI,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;AACnB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AA6ED,2CAA2C;AAC3C,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,uBAAuB;IACvB,4BAAW,CAAA;IACX,eAAe;IACf,8BAAa,CAAA;IACb,sBAAsB;IACtB,8BAAa,CAAA;AACf,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED,uCAAuC;AACvC,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,yDAAyD;IACzD,oCAAmB,CAAA;IACnB,gFAAgF;IAChF,kCAAiB,CAAA;IACjB,kFAAkF;IAClF,sDAAqC,CAAA;AACvC,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
|
|
@@ -8,20 +8,6 @@ export type Logger = {
|
|
|
8
8
|
};
|
|
9
9
|
/** A logger implementation that writes to console */
|
|
10
10
|
export declare const consoleLogger: Logger;
|
|
11
|
+
/** A logger implementation that does nothing */
|
|
11
12
|
export declare const nullLogger: Logger;
|
|
12
|
-
|
|
13
|
-
export interface Config {
|
|
14
|
-
logger: Logger;
|
|
15
|
-
}
|
|
16
|
-
declare class UpdatableConfig implements Readonly<Config> {
|
|
17
|
-
private config;
|
|
18
|
-
get logger(): Logger;
|
|
19
|
-
getLogger(returnNullLogger?: boolean): Logger;
|
|
20
|
-
constructor();
|
|
21
|
-
/** Update the AlgoKit configuration with your own configuration settings */
|
|
22
|
-
configure(newConfig: Config): void;
|
|
23
|
-
}
|
|
24
|
-
/** The AlgoKit config. To update it use the configure method. */
|
|
25
|
-
export declare const AlgoKitConfig: UpdatableConfig;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=config.d.ts.map
|
|
13
|
+
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/types/logging.ts"],"names":[],"mappings":"AAGA,uEAAuE;AACvE,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC1D,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IACzD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IACzD,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC5D,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;CAC3D,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,aAAa,EAAE,MAM3B,CAAA;AAED,gDAAgD;AAChD,eAAO,MAAM,UAAU,EAAE,MAWxB,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
+
/* eslint-disable no-console */
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
5
|
+
exports.nullLogger = exports.consoleLogger = void 0;
|
|
4
6
|
/** A logger implementation that writes to console */
|
|
5
7
|
exports.consoleLogger = {
|
|
6
8
|
error: console.error,
|
|
@@ -9,6 +11,7 @@ exports.consoleLogger = {
|
|
|
9
11
|
verbose: console.trace,
|
|
10
12
|
debug: console.debug,
|
|
11
13
|
};
|
|
14
|
+
/** A logger implementation that does nothing */
|
|
12
15
|
exports.nullLogger = {
|
|
13
16
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
14
17
|
error: function (message, ...optionalParams) { },
|
|
@@ -21,26 +24,4 @@ exports.nullLogger = {
|
|
|
21
24
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
22
25
|
debug: function (message, ...optionalParams) { },
|
|
23
26
|
};
|
|
24
|
-
|
|
25
|
-
get logger() {
|
|
26
|
-
return this.config.logger;
|
|
27
|
-
}
|
|
28
|
-
getLogger(returnNullLogger) {
|
|
29
|
-
if (returnNullLogger) {
|
|
30
|
-
return exports.nullLogger;
|
|
31
|
-
}
|
|
32
|
-
return this.logger;
|
|
33
|
-
}
|
|
34
|
-
constructor() {
|
|
35
|
-
this.config = {
|
|
36
|
-
logger: exports.consoleLogger,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/** Update the AlgoKit configuration with your own configuration settings */
|
|
40
|
-
configure(newConfig) {
|
|
41
|
-
this.config = newConfig;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/** The AlgoKit config. To update it use the configure method. */
|
|
45
|
-
exports.AlgoKitConfig = new UpdatableConfig();
|
|
46
|
-
//# sourceMappingURL=config.js.map
|
|
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,37 @@
|
|
|
1
|
+
import type algosdk from 'algosdk';
|
|
2
|
+
/**
|
|
3
|
+
* Details about a smart contract logic error
|
|
4
|
+
*/
|
|
5
|
+
export interface LogicErrorDetails {
|
|
6
|
+
/** The ID of the transaction with the logic error */
|
|
7
|
+
txId: string;
|
|
8
|
+
/** The program counter where the error was */
|
|
9
|
+
pc: number;
|
|
10
|
+
/** The error message */
|
|
11
|
+
msg: string;
|
|
12
|
+
/** The full error description */
|
|
13
|
+
desc: string;
|
|
14
|
+
/** Any trace information included in the error */
|
|
15
|
+
traces: Record<string, unknown>[];
|
|
16
|
+
}
|
|
17
|
+
/** Wraps key functionality around processing logic errors */
|
|
18
|
+
export declare class LogicError extends Error {
|
|
19
|
+
/** Takes an error message and parses out the details of any logic errors in there.
|
|
20
|
+
* @param errorMessage The error message to parse
|
|
21
|
+
* @returns The logic error details if any, or undefined
|
|
22
|
+
*/
|
|
23
|
+
static parseLogicError(error: any): LogicErrorDetails | undefined;
|
|
24
|
+
led: LogicErrorDetails;
|
|
25
|
+
program: string[];
|
|
26
|
+
lines: number;
|
|
27
|
+
teal_line: number;
|
|
28
|
+
stack?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new logic error object.
|
|
31
|
+
* @param errorDetails The details of the logic error
|
|
32
|
+
* @param program The TEAL source code, split by line
|
|
33
|
+
* @param map The source map of the TEAL source code
|
|
34
|
+
*/
|
|
35
|
+
constructor(errorDetails: LogicErrorDetails, program: string[], map: algosdk.SourceMap);
|
|
36
|
+
}
|
|
37
|
+
//# 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;AAIlC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;CAClC;AAED,6DAA6D;AAC7D,qBAAa,UAAW,SAAQ,KAAK;IACnC;;;OAGG;IAEH,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,iBAAiB,GAAG,SAAS;IAc1D,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,SAAI;IACT,SAAS,SAAI;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;OAKG;gBACS,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,SAAS;CAqBvF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
/** Wraps key functionality around processing logic errors */
|
|
6
|
+
class LogicError extends Error {
|
|
7
|
+
/** Takes an error message and parses out the details of any logic errors in there.
|
|
8
|
+
* @param errorMessage The error message to parse
|
|
9
|
+
* @returns The logic error details if any, or undefined
|
|
10
|
+
*/
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
static parseLogicError(error) {
|
|
13
|
+
const errorMessage = error.message;
|
|
14
|
+
const res = LOGIC_ERROR.exec(errorMessage);
|
|
15
|
+
if (res === null || res.length <= 3)
|
|
16
|
+
return undefined;
|
|
17
|
+
return {
|
|
18
|
+
txId: res[1],
|
|
19
|
+
msg: res[2],
|
|
20
|
+
desc: errorMessage,
|
|
21
|
+
pc: parseInt(res[3] ? res[3] : '0'),
|
|
22
|
+
traces: error.traces,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a new logic error object.
|
|
27
|
+
* @param errorDetails The details of the logic error
|
|
28
|
+
* @param program The TEAL source code, split by line
|
|
29
|
+
* @param map The source map of the TEAL source code
|
|
30
|
+
*/
|
|
31
|
+
constructor(errorDetails, program, map) {
|
|
32
|
+
super();
|
|
33
|
+
this.lines = 5;
|
|
34
|
+
this.teal_line = 0;
|
|
35
|
+
this.led = errorDetails;
|
|
36
|
+
this.program = program;
|
|
37
|
+
const line = map.getLineForPc(errorDetails.pc);
|
|
38
|
+
this.teal_line = line === undefined ? 0 : line;
|
|
39
|
+
this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`;
|
|
40
|
+
if (this.teal_line > 0) {
|
|
41
|
+
const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0;
|
|
42
|
+
const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length;
|
|
43
|
+
const stack_lines = program.slice(start, stop);
|
|
44
|
+
stack_lines[stack_lines.length / 2] += ' <--- Error';
|
|
45
|
+
this.stack = stack_lines.join('\n');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.LogicError = LogicError;
|
|
50
|
+
//# sourceMappingURL=logic-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logic-error.js","sourceRoot":"","sources":["../../src/types/logic-error.ts"],"names":[],"mappings":";;;AAEA,MAAM,WAAW,GAAG,6GAA6G,CAAA;AAkBjI,6DAA6D;AAC7D,MAAa,UAAW,SAAQ,KAAK;IACnC;;;OAGG;IACH,8DAA8D;IAC9D,MAAM,CAAC,eAAe,CAAC,KAAU;QAC/B,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAA;QAClC,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QAC1C,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,SAAS,CAAA;QAErD,OAAO;YACL,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;YACZ,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACX,IAAI,EAAE,YAAY;YAClB,EAAE,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YACnC,MAAM,EAAE,KAAK,CAAC,MAAM;SACA,CAAA;IACxB,CAAC;IAQD;;;;;OAKG;IACH,YAAY,YAA+B,EAAE,OAAiB,EAAE,GA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';
|
|
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 `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 `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 `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 `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 environment variables defined network (if present) or default LocalNet. */
|
|
40
|
+
algod?: Algodv2;
|
|
41
|
+
/** An optional indexer client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
42
|
+
indexer?: Indexer;
|
|
43
|
+
/** An optional kmd client, if not specified then it will create one against environment variables defined network (if present) or 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 `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 `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":[],"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CAAA;IACT,kHAAkH;IAClH,kBAAkB,CAAC,EAAE,UAAU,CAAA;CAChC;AAED,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC9B;;;;;;;;OAQG;IACH,IAAI,OAAO,IAAI,6BAA6B,CAAA;IAE5C;;OAEG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;IACvC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,mBAAmB,CAAC,EAAE,CAAA;IAC3C,yCAAyC;IACzC,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,IAAI,UAAU,IAAI,UAAU,CAAA;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB;;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,112 @@
|
|
|
1
|
+
import { Account, AtomicTransactionComposer, LogicSigAccount, Transaction } from 'algosdk';
|
|
2
|
+
import { MultisigAccount, SigningAccount, TransactionSignerAccount } from './account';
|
|
3
|
+
import { PendingTransactionResponse } from './algod';
|
|
4
|
+
import { AlgoAmount } from './amount';
|
|
5
|
+
import { ABIReturn } from './app';
|
|
6
|
+
export type TransactionNote = Uint8Array | TransactionNoteData | Arc2TransactionNote;
|
|
7
|
+
export type TransactionNoteData = string | null | undefined | number | any[] | Record<string, any>;
|
|
8
|
+
/** ARC-0002 compatible transaction note components https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md */
|
|
9
|
+
export type Arc2TransactionNote = {
|
|
10
|
+
dAppName: string;
|
|
11
|
+
format: 'm' | 'b' | 'u';
|
|
12
|
+
data: string;
|
|
13
|
+
} | {
|
|
14
|
+
dAppName: string;
|
|
15
|
+
format: 'j';
|
|
16
|
+
data: TransactionNoteData;
|
|
17
|
+
};
|
|
18
|
+
/** The sending configuration for a transaction */
|
|
19
|
+
export interface SendTransactionParams {
|
|
20
|
+
/** Whether to skip signing and sending the transaction to the chain (default: transaction signed and sent to chain, unless `atc` specified)
|
|
21
|
+
* and instead just return the raw transaction, e.g. so you can add it to a group of transactions */
|
|
22
|
+
skipSending?: boolean;
|
|
23
|
+
/** Whether to skip waiting for the submitted transaction (only relevant if `skipSending` is `false` or unset) */
|
|
24
|
+
skipWaiting?: boolean;
|
|
25
|
+
/** An optional `AtomicTransactionComposer` to add the transaction to, if specified then `skipSending: undefined` has the same effect as `skipSending: true` */
|
|
26
|
+
atc?: AtomicTransactionComposer;
|
|
27
|
+
/** Whether to suppress log messages from transaction send, default: do not suppress */
|
|
28
|
+
suppressLog?: boolean;
|
|
29
|
+
/** The flat fee you want to pay, useful for covering extra fees in a transaction group or app call */
|
|
30
|
+
fee?: AlgoAmount;
|
|
31
|
+
/** 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 */
|
|
32
|
+
maxFee?: AlgoAmount;
|
|
33
|
+
/** The maximum number of rounds to wait for confirmation, only applies if `skipWaiting` is `undefined` or `false`, default: wait up to 5 rounds */
|
|
34
|
+
maxRoundsToWaitForConfirmation?: number;
|
|
35
|
+
}
|
|
36
|
+
/** The result of sending a transaction */
|
|
37
|
+
export interface SendTransactionResult {
|
|
38
|
+
/** The transaction */
|
|
39
|
+
transaction: Transaction;
|
|
40
|
+
/** The response if the transaction was sent and waited for */
|
|
41
|
+
confirmation?: PendingTransactionResponse;
|
|
42
|
+
}
|
|
43
|
+
/** The result of preparing and/or sending multiple transactions */
|
|
44
|
+
export interface SendTransactionResults {
|
|
45
|
+
/** The transactions that have been prepared and/or sent */
|
|
46
|
+
transactions: Transaction[];
|
|
47
|
+
/** The responses if the transactions were sent and waited for,
|
|
48
|
+
* the index of the confirmation will match the index of the underlying transaction
|
|
49
|
+
*/
|
|
50
|
+
confirmations?: PendingTransactionResponse[];
|
|
51
|
+
}
|
|
52
|
+
/** The result of preparing and/or sending multiple transactions using an `AtomicTransactionComposer` */
|
|
53
|
+
export interface SendAtomicTransactionComposerResults extends SendTransactionResults {
|
|
54
|
+
/** base64 encoded representation of the group ID of the atomic group */
|
|
55
|
+
groupId: string;
|
|
56
|
+
/** The transaction IDs that have been prepared and/or sent */
|
|
57
|
+
txIds: string[];
|
|
58
|
+
/** If ABI method(s) were called the processed return values */
|
|
59
|
+
returns?: ABIReturn[];
|
|
60
|
+
}
|
|
61
|
+
/** The result of sending and confirming a transaction */
|
|
62
|
+
export interface ConfirmedTransactionResult extends SendTransactionResult {
|
|
63
|
+
/** The response from sending and waiting for the transaction */
|
|
64
|
+
confirmation: PendingTransactionResponse;
|
|
65
|
+
}
|
|
66
|
+
/** The result of sending and confirming one or more transactions, but where there is a primary transaction of interest */
|
|
67
|
+
export interface ConfirmedTransactionResults extends SendTransactionResult, SendTransactionResults {
|
|
68
|
+
/** The response from sending and waiting for the primary transaction */
|
|
69
|
+
confirmation: PendingTransactionResponse;
|
|
70
|
+
/** The response from sending and waiting for the transactions */
|
|
71
|
+
confirmations: PendingTransactionResponse[];
|
|
72
|
+
}
|
|
73
|
+
/** Core account abstraction when signing/sending transactions
|
|
74
|
+
*
|
|
75
|
+
* This type is used across the entire AlgoKit Utils library and allows you to pass through
|
|
76
|
+
* many types of accounts, including:
|
|
77
|
+
* * `Account` - The in-built `algosdk.Account` type for mnemonic accounts
|
|
78
|
+
* * `SigningAccount` - An AlgoKit Utils class that wraps Account to provide support for rekeyed accounts
|
|
79
|
+
* * `LogicSigAccount` - The in-built `algosdk.LogicSigAccount` type for logic signatures
|
|
80
|
+
* * `MultisigAccount` - An AlgoKit Utils class that wraps a multisig account and provides mechanisms to get a multisig account
|
|
81
|
+
* * `TransactionSignerAccount` - An AlgoKitUtils class that wraps the in-built `algosdk.TransactionSigner` along with the sender address
|
|
82
|
+
*/
|
|
83
|
+
export type SendTransactionFrom = Account | SigningAccount | LogicSigAccount | MultisigAccount | TransactionSignerAccount;
|
|
84
|
+
/** Defines an unsigned transaction that will appear in a group of transactions along with its signing information */
|
|
85
|
+
export interface TransactionToSign {
|
|
86
|
+
/** The unsigned transaction to sign and send */
|
|
87
|
+
transaction: Transaction;
|
|
88
|
+
/** The account to use to sign the transaction, either an account (with private key loaded) or a logic signature account */
|
|
89
|
+
signer: SendTransactionFrom;
|
|
90
|
+
}
|
|
91
|
+
/** A group of transactions to send together as an atomic group
|
|
92
|
+
* https://developer.algorand.org/docs/get-details/atomic_transfers/
|
|
93
|
+
*/
|
|
94
|
+
export interface TransactionGroupToSend {
|
|
95
|
+
/** Any parameters to control the semantics of the send to the network */
|
|
96
|
+
sendParams?: Omit<SendTransactionParams, 'fee' | 'maxFee' | 'skipSending' | 'atc'>;
|
|
97
|
+
/** The list of transactions to send, which can either be a raw transaction (in which case `signer` is required),
|
|
98
|
+
* the async result of an AlgoKit utils method that returns a `SendTransactionResult` (saves unwrapping the promise, be sure to pass `skipSending: true`, `signer` is also required)
|
|
99
|
+
* or the transaction with its signer (`signer` is ignored)
|
|
100
|
+
**/
|
|
101
|
+
transactions: (TransactionToSign | Transaction | Promise<SendTransactionResult>)[];
|
|
102
|
+
/** Optional signer to pass in, required if at least one transaction provided is just the transaction, ignored otherwise */
|
|
103
|
+
signer?: SendTransactionFrom;
|
|
104
|
+
}
|
|
105
|
+
/** An `AtomicTransactionComposer` with transactions to send. */
|
|
106
|
+
export interface AtomicTransactionComposerToSend {
|
|
107
|
+
/** The `AtomicTransactionComposer` with transactions loaded to send */
|
|
108
|
+
atc: AtomicTransactionComposer;
|
|
109
|
+
/** Any parameters to control the semantics of the send to the network */
|
|
110
|
+
sendParams?: Omit<SendTransactionParams, 'fee' | 'maxFee' | 'skipSending' | 'atc'>;
|
|
111
|
+
}
|
|
112
|
+
//# 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,yBAAyB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1F,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;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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,4HAA4H;AAC5H,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;wGACoG;IACpG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iHAAiH;IACjH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+JAA+J;IAC/J,GAAG,CAAC,EAAE,yBAAyB,CAAA;IAC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H,MAAM,EAAE,mBAAmB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,UAAU,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,KAAK,CAAC,CAAA;IAClF;;;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;AAED,gEAAgE;AAChE,MAAM,WAAW,+BAA+B;IAC9C,uEAAuE;IACvE,GAAG,EAAE,yBAAyB,CAAA;IAC9B,yEAAyE;IACzE,UAAU,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,KAAK,CAAC,CAAA;CACnF"}
|
|
@@ -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 `transferAlgos` call. */
|
|
5
|
+
export interface AlgoTransferParams extends SendTransactionParams {
|
|
6
|
+
/** The account that will send the ALGOs */
|
|
7
|
+
from: SendTransactionFrom;
|
|
8
|
+
/** The account / account address that will receive the ALGOs */
|
|
9
|
+
to: SendTransactionFrom | 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 `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, will default to using the dispenser account returned by `algokit.getDispenserAccount` */
|
|
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,2CAA2C;AAC3C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,2CAA2C;IAC3C,IAAI,EAAE,mBAAmB,CAAA;IACzB,gEAAgE;IAChE,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAChC,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAA;IAClB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,sCAAsC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,0CAA0C;AAC1C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,0BAA0B;IAC1B,aAAa,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAC3C,oIAAoI;IACpI,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,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,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;CAC7B;AAUD,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,CAAA;AAEpG;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAKuB,OAAO,CAAC,cAAc;IAJxG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAK;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;gBAG7B,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,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I,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/algo-amount.d.ts.map
DELETED
|
@@ -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/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,CAAC,kBAAkB,CAAC,CAAA;IAC3D,CAAC;IAED,YAAY,MAAkD;QAC5D,IAAI,CAAC,kBAAkB,GAAG,YAAY,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAChH,CAAC;IAED,+EAA+E;IAC/E,MAAM,CAAC,KAAK,CAAC,MAAc;QACzB,OAAO,IAAI,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IAC1C,CAAC;IAED,gFAAgF;IAChF,MAAM,CAAC,UAAU,CAAC,MAAc;QAC9B,OAAO,IAAI,UAAU,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAA;IAC/C,CAAC;CACF;AA1BD,gCA0BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algo-http-client-with-retry.d.ts","sourceRoot":"","sources":["../src/algo-http-client-with-retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAExF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,yEAAyE;AACzE,qBAAa,uBAAwB,SAAQ,sBAAsB;IACjE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAI;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAQ;IAI9C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAsC;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