@algorandfoundation/algokit-utils 9.2.0 → 9.2.1-beta.1
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/_virtual/_rolldown/runtime.js +33 -0
- package/_virtual/_rolldown/runtime.mjs +13 -0
- package/account/account.d.ts +25 -30
- package/account/account.js +151 -146
- package/account/account.js.map +1 -1
- package/account/account.mjs +149 -144
- package/account/account.mjs.map +1 -1
- package/account/get-account-config-from-environment.d.ts +7 -2
- package/account/get-account-config-from-environment.js +19 -21
- package/account/get-account-config-from-environment.js.map +1 -1
- package/account/get-account-config-from-environment.mjs +19 -19
- package/account/get-account-config-from-environment.mjs.map +1 -1
- package/account/get-account.d.ts +14 -12
- package/account/get-account.js +56 -59
- package/account/get-account.js.map +1 -1
- package/account/get-account.mjs +56 -57
- package/account/get-account.mjs.map +1 -1
- package/account/get-dispenser-account.d.ts +9 -5
- package/account/get-dispenser-account.js +20 -18
- package/account/get-dispenser-account.js.map +1 -1
- package/account/get-dispenser-account.mjs +20 -16
- package/account/get-dispenser-account.mjs.map +1 -1
- package/account/mnemonic-account.d.ts +7 -3
- package/account/mnemonic-account.js +17 -17
- package/account/mnemonic-account.js.map +1 -1
- package/account/mnemonic-account.mjs +15 -15
- package/account/mnemonic-account.mjs.map +1 -1
- package/amount.d.ts +40 -35
- package/amount.js +33 -34
- package/amount.js.map +1 -1
- package/amount.mjs +33 -32
- package/amount.mjs.map +1 -1
- package/app-client.d.ts +10 -6
- package/app-client.js +91 -86
- package/app-client.js.map +1 -1
- package/app-client.mjs +91 -84
- package/app-client.mjs.map +1 -1
- package/app-deploy.d.ts +26 -24
- package/app-deploy.js +235 -253
- package/app-deploy.js.map +1 -1
- package/app-deploy.mjs +233 -251
- package/app-deploy.mjs.map +1 -1
- package/app.d.ts +45 -46
- package/app.js +253 -271
- package/app.js.map +1 -1
- package/app.mjs +249 -267
- package/app.mjs.map +1 -1
- package/asset.d.ts +16 -12
- package/asset.js +116 -122
- package/asset.js.map +1 -1
- package/asset.mjs +116 -120
- package/asset.mjs.map +1 -1
- package/config.d.ts +7 -2
- package/config.js +5 -7
- package/config.js.map +1 -1
- package/config.mjs +5 -4
- package/config.mjs.map +1 -1
- package/debugging/debugging.d.ts +5 -1
- package/debugging/debugging.js +11 -11
- package/debugging/debugging.js.map +1 -1
- package/debugging/debugging.mjs +11 -9
- package/debugging/debugging.mjs.map +1 -1
- package/dispenser-client.d.ts +7 -2
- package/dispenser-client.js +23 -24
- package/dispenser-client.js.map +1 -1
- package/dispenser-client.mjs +23 -22
- package/dispenser-client.mjs.map +1 -1
- package/index.d.ts +27 -18
- package/index.js +140 -143
- package/index.mjs +27 -29
- package/indexer-lookup.d.ts +18 -11
- package/indexer-lookup.js +112 -120
- package/indexer-lookup.js.map +1 -1
- package/indexer-lookup.mjs +105 -118
- package/indexer-lookup.mjs.map +1 -1
- package/localnet/get-kmd-wallet-account.d.ts +9 -7
- package/localnet/get-kmd-wallet-account.js +28 -26
- package/localnet/get-kmd-wallet-account.js.map +1 -1
- package/localnet/get-kmd-wallet-account.mjs +28 -24
- package/localnet/get-kmd-wallet-account.mjs.map +1 -1
- package/localnet/get-localnet-dispenser-account.d.ts +7 -5
- package/localnet/get-localnet-dispenser-account.js +17 -15
- package/localnet/get-localnet-dispenser-account.js.map +1 -1
- package/localnet/get-localnet-dispenser-account.mjs +17 -13
- package/localnet/get-localnet-dispenser-account.mjs.map +1 -1
- package/localnet/get-or-create-kmd-wallet-account.d.ts +10 -8
- package/localnet/get-or-create-kmd-wallet-account.js +28 -26
- package/localnet/get-or-create-kmd-wallet-account.js.map +1 -1
- package/localnet/get-or-create-kmd-wallet-account.mjs +28 -24
- package/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -1
- package/localnet/is-localnet.d.ts +7 -3
- package/localnet/is-localnet.js +9 -10
- package/localnet/is-localnet.js.map +1 -1
- package/localnet/is-localnet.mjs +9 -8
- package/localnet/is-localnet.mjs.map +1 -1
- package/network-client.d.ts +17 -15
- package/network-client.js +115 -116
- package/network-client.js.map +1 -1
- package/network-client.mjs +115 -114
- package/network-client.mjs.map +1 -1
- package/package.json +12 -3
- package/testing/account.d.ts +11 -9
- package/testing/account.js +31 -33
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +29 -31
- package/testing/account.mjs.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +7 -2
- package/testing/fixtures/algokit-log-capture-fixture.js +36 -41
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.mjs +36 -39
- package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
- package/testing/fixtures/algorand-fixture.d.ts +9 -4
- package/testing/fixtures/algorand-fixture.js +67 -62
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +66 -59
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/index.d.ts +7 -5
- package/testing/index.js +13 -18
- package/testing/index.mjs +7 -7
- package/testing/indexer.d.ts +5 -1
- package/testing/indexer.js +28 -37
- package/testing/indexer.js.map +1 -1
- package/testing/indexer.mjs +28 -35
- package/testing/indexer.mjs.map +1 -1
- package/testing/test-logger.d.ts +41 -36
- package/testing/test-logger.js +71 -76
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs +71 -74
- package/testing/test-logger.mjs.map +1 -1
- package/testing/transaction-logger.d.ts +30 -27
- package/testing/transaction-logger.js +77 -93
- package/testing/transaction-logger.js.map +1 -1
- package/testing/transaction-logger.mjs +74 -90
- package/testing/transaction-logger.mjs.map +1 -1
- package/transaction/legacy-bridge.js +100 -111
- package/transaction/legacy-bridge.js.map +1 -1
- package/transaction/legacy-bridge.mjs +97 -108
- package/transaction/legacy-bridge.mjs.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts +7 -5
- package/transaction/perform-atomic-transaction-composer-simulate.js +31 -36
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.mjs +28 -33
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -1
- package/transaction/transaction.d.ts +34 -35
- package/transaction/transaction.js +716 -914
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +713 -911
- package/transaction/transaction.mjs.map +1 -1
- package/transfer/transfer-algos.d.ts +9 -5
- package/transfer/transfer-algos.js +26 -27
- package/transfer/transfer-algos.js.map +1 -1
- package/transfer/transfer-algos.mjs +26 -25
- package/transfer/transfer-algos.mjs.map +1 -1
- package/transfer/transfer.d.ts +11 -8
- package/transfer/transfer.js +94 -100
- package/transfer/transfer.js.map +1 -1
- package/transfer/transfer.mjs +94 -98
- package/transfer/transfer.mjs.map +1 -1
- package/types/account-manager.d.ts +432 -429
- package/types/account-manager.js +591 -602
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +587 -599
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +192 -202
- package/types/account.js +91 -88
- package/types/account.js.map +1 -1
- package/types/account.mjs +88 -86
- package/types/account.mjs.map +1 -1
- package/types/algo-http-client-with-retry.d.ts +15 -10
- package/types/algo-http-client-with-retry.js +70 -92
- package/types/algo-http-client-with-retry.js.map +1 -1
- package/types/algo-http-client-with-retry.mjs +69 -90
- package/types/algo-http-client-with-retry.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +778 -771
- package/types/algorand-client-transaction-creator.js +733 -732
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +732 -730
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +1090 -1360
- package/types/algorand-client-transaction-sender.js +930 -961
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +927 -959
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +239 -236
- package/types/algorand-client.js +322 -320
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +321 -318
- package/types/algorand-client.mjs.map +1 -1
- package/types/amount.d.ts +47 -43
- package/types/amount.js +66 -70
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +63 -68
- package/types/amount.mjs.map +1 -1
- package/types/app-arc56.d.ts +235 -272
- package/types/app-arc56.js +124 -170
- package/types/app-arc56.js.map +1 -1
- package/types/app-arc56.mjs +121 -168
- package/types/app-arc56.mjs.map +1 -1
- package/types/app-client.d.ts +1128 -2009
- package/types/app-client.js +1633 -1791
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +1624 -1783
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +139 -141
- package/types/app-deployer.js +344 -384
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +341 -382
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +762 -932
- package/types/app-factory.js +496 -488
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +491 -484
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +304 -310
- package/types/app-manager.js +422 -475
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +419 -473
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.d.ts +118 -117
- package/types/app-spec.js +125 -135
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +121 -132
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +229 -241
- package/types/app.js +36 -28
- package/types/app.js.map +1 -1
- package/types/app.mjs +33 -26
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +204 -199
- package/types/asset-manager.js +165 -174
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +164 -172
- package/types/asset-manager.mjs.map +1 -1
- package/types/asset.d.ts +95 -91
- package/types/asset.js +0 -3
- package/types/asset.mjs +0 -2
- package/types/async-event-emitter.d.ts +18 -13
- package/types/async-event-emitter.js +37 -49
- package/types/async-event-emitter.js.map +1 -1
- package/types/async-event-emitter.mjs +36 -47
- package/types/async-event-emitter.mjs.map +1 -1
- package/types/client-manager.d.ts +453 -451
- package/types/client-manager.js +602 -598
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +597 -594
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +1211 -1258
- package/types/composer.js +1436 -1498
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +1430 -1493
- package/types/composer.mjs.map +1 -1
- package/types/config.d.ts +53 -48
- package/types/config.js +78 -77
- package/types/config.js.map +1 -1
- package/types/config.mjs +77 -75
- package/types/config.mjs.map +1 -1
- package/types/debugging.d.ts +25 -23
- package/types/debugging.js +9 -11
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs +8 -9
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.d.ts +57 -52
- package/types/dispenser-client.js +120 -141
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +119 -139
- package/types/dispenser-client.mjs.map +1 -1
- package/types/expand.d.ts +5 -3
- package/types/expand.js +0 -3
- package/types/expand.mjs +0 -2
- package/types/indexer.d.ts +104 -100
- package/types/indexer.js +36 -31
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs +32 -30
- package/types/indexer.mjs.map +1 -1
- package/types/instance-of.d.ts +5 -3
- package/types/instance-of.js +0 -3
- package/types/instance-of.mjs +0 -2
- package/types/kmd-account-manager.d.ts +75 -70
- package/types/kmd-account-manager.js +150 -184
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +147 -182
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +13 -8
- package/types/lifecycle-events.js +10 -7
- package/types/lifecycle-events.js.map +1 -1
- package/types/lifecycle-events.mjs +9 -7
- package/types/lifecycle-events.mjs.map +1 -1
- package/types/logging.d.ts +15 -11
- package/types/logging.js +30 -31
- package/types/logging.js.map +1 -1
- package/types/logging.mjs +29 -29
- package/types/logging.mjs.map +1 -1
- package/types/logic-error.d.ts +33 -29
- package/types/logic-error.js +50 -49
- package/types/logic-error.js.map +1 -1
- package/types/logic-error.mjs +49 -47
- package/types/logic-error.mjs.map +1 -1
- package/types/network-client.d.ts +32 -27
- package/types/network-client.js +10 -9
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs +9 -7
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +131 -132
- package/types/testing.js +0 -3
- package/types/testing.mjs +0 -2
- package/types/transaction.d.ts +110 -110
- package/types/transaction.js +0 -3
- package/types/transaction.mjs +0 -2
- package/types/transfer.d.ts +70 -66
- package/types/transfer.js +0 -3
- package/types/transfer.mjs +0 -2
- package/util.js +73 -118
- package/util.js.map +1 -1
- package/util.mjs +73 -116
- package/util.mjs.map +1 -1
- package/account/index.d.ts +0 -5
- package/debugging/index.d.ts +0 -1
- package/index.js.map +0 -1
- package/index.mjs.map +0 -1
- package/localnet/index.d.ts +0 -4
- package/testing/_asset.d.ts +0 -3
- package/testing/fixtures/index.d.ts +0 -2
- package/testing/index.js.map +0 -1
- package/testing/index.mjs.map +0 -1
- package/transaction/index.d.ts +0 -2
- package/transaction/legacy-bridge.d.ts +0 -35
- package/transfer/index.d.ts +0 -2
- package/types/asset.js.map +0 -1
- package/types/asset.mjs.map +0 -1
- package/types/expand.js.map +0 -1
- package/types/expand.mjs.map +0 -1
- package/types/instance-of.js.map +0 -1
- package/types/instance-of.mjs.map +0 -1
- package/types/testing.js.map +0 -1
- package/types/testing.mjs.map +0 -1
- package/types/transaction.js.map +0 -1
- package/types/transaction.mjs.map +0 -1
- package/types/transfer.js.map +0 -1
- package/types/transfer.mjs.map +0 -1
- package/util.d.ts +0 -48
package/types/config.d.ts
CHANGED
|
@@ -1,52 +1,57 @@
|
|
|
1
|
-
import { AsyncEventEmitter } from
|
|
2
|
-
import { Logger } from
|
|
1
|
+
import { AsyncEventEmitter } from "./async-event-emitter.js";
|
|
2
|
+
import { Logger } from "./logging.js";
|
|
3
|
+
|
|
4
|
+
//#region src/types/config.d.ts
|
|
3
5
|
/** The AlgoKit configuration type */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
interface Config {
|
|
7
|
+
/** Logger */
|
|
8
|
+
logger: Logger;
|
|
9
|
+
/** Whether or not debug mode is enabled */
|
|
10
|
+
debug: boolean;
|
|
11
|
+
/** The path to the project root directory */
|
|
12
|
+
projectRoot: string | null;
|
|
13
|
+
/** Indicates whether to trace all operations */
|
|
14
|
+
traceAll: boolean;
|
|
15
|
+
/** The size of the trace buffer in megabytes */
|
|
16
|
+
traceBufferSizeMb: number;
|
|
17
|
+
/** The maximum depth to search for a specific file */
|
|
18
|
+
maxSearchDepth: number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to enable populateAppCallResources in sendParams by default.
|
|
21
|
+
* Default value is false.
|
|
22
|
+
*/
|
|
23
|
+
populateAppCallResources: boolean;
|
|
24
|
+
events: AsyncEventEmitter;
|
|
23
25
|
}
|
|
24
26
|
/** Updatable AlgoKit config */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
declare class UpdatableConfig implements Readonly<Config> {
|
|
28
|
+
private config;
|
|
29
|
+
get populateAppCallResources(): boolean;
|
|
30
|
+
get logger(): Logger;
|
|
31
|
+
get debug(): boolean;
|
|
32
|
+
get projectRoot(): string | null;
|
|
33
|
+
get traceAll(): boolean;
|
|
34
|
+
get traceBufferSizeMb(): number;
|
|
35
|
+
get maxSearchDepth(): number;
|
|
36
|
+
get events(): AsyncEventEmitter;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the current logger, or the null logger if true is passed in to `returnNullLogger`
|
|
39
|
+
* @param returnNullLogger Whether or not to return the null logger
|
|
40
|
+
* @returns The requested logger
|
|
41
|
+
*/
|
|
42
|
+
getLogger(returnNullLogger?: boolean): Logger;
|
|
43
|
+
/**
|
|
44
|
+
* Temporarily run with debug set to true.
|
|
45
|
+
* @param lambda A lambda expression with code to run with debug config set to true
|
|
46
|
+
*/
|
|
47
|
+
withDebug(lambda: () => unknown): void;
|
|
48
|
+
constructor();
|
|
49
|
+
/**
|
|
50
|
+
* Update the AlgoKit configuration with your own configuration settings
|
|
51
|
+
* @param newConfig Partial or complete config to replace
|
|
52
|
+
*/
|
|
53
|
+
configure(newConfig: Partial<Config>): void;
|
|
52
54
|
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { Config, UpdatableConfig };
|
|
57
|
+
//# sourceMappingURL=config.d.ts.map
|
package/types/config.js
CHANGED
|
@@ -1,79 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_async_event_emitter = require("./async-event-emitter.js");
|
|
3
|
+
const require_logging = require("./logging.js");
|
|
4
|
+
//#region src/types/config.ts
|
|
6
5
|
/** Updatable AlgoKit config */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
6
|
+
var UpdatableConfig = class {
|
|
7
|
+
config;
|
|
8
|
+
get populateAppCallResources() {
|
|
9
|
+
return this.config.populateAppCallResources;
|
|
10
|
+
}
|
|
11
|
+
get logger() {
|
|
12
|
+
return this.config.logger;
|
|
13
|
+
}
|
|
14
|
+
get debug() {
|
|
15
|
+
return this.config.debug;
|
|
16
|
+
}
|
|
17
|
+
get projectRoot() {
|
|
18
|
+
return this.config.projectRoot;
|
|
19
|
+
}
|
|
20
|
+
get traceAll() {
|
|
21
|
+
return this.config.traceAll;
|
|
22
|
+
}
|
|
23
|
+
get traceBufferSizeMb() {
|
|
24
|
+
return this.config.traceBufferSizeMb;
|
|
25
|
+
}
|
|
26
|
+
get maxSearchDepth() {
|
|
27
|
+
return this.config.maxSearchDepth;
|
|
28
|
+
}
|
|
29
|
+
get events() {
|
|
30
|
+
return this.config.events;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns the current logger, or the null logger if true is passed in to `returnNullLogger`
|
|
34
|
+
* @param returnNullLogger Whether or not to return the null logger
|
|
35
|
+
* @returns The requested logger
|
|
36
|
+
*/
|
|
37
|
+
getLogger(returnNullLogger) {
|
|
38
|
+
if (returnNullLogger) return require_logging.nullLogger;
|
|
39
|
+
return this.logger;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Temporarily run with debug set to true.
|
|
43
|
+
* @param lambda A lambda expression with code to run with debug config set to true
|
|
44
|
+
*/
|
|
45
|
+
withDebug(lambda) {
|
|
46
|
+
const original = this.config.debug;
|
|
47
|
+
try {
|
|
48
|
+
this.config.debug = true;
|
|
49
|
+
lambda();
|
|
50
|
+
} finally {
|
|
51
|
+
this.config.debug = original;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
constructor() {
|
|
55
|
+
this.config = {
|
|
56
|
+
logger: require_logging.consoleLogger,
|
|
57
|
+
debug: false,
|
|
58
|
+
projectRoot: null,
|
|
59
|
+
traceAll: false,
|
|
60
|
+
traceBufferSizeMb: 256,
|
|
61
|
+
maxSearchDepth: 10,
|
|
62
|
+
populateAppCallResources: true,
|
|
63
|
+
events: new require_async_event_emitter.AsyncEventEmitter()
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Update the AlgoKit configuration with your own configuration settings
|
|
68
|
+
* @param newConfig Partial or complete config to replace
|
|
69
|
+
*/
|
|
70
|
+
configure(newConfig) {
|
|
71
|
+
this.config = {
|
|
72
|
+
...this.config,
|
|
73
|
+
...newConfig
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
78
|
exports.UpdatableConfig = UpdatableConfig;
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=config.js.map
|
package/types/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../src/types/config.ts"],"sourcesContent":["import { AsyncEventEmitter } from './async-event-emitter'\nimport { Logger, consoleLogger, nullLogger } from './logging'\n\n/** The AlgoKit configuration type */\nexport interface Config {\n /** Logger */\n logger: Logger\n /** Whether or not debug mode is enabled */\n debug: boolean\n /** The path to the project root directory */\n projectRoot: string | null\n /** Indicates whether to trace all operations */\n traceAll: boolean\n /** The size of the trace buffer in megabytes */\n traceBufferSizeMb: number\n /** The maximum depth to search for a specific file */\n maxSearchDepth: number\n /**\n * Whether to enable populateAppCallResources in sendParams by default.\n * Default value is false.\n */\n populateAppCallResources: boolean\n\n events: AsyncEventEmitter\n}\n\n/** Updatable AlgoKit config */\nexport class UpdatableConfig implements Readonly<Config> {\n private config: Config\n\n get populateAppCallResources() {\n return this.config.populateAppCallResources\n }\n\n get logger() {\n return this.config.logger\n }\n\n get debug() {\n return this.config.debug\n }\n\n get projectRoot() {\n return this.config.projectRoot\n }\n\n get traceAll() {\n return this.config.traceAll\n }\n\n get traceBufferSizeMb() {\n return this.config.traceBufferSizeMb\n }\n\n get maxSearchDepth() {\n return this.config.maxSearchDepth\n }\n\n get events() {\n return this.config.events\n }\n\n /**\n * Returns the current logger, or the null logger if true is passed in to `returnNullLogger`\n * @param returnNullLogger Whether or not to return the null logger\n * @returns The requested logger\n */\n getLogger(returnNullLogger?: boolean) {\n if (returnNullLogger) {\n return nullLogger\n }\n\n return this.logger\n }\n\n /**\n * Temporarily run with debug set to true.\n * @param lambda A lambda expression with code to run with debug config set to true\n */\n withDebug(lambda: () => unknown) {\n const original = this.config.debug\n try {\n this.config.debug = true\n lambda()\n } finally {\n this.config.debug = original\n }\n }\n\n constructor() {\n this.config = {\n logger: consoleLogger,\n debug: false,\n projectRoot: null,\n traceAll: false,\n traceBufferSizeMb: 256,\n maxSearchDepth: 10,\n populateAppCallResources: true,\n events: new AsyncEventEmitter(),\n }\n }\n\n /**\n * Update the AlgoKit configuration with your own configuration settings\n * @param newConfig Partial or complete config to replace\n */\n configure(newConfig: Partial<Config>) {\n this.config = { ...this.config, ...newConfig }\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"config.js","names":["nullLogger","consoleLogger","AsyncEventEmitter"],"sources":["../../src/types/config.ts"],"sourcesContent":["import { AsyncEventEmitter } from './async-event-emitter'\nimport { Logger, consoleLogger, nullLogger } from './logging'\n\n/** The AlgoKit configuration type */\nexport interface Config {\n /** Logger */\n logger: Logger\n /** Whether or not debug mode is enabled */\n debug: boolean\n /** The path to the project root directory */\n projectRoot: string | null\n /** Indicates whether to trace all operations */\n traceAll: boolean\n /** The size of the trace buffer in megabytes */\n traceBufferSizeMb: number\n /** The maximum depth to search for a specific file */\n maxSearchDepth: number\n /**\n * Whether to enable populateAppCallResources in sendParams by default.\n * Default value is false.\n */\n populateAppCallResources: boolean\n\n events: AsyncEventEmitter\n}\n\n/** Updatable AlgoKit config */\nexport class UpdatableConfig implements Readonly<Config> {\n private config: Config\n\n get populateAppCallResources() {\n return this.config.populateAppCallResources\n }\n\n get logger() {\n return this.config.logger\n }\n\n get debug() {\n return this.config.debug\n }\n\n get projectRoot() {\n return this.config.projectRoot\n }\n\n get traceAll() {\n return this.config.traceAll\n }\n\n get traceBufferSizeMb() {\n return this.config.traceBufferSizeMb\n }\n\n get maxSearchDepth() {\n return this.config.maxSearchDepth\n }\n\n get events() {\n return this.config.events\n }\n\n /**\n * Returns the current logger, or the null logger if true is passed in to `returnNullLogger`\n * @param returnNullLogger Whether or not to return the null logger\n * @returns The requested logger\n */\n getLogger(returnNullLogger?: boolean) {\n if (returnNullLogger) {\n return nullLogger\n }\n\n return this.logger\n }\n\n /**\n * Temporarily run with debug set to true.\n * @param lambda A lambda expression with code to run with debug config set to true\n */\n withDebug(lambda: () => unknown) {\n const original = this.config.debug\n try {\n this.config.debug = true\n lambda()\n } finally {\n this.config.debug = original\n }\n }\n\n constructor() {\n this.config = {\n logger: consoleLogger,\n debug: false,\n projectRoot: null,\n traceAll: false,\n traceBufferSizeMb: 256,\n maxSearchDepth: 10,\n populateAppCallResources: true,\n events: new AsyncEventEmitter(),\n }\n }\n\n /**\n * Update the AlgoKit configuration with your own configuration settings\n * @param newConfig Partial or complete config to replace\n */\n configure(newConfig: Partial<Config>) {\n this.config = { ...this.config, ...newConfig }\n }\n}\n"],"mappings":";;;;;AA2BA,IAAa,kBAAb,MAAyD;CACvD;CAEA,IAAI,2BAA2B;EAC7B,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,SAAS;EACX,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,QAAQ;EACV,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,cAAc;EAChB,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,WAAW;EACb,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,oBAAoB;EACtB,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,iBAAiB;EACnB,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,SAAS;EACX,OAAO,KAAK,OAAO;CACrB;;;;;;CAOA,UAAU,kBAA4B;EACpC,IAAI,kBACF,OAAOA,gBAAAA;EAGT,OAAO,KAAK;CACd;;;;;CAMA,UAAU,QAAuB;EAC/B,MAAM,WAAW,KAAK,OAAO;EAC7B,IAAI;GACF,KAAK,OAAO,QAAQ;GACpB,OAAO;EACT,UAAU;GACR,KAAK,OAAO,QAAQ;EACtB;CACF;CAEA,cAAc;EACZ,KAAK,SAAS;GACZ,QAAQC,gBAAAA;GACR,OAAO;GACP,aAAa;GACb,UAAU;GACV,mBAAmB;GACnB,gBAAgB;GAChB,0BAA0B;GAC1B,QAAQ,IAAIC,4BAAAA,kBAAkB;EAChC;CACF;;;;;CAMA,UAAU,WAA4B;EACpC,KAAK,SAAS;GAAE,GAAG,KAAK;GAAQ,GAAG;EAAU;CAC/C;AACF"}
|
package/types/config.mjs
CHANGED
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
import { AsyncEventEmitter } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { AsyncEventEmitter } from "./async-event-emitter.mjs";
|
|
2
|
+
import { consoleLogger, nullLogger } from "./logging.mjs";
|
|
3
|
+
//#region src/types/config.ts
|
|
4
4
|
/** Updatable AlgoKit config */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
5
|
+
var UpdatableConfig = class {
|
|
6
|
+
config;
|
|
7
|
+
get populateAppCallResources() {
|
|
8
|
+
return this.config.populateAppCallResources;
|
|
9
|
+
}
|
|
10
|
+
get logger() {
|
|
11
|
+
return this.config.logger;
|
|
12
|
+
}
|
|
13
|
+
get debug() {
|
|
14
|
+
return this.config.debug;
|
|
15
|
+
}
|
|
16
|
+
get projectRoot() {
|
|
17
|
+
return this.config.projectRoot;
|
|
18
|
+
}
|
|
19
|
+
get traceAll() {
|
|
20
|
+
return this.config.traceAll;
|
|
21
|
+
}
|
|
22
|
+
get traceBufferSizeMb() {
|
|
23
|
+
return this.config.traceBufferSizeMb;
|
|
24
|
+
}
|
|
25
|
+
get maxSearchDepth() {
|
|
26
|
+
return this.config.maxSearchDepth;
|
|
27
|
+
}
|
|
28
|
+
get events() {
|
|
29
|
+
return this.config.events;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the current logger, or the null logger if true is passed in to `returnNullLogger`
|
|
33
|
+
* @param returnNullLogger Whether or not to return the null logger
|
|
34
|
+
* @returns The requested logger
|
|
35
|
+
*/
|
|
36
|
+
getLogger(returnNullLogger) {
|
|
37
|
+
if (returnNullLogger) return nullLogger;
|
|
38
|
+
return this.logger;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Temporarily run with debug set to true.
|
|
42
|
+
* @param lambda A lambda expression with code to run with debug config set to true
|
|
43
|
+
*/
|
|
44
|
+
withDebug(lambda) {
|
|
45
|
+
const original = this.config.debug;
|
|
46
|
+
try {
|
|
47
|
+
this.config.debug = true;
|
|
48
|
+
lambda();
|
|
49
|
+
} finally {
|
|
50
|
+
this.config.debug = original;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
constructor() {
|
|
54
|
+
this.config = {
|
|
55
|
+
logger: consoleLogger,
|
|
56
|
+
debug: false,
|
|
57
|
+
projectRoot: null,
|
|
58
|
+
traceAll: false,
|
|
59
|
+
traceBufferSizeMb: 256,
|
|
60
|
+
maxSearchDepth: 10,
|
|
61
|
+
populateAppCallResources: true,
|
|
62
|
+
events: new AsyncEventEmitter()
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Update the AlgoKit configuration with your own configuration settings
|
|
67
|
+
* @param newConfig Partial or complete config to replace
|
|
68
|
+
*/
|
|
69
|
+
configure(newConfig) {
|
|
70
|
+
this.config = {
|
|
71
|
+
...this.config,
|
|
72
|
+
...newConfig
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
76
77
|
export { UpdatableConfig };
|
|
77
|
-
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=config.mjs.map
|
package/types/config.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.mjs","sources":["../../src/types/config.ts"],"sourcesContent":["import { AsyncEventEmitter } from './async-event-emitter'\nimport { Logger, consoleLogger, nullLogger } from './logging'\n\n/** The AlgoKit configuration type */\nexport interface Config {\n /** Logger */\n logger: Logger\n /** Whether or not debug mode is enabled */\n debug: boolean\n /** The path to the project root directory */\n projectRoot: string | null\n /** Indicates whether to trace all operations */\n traceAll: boolean\n /** The size of the trace buffer in megabytes */\n traceBufferSizeMb: number\n /** The maximum depth to search for a specific file */\n maxSearchDepth: number\n /**\n * Whether to enable populateAppCallResources in sendParams by default.\n * Default value is false.\n */\n populateAppCallResources: boolean\n\n events: AsyncEventEmitter\n}\n\n/** Updatable AlgoKit config */\nexport class UpdatableConfig implements Readonly<Config> {\n private config: Config\n\n get populateAppCallResources() {\n return this.config.populateAppCallResources\n }\n\n get logger() {\n return this.config.logger\n }\n\n get debug() {\n return this.config.debug\n }\n\n get projectRoot() {\n return this.config.projectRoot\n }\n\n get traceAll() {\n return this.config.traceAll\n }\n\n get traceBufferSizeMb() {\n return this.config.traceBufferSizeMb\n }\n\n get maxSearchDepth() {\n return this.config.maxSearchDepth\n }\n\n get events() {\n return this.config.events\n }\n\n /**\n * Returns the current logger, or the null logger if true is passed in to `returnNullLogger`\n * @param returnNullLogger Whether or not to return the null logger\n * @returns The requested logger\n */\n getLogger(returnNullLogger?: boolean) {\n if (returnNullLogger) {\n return nullLogger\n }\n\n return this.logger\n }\n\n /**\n * Temporarily run with debug set to true.\n * @param lambda A lambda expression with code to run with debug config set to true\n */\n withDebug(lambda: () => unknown) {\n const original = this.config.debug\n try {\n this.config.debug = true\n lambda()\n } finally {\n this.config.debug = original\n }\n }\n\n constructor() {\n this.config = {\n logger: consoleLogger,\n debug: false,\n projectRoot: null,\n traceAll: false,\n traceBufferSizeMb: 256,\n maxSearchDepth: 10,\n populateAppCallResources: true,\n events: new AsyncEventEmitter(),\n }\n }\n\n /**\n * Update the AlgoKit configuration with your own configuration settings\n * @param newConfig Partial or complete config to replace\n */\n configure(newConfig: Partial<Config>) {\n this.config = { ...this.config, ...newConfig }\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"config.mjs","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":["import { AsyncEventEmitter } from './async-event-emitter'\nimport { Logger, consoleLogger, nullLogger } from './logging'\n\n/** The AlgoKit configuration type */\nexport interface Config {\n /** Logger */\n logger: Logger\n /** Whether or not debug mode is enabled */\n debug: boolean\n /** The path to the project root directory */\n projectRoot: string | null\n /** Indicates whether to trace all operations */\n traceAll: boolean\n /** The size of the trace buffer in megabytes */\n traceBufferSizeMb: number\n /** The maximum depth to search for a specific file */\n maxSearchDepth: number\n /**\n * Whether to enable populateAppCallResources in sendParams by default.\n * Default value is false.\n */\n populateAppCallResources: boolean\n\n events: AsyncEventEmitter\n}\n\n/** Updatable AlgoKit config */\nexport class UpdatableConfig implements Readonly<Config> {\n private config: Config\n\n get populateAppCallResources() {\n return this.config.populateAppCallResources\n }\n\n get logger() {\n return this.config.logger\n }\n\n get debug() {\n return this.config.debug\n }\n\n get projectRoot() {\n return this.config.projectRoot\n }\n\n get traceAll() {\n return this.config.traceAll\n }\n\n get traceBufferSizeMb() {\n return this.config.traceBufferSizeMb\n }\n\n get maxSearchDepth() {\n return this.config.maxSearchDepth\n }\n\n get events() {\n return this.config.events\n }\n\n /**\n * Returns the current logger, or the null logger if true is passed in to `returnNullLogger`\n * @param returnNullLogger Whether or not to return the null logger\n * @returns The requested logger\n */\n getLogger(returnNullLogger?: boolean) {\n if (returnNullLogger) {\n return nullLogger\n }\n\n return this.logger\n }\n\n /**\n * Temporarily run with debug set to true.\n * @param lambda A lambda expression with code to run with debug config set to true\n */\n withDebug(lambda: () => unknown) {\n const original = this.config.debug\n try {\n this.config.debug = true\n lambda()\n } finally {\n this.config.debug = original\n }\n }\n\n constructor() {\n this.config = {\n logger: consoleLogger,\n debug: false,\n projectRoot: null,\n traceAll: false,\n traceBufferSizeMb: 256,\n maxSearchDepth: 10,\n populateAppCallResources: true,\n events: new AsyncEventEmitter(),\n }\n }\n\n /**\n * Update the AlgoKit configuration with your own configuration settings\n * @param newConfig Partial or complete config to replace\n */\n configure(newConfig: Partial<Config>) {\n this.config = { ...this.config, ...newConfig }\n }\n}\n"],"mappings":";;;;AA2BA,IAAa,kBAAb,MAAyD;CACvD;CAEA,IAAI,2BAA2B;EAC7B,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,SAAS;EACX,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,QAAQ;EACV,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,cAAc;EAChB,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,WAAW;EACb,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,oBAAoB;EACtB,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,iBAAiB;EACnB,OAAO,KAAK,OAAO;CACrB;CAEA,IAAI,SAAS;EACX,OAAO,KAAK,OAAO;CACrB;;;;;;CAOA,UAAU,kBAA4B;EACpC,IAAI,kBACF,OAAO;EAGT,OAAO,KAAK;CACd;;;;;CAMA,UAAU,QAAuB;EAC/B,MAAM,WAAW,KAAK,OAAO;EAC7B,IAAI;GACF,KAAK,OAAO,QAAQ;GACpB,OAAO;EACT,UAAU;GACR,KAAK,OAAO,QAAQ;EACtB;CACF;CAEA,cAAc;EACZ,KAAK,SAAS;GACZ,QAAQ;GACR,OAAO;GACP,aAAa;GACb,UAAU;GACV,mBAAmB;GACnB,gBAAgB;GAChB,0BAA0B;GAC1B,QAAQ,IAAI,kBAAkB;EAChC;CACF;;;;;CAMA,UAAU,WAA4B;EACpC,KAAK,SAAS;GAAE,GAAG,KAAK;GAAQ,GAAG;EAAU;CAC/C;AACF"}
|
package/types/debugging.d.ts
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { CompiledTeal } from './app';
|
|
1
|
+
import { CompiledTeal } from "./app.js";
|
|
2
|
+
import algosdk from "algosdk";
|
|
3
|
+
|
|
4
|
+
//#region src/types/debugging.d.ts
|
|
6
5
|
/** The directory name for AlgoKit project related files */
|
|
7
|
-
|
|
6
|
+
declare const ALGOKIT_DIR = ".algokit";
|
|
8
7
|
/** The directory name for debug source files */
|
|
9
|
-
|
|
8
|
+
declare const SOURCES_DIR = "sources";
|
|
10
9
|
/** The file extension for TEAL files */
|
|
11
|
-
|
|
10
|
+
declare const TEAL_FILE_EXT = ".teal";
|
|
12
11
|
/** The file extension for TEAL source map files */
|
|
13
|
-
|
|
12
|
+
declare const TEAL_SOURCEMAP_EXT = ".teal.map";
|
|
14
13
|
/** The default maximum search depth for file operations */
|
|
15
|
-
|
|
14
|
+
declare const DEFAULT_MAX_SEARCH_DEPTH = 10;
|
|
16
15
|
/**
|
|
17
16
|
* Represents the data for a single TEAL source
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
interface TealSourceDebugEventData {
|
|
19
|
+
/** The name of the application */
|
|
20
|
+
appName: string;
|
|
21
|
+
/** The name of the file */
|
|
22
|
+
fileName: string;
|
|
23
|
+
/** The compiled TEAL code */
|
|
24
|
+
compiledTeal: CompiledTeal;
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
28
27
|
* Represents the data for multiple TEAL sources debug events emitted whenever an app is compiled as part of a deploy in debug mode
|
|
29
28
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
interface TealSourcesDebugEventData {
|
|
30
|
+
/** An array of TEAL source debug event data */
|
|
31
|
+
sources: TealSourceDebugEventData[];
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
34
|
* Represents the data for AVM traces debug events emitted whenever a transaction is simulated in debug mode
|
|
36
35
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
interface AVMTracesEventData {
|
|
37
|
+
/** The simulation response from Algod */
|
|
38
|
+
simulateResponse: algosdk.modelsv2.SimulateResponse;
|
|
40
39
|
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ALGOKIT_DIR, AVMTracesEventData, DEFAULT_MAX_SEARCH_DEPTH, SOURCES_DIR, TEAL_FILE_EXT, TEAL_SOURCEMAP_EXT, TealSourceDebugEventData, TealSourcesDebugEventData };
|
|
42
|
+
//# sourceMappingURL=debugging.d.ts.map
|
package/types/debugging.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* An asynchronous event listener
|
|
5
|
-
*/
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/types/debugging.ts
|
|
6
3
|
/** The directory name for AlgoKit project related files */
|
|
7
|
-
const ALGOKIT_DIR =
|
|
4
|
+
const ALGOKIT_DIR = ".algokit";
|
|
8
5
|
/** The directory name for debug source files */
|
|
9
|
-
const SOURCES_DIR =
|
|
6
|
+
const SOURCES_DIR = "sources";
|
|
10
7
|
/** The file extension for TEAL files */
|
|
11
|
-
const TEAL_FILE_EXT =
|
|
8
|
+
const TEAL_FILE_EXT = ".teal";
|
|
12
9
|
/** The file extension for TEAL source map files */
|
|
13
|
-
const TEAL_SOURCEMAP_EXT =
|
|
10
|
+
const TEAL_SOURCEMAP_EXT = ".teal.map";
|
|
14
11
|
/** The default maximum search depth for file operations */
|
|
15
12
|
const DEFAULT_MAX_SEARCH_DEPTH = 10;
|
|
16
|
-
|
|
13
|
+
//#endregion
|
|
17
14
|
exports.ALGOKIT_DIR = ALGOKIT_DIR;
|
|
18
15
|
exports.DEFAULT_MAX_SEARCH_DEPTH = DEFAULT_MAX_SEARCH_DEPTH;
|
|
19
16
|
exports.SOURCES_DIR = SOURCES_DIR;
|
|
20
17
|
exports.TEAL_FILE_EXT = TEAL_FILE_EXT;
|
|
21
18
|
exports.TEAL_SOURCEMAP_EXT = TEAL_SOURCEMAP_EXT;
|
|
22
|
-
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=debugging.js.map
|
package/types/debugging.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugging.js","sources":["../../src/types/debugging.ts"],"sourcesContent":["/**\n * An asynchronous event listener\n */\n\nimport algosdk from 'algosdk'\nimport { CompiledTeal } from './app'\n\n/** The directory name for AlgoKit project related files */\nexport const ALGOKIT_DIR = '.algokit'\n\n/** The directory name for debug source files */\nexport const SOURCES_DIR = 'sources'\n\n/** The file extension for TEAL files */\nexport const TEAL_FILE_EXT = '.teal'\n\n/** The file extension for TEAL source map files */\nexport const TEAL_SOURCEMAP_EXT = '.teal.map'\n\n/** The default maximum search depth for file operations */\nexport const DEFAULT_MAX_SEARCH_DEPTH = 10\n\n/**\n * Represents the data for a single TEAL source\n */\nexport interface TealSourceDebugEventData {\n /** The name of the application */\n appName: string\n /** The name of the file */\n fileName: string\n /** The compiled TEAL code */\n compiledTeal: CompiledTeal\n}\n\n/**\n * Represents the data for multiple TEAL sources debug events emitted whenever an app is compiled as part of a deploy in debug mode\n */\nexport interface TealSourcesDebugEventData {\n /** An array of TEAL source debug event data */\n sources: TealSourceDebugEventData[]\n}\n\n/**\n * Represents the data for AVM traces debug events emitted whenever a transaction is simulated in debug mode\n */\nexport interface AVMTracesEventData {\n /** The simulation response from Algod */\n simulateResponse: algosdk.modelsv2.SimulateResponse\n}\n"],"
|
|
1
|
+
{"version":3,"file":"debugging.js","names":[],"sources":["../../src/types/debugging.ts"],"sourcesContent":["/**\n * An asynchronous event listener\n */\n\nimport algosdk from 'algosdk'\nimport { CompiledTeal } from './app'\n\n/** The directory name for AlgoKit project related files */\nexport const ALGOKIT_DIR = '.algokit'\n\n/** The directory name for debug source files */\nexport const SOURCES_DIR = 'sources'\n\n/** The file extension for TEAL files */\nexport const TEAL_FILE_EXT = '.teal'\n\n/** The file extension for TEAL source map files */\nexport const TEAL_SOURCEMAP_EXT = '.teal.map'\n\n/** The default maximum search depth for file operations */\nexport const DEFAULT_MAX_SEARCH_DEPTH = 10\n\n/**\n * Represents the data for a single TEAL source\n */\nexport interface TealSourceDebugEventData {\n /** The name of the application */\n appName: string\n /** The name of the file */\n fileName: string\n /** The compiled TEAL code */\n compiledTeal: CompiledTeal\n}\n\n/**\n * Represents the data for multiple TEAL sources debug events emitted whenever an app is compiled as part of a deploy in debug mode\n */\nexport interface TealSourcesDebugEventData {\n /** An array of TEAL source debug event data */\n sources: TealSourceDebugEventData[]\n}\n\n/**\n * Represents the data for AVM traces debug events emitted whenever a transaction is simulated in debug mode\n */\nexport interface AVMTracesEventData {\n /** The simulation response from Algod */\n simulateResponse: algosdk.modelsv2.SimulateResponse\n}\n"],"mappings":";;;AAQA,MAAa,cAAc;;AAG3B,MAAa,cAAc;;AAG3B,MAAa,gBAAgB;;AAG7B,MAAa,qBAAqB;;AAGlC,MAAa,2BAA2B"}
|
package/types/debugging.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
* An asynchronous event listener
|
|
3
|
-
*/
|
|
1
|
+
//#region src/types/debugging.ts
|
|
4
2
|
/** The directory name for AlgoKit project related files */
|
|
5
|
-
const ALGOKIT_DIR =
|
|
3
|
+
const ALGOKIT_DIR = ".algokit";
|
|
6
4
|
/** The directory name for debug source files */
|
|
7
|
-
const SOURCES_DIR =
|
|
5
|
+
const SOURCES_DIR = "sources";
|
|
8
6
|
/** The file extension for TEAL files */
|
|
9
|
-
const TEAL_FILE_EXT =
|
|
7
|
+
const TEAL_FILE_EXT = ".teal";
|
|
10
8
|
/** The file extension for TEAL source map files */
|
|
11
|
-
const TEAL_SOURCEMAP_EXT =
|
|
9
|
+
const TEAL_SOURCEMAP_EXT = ".teal.map";
|
|
12
10
|
/** The default maximum search depth for file operations */
|
|
13
11
|
const DEFAULT_MAX_SEARCH_DEPTH = 10;
|
|
14
|
-
|
|
12
|
+
//#endregion
|
|
15
13
|
export { ALGOKIT_DIR, DEFAULT_MAX_SEARCH_DEPTH, SOURCES_DIR, TEAL_FILE_EXT, TEAL_SOURCEMAP_EXT };
|
|
16
|
-
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=debugging.mjs.map
|
package/types/debugging.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugging.mjs","sources":["../../src/types/debugging.ts"],"sourcesContent":["/**\n * An asynchronous event listener\n */\n\nimport algosdk from 'algosdk'\nimport { CompiledTeal } from './app'\n\n/** The directory name for AlgoKit project related files */\nexport const ALGOKIT_DIR = '.algokit'\n\n/** The directory name for debug source files */\nexport const SOURCES_DIR = 'sources'\n\n/** The file extension for TEAL files */\nexport const TEAL_FILE_EXT = '.teal'\n\n/** The file extension for TEAL source map files */\nexport const TEAL_SOURCEMAP_EXT = '.teal.map'\n\n/** The default maximum search depth for file operations */\nexport const DEFAULT_MAX_SEARCH_DEPTH = 10\n\n/**\n * Represents the data for a single TEAL source\n */\nexport interface TealSourceDebugEventData {\n /** The name of the application */\n appName: string\n /** The name of the file */\n fileName: string\n /** The compiled TEAL code */\n compiledTeal: CompiledTeal\n}\n\n/**\n * Represents the data for multiple TEAL sources debug events emitted whenever an app is compiled as part of a deploy in debug mode\n */\nexport interface TealSourcesDebugEventData {\n /** An array of TEAL source debug event data */\n sources: TealSourceDebugEventData[]\n}\n\n/**\n * Represents the data for AVM traces debug events emitted whenever a transaction is simulated in debug mode\n */\nexport interface AVMTracesEventData {\n /** The simulation response from Algod */\n simulateResponse: algosdk.modelsv2.SimulateResponse\n}\n"],"
|
|
1
|
+
{"version":3,"file":"debugging.mjs","names":[],"sources":["../../src/types/debugging.ts"],"sourcesContent":["/**\n * An asynchronous event listener\n */\n\nimport algosdk from 'algosdk'\nimport { CompiledTeal } from './app'\n\n/** The directory name for AlgoKit project related files */\nexport const ALGOKIT_DIR = '.algokit'\n\n/** The directory name for debug source files */\nexport const SOURCES_DIR = 'sources'\n\n/** The file extension for TEAL files */\nexport const TEAL_FILE_EXT = '.teal'\n\n/** The file extension for TEAL source map files */\nexport const TEAL_SOURCEMAP_EXT = '.teal.map'\n\n/** The default maximum search depth for file operations */\nexport const DEFAULT_MAX_SEARCH_DEPTH = 10\n\n/**\n * Represents the data for a single TEAL source\n */\nexport interface TealSourceDebugEventData {\n /** The name of the application */\n appName: string\n /** The name of the file */\n fileName: string\n /** The compiled TEAL code */\n compiledTeal: CompiledTeal\n}\n\n/**\n * Represents the data for multiple TEAL sources debug events emitted whenever an app is compiled as part of a deploy in debug mode\n */\nexport interface TealSourcesDebugEventData {\n /** An array of TEAL source debug event data */\n sources: TealSourceDebugEventData[]\n}\n\n/**\n * Represents the data for AVM traces debug events emitted whenever a transaction is simulated in debug mode\n */\nexport interface AVMTracesEventData {\n /** The simulation response from Algod */\n simulateResponse: algosdk.modelsv2.SimulateResponse\n}\n"],"mappings":";;AAQA,MAAa,cAAc;;AAG3B,MAAa,cAAc;;AAG3B,MAAa,gBAAgB;;AAG7B,MAAa,qBAAqB;;AAGlC,MAAa,2BAA2B"}
|