@algorandfoundation/algokit-utils 10.0.0-alpha.31 → 10.0.0-alpha.32
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/account-manager.d.ts +448 -0
- package/account-manager.js +623 -0
- package/account-manager.js.map +1 -0
- package/account-manager.mjs +620 -0
- package/account-manager.mjs.map +1 -0
- package/account.d.ts +156 -0
- package/account.js +10 -0
- package/account.js.map +1 -0
- package/account.mjs +9 -0
- package/account.mjs.map +1 -0
- package/algorand-client-transaction-creator.d.ts +1103 -0
- package/algorand-client-transaction-creator.js +735 -0
- package/algorand-client-transaction-creator.js.map +1 -0
- package/algorand-client-transaction-creator.mjs +734 -0
- package/algorand-client-transaction-creator.mjs.map +1 -0
- package/algorand-client-transaction-sender.d.ts +1317 -0
- package/algorand-client-transaction-sender.js +933 -0
- package/algorand-client-transaction-sender.js.map +1 -0
- package/algorand-client-transaction-sender.mjs +932 -0
- package/algorand-client-transaction-sender.mjs.map +1 -0
- package/algorand-client.d.ts +246 -0
- package/algorand-client.js +325 -0
- package/algorand-client.js.map +1 -0
- package/algorand-client.mjs +325 -0
- package/algorand-client.mjs.map +1 -0
- package/amount.d.ts +46 -3
- package/amount.js +92 -13
- package/amount.js.map +1 -1
- package/amount.mjs +80 -3
- package/amount.mjs.map +1 -1
- package/app-client.d.ts +2130 -0
- package/app-client.js +909 -0
- package/app-client.js.map +1 -0
- package/app-client.mjs +908 -0
- package/app-client.mjs.map +1 -0
- package/app-deployer.d.ts +166 -0
- package/app-deployer.js +353 -0
- package/app-deployer.js.map +1 -0
- package/app-deployer.mjs +353 -0
- package/app-deployer.mjs.map +1 -0
- package/app-factory.d.ts +965 -0
- package/app-factory.js +448 -0
- package/app-factory.js.map +1 -0
- package/app-factory.mjs +448 -0
- package/app-factory.mjs.map +1 -0
- package/app-manager.d.ts +323 -0
- package/app-manager.js +468 -0
- package/app-manager.js.map +1 -0
- package/app-manager.mjs +468 -0
- package/app-manager.mjs.map +1 -0
- package/app-spec.d.ts +203 -0
- package/app-spec.js +137 -0
- package/app-spec.js.map +1 -0
- package/app-spec.mjs +137 -0
- package/app-spec.mjs.map +1 -0
- package/app.d.ts +257 -0
- package/app.js +49 -0
- package/app.js.map +1 -0
- package/app.mjs +42 -0
- package/app.mjs.map +1 -0
- package/asset-manager.d.ts +212 -0
- package/asset-manager.js +166 -0
- package/asset-manager.js.map +1 -0
- package/asset-manager.mjs +166 -0
- package/asset-manager.mjs.map +1 -0
- package/async-event-emitter.d.ts +16 -0
- package/async-event-emitter.js +38 -0
- package/async-event-emitter.js.map +1 -0
- package/async-event-emitter.mjs +37 -0
- package/async-event-emitter.mjs.map +1 -0
- package/client-manager.d.ts +475 -0
- package/client-manager.js +616 -0
- package/client-manager.js.map +1 -0
- package/client-manager.mjs +616 -0
- package/client-manager.mjs.map +1 -0
- package/composer.d.ts +947 -0
- package/composer.js +1584 -0
- package/composer.js.map +1 -0
- package/composer.mjs +1583 -0
- package/composer.mjs.map +1 -0
- package/config.d.ts +1 -1
- package/config.js +2 -2
- package/config.js.map +1 -1
- package/config.mjs +1 -1
- package/config.mjs.map +1 -1
- package/debugging.d.ts +47 -0
- package/debugging.js +20 -0
- package/debugging.js.map +1 -0
- package/debugging.mjs +15 -0
- package/debugging.mjs.map +1 -0
- package/dispenser-client.d.ts +90 -0
- package/dispenser-client.js +127 -0
- package/dispenser-client.js.map +1 -0
- package/dispenser-client.mjs +127 -0
- package/dispenser-client.mjs.map +1 -0
- package/expand.d.ts +2 -0
- package/expand.js +0 -0
- package/expand.mjs +0 -0
- package/index.d.ts +6 -5
- package/index.js +4 -3
- package/index.mjs +5 -5
- package/indexer-client/indexer-lookup.d.ts +1 -1
- package/indexer-client/indexer-lookup.js.map +1 -1
- package/indexer-client/indexer-lookup.mjs.map +1 -1
- package/indexer.d.ts +40 -0
- package/indexer.js +38 -0
- package/indexer.js.map +1 -0
- package/indexer.mjs +35 -0
- package/indexer.mjs.map +1 -0
- package/instance-of.d.ts +8 -0
- package/kmd-account-manager.d.ts +74 -0
- package/kmd-account-manager.js +167 -0
- package/kmd-account-manager.js.map +1 -0
- package/kmd-account-manager.mjs +165 -0
- package/kmd-account-manager.mjs.map +1 -0
- package/lifecycle-events.d.ts +14 -0
- package/lifecycle-events.js +11 -0
- package/lifecycle-events.js.map +1 -0
- package/lifecycle-events.mjs +10 -0
- package/lifecycle-events.mjs.map +1 -0
- package/logging.d.ts +13 -0
- package/logging.js +47 -0
- package/logging.js.map +1 -0
- package/logging.mjs +42 -0
- package/logging.mjs.map +1 -0
- package/logic-error.d.ts +39 -0
- package/logic-error.js +54 -0
- package/logic-error.js.map +1 -0
- package/logic-error.mjs +53 -0
- package/logic-error.mjs.map +1 -0
- package/network-client.d.ts +43 -0
- package/network-client.js +14 -0
- package/network-client.js.map +1 -0
- package/network-client.mjs +13 -0
- package/network-client.mjs.map +1 -0
- package/package.json +11 -1
- package/testing/account.d.ts +2 -2
- package/testing/account.js +1 -1
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +1 -1
- package/testing/account.mjs.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
- package/testing/fixtures/algorand-fixture.d.ts +2 -2
- package/testing/fixtures/algorand-fixture.js +2 -2
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +2 -2
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/index.d.ts +2 -1
- package/testing/test-logger.d.ts +1 -1
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs.map +1 -1
- package/testing/types.d.ts +156 -0
- package/transaction/index.d.ts +4 -0
- package/transaction/index.js +9 -0
- package/transaction/index.mjs +4 -0
- package/transaction/perform-transaction-composer-simulate.d.ts +1 -1
- package/transaction/perform-transaction-composer-simulate.js.map +1 -1
- package/transaction/perform-transaction-composer-simulate.mjs.map +1 -1
- package/transaction/transaction.d.ts +2 -2
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs.map +1 -1
- package/transaction/types.d.ts +133 -0
- package/transactions/app-call.d.ts +1 -1
- package/transactions/app-call.js +1 -1
- package/transactions/app-call.js.map +1 -1
- package/transactions/app-call.mjs +1 -1
- package/transactions/app-call.mjs.map +1 -1
- package/transactions/common.d.ts +1 -1
- package/transactions/common.js.map +1 -1
- package/transactions/common.mjs.map +1 -1
- package/transactions/method-call.d.ts +1 -1
- package/transactions/method-call.js +1 -1
- package/transactions/method-call.js.map +1 -1
- package/transactions/method-call.mjs +1 -1
- package/transactions/method-call.mjs.map +1 -1
- package/transactions/payment.d.ts +1 -1
- package/transactions/payment.js.map +1 -1
- package/transactions/payment.mjs.map +1 -1
- package/types/account-manager.d.ts +11 -442
- package/types/account-manager.js +5 -616
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +5 -614
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +8 -150
- package/types/account.js +3 -4
- package/types/account.js.map +1 -1
- package/types/account.mjs +4 -4
- package/types/account.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +5 -1098
- package/types/algorand-client-transaction-creator.js +3 -729
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +4 -729
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +5 -1312
- package/types/algorand-client-transaction-sender.js +3 -927
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +3 -926
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +5 -241
- package/types/algorand-client.js +3 -319
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +3 -319
- package/types/algorand-client.mjs.map +1 -1
- package/types/amount.d.ts +6 -45
- package/types/amount.js +3 -79
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +4 -79
- package/types/amount.mjs.map +1 -1
- package/types/app-client.d.ts +75 -2125
- package/types/app-client.js +3 -903
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +3 -902
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +21 -161
- package/types/app-deployer.js +3 -347
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +3 -347
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +21 -960
- package/types/app-factory.js +3 -442
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +3 -442
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +15 -318
- package/types/app-manager.js +3 -462
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +3 -462
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.d.ts +39 -198
- package/types/app-spec.js +3 -131
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +3 -131
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +62 -247
- package/types/app.js +15 -37
- package/types/app.js.map +1 -1
- package/types/app.mjs +16 -37
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +9 -207
- package/types/asset-manager.js +3 -160
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +3 -160
- package/types/asset-manager.mjs.map +1 -1
- package/types/async-event-emitter.d.ts +7 -11
- package/types/async-event-emitter.js +3 -32
- package/types/async-event-emitter.js.map +1 -1
- package/types/async-event-emitter.mjs +4 -32
- package/types/async-event-emitter.mjs.map +1 -1
- package/types/client-manager.d.ts +27 -470
- package/types/client-manager.js +3 -610
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +3 -610
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +79 -943
- package/types/composer.js +3 -1578
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +3 -1577
- package/types/composer.mjs.map +1 -1
- package/types/config.d.ts +7 -52
- package/types/config.js +3 -74
- package/types/config.js.map +1 -1
- package/types/config.mjs +3 -74
- package/types/config.mjs.map +1 -1
- package/types/debugging.d.ts +12 -37
- package/types/debugging.js +11 -10
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs +12 -10
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.d.ts +11 -85
- package/types/dispenser-client.js +3 -121
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +3 -121
- package/types/dispenser-client.mjs.map +1 -1
- package/types/expand.d.ts +8 -2
- package/types/indexer.d.ts +16 -36
- package/types/indexer.js +7 -30
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs +8 -30
- package/types/indexer.mjs.map +1 -1
- package/types/instance-of.d.ts +4 -4
- package/types/kmd-account-manager.d.ts +5 -69
- package/types/kmd-account-manager.js +3 -161
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +3 -159
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +7 -9
- package/types/lifecycle-events.js +3 -5
- package/types/lifecycle-events.js.map +1 -1
- package/types/lifecycle-events.mjs +4 -5
- package/types/lifecycle-events.mjs.map +1 -1
- package/types/logging.d.ts +14 -9
- package/types/logging.js +11 -37
- package/types/logging.js.map +1 -1
- package/types/logging.mjs +12 -37
- package/types/logging.mjs.map +1 -1
- package/types/logic-error.d.ts +8 -35
- package/types/logic-error.js +3 -48
- package/types/logic-error.js.map +1 -1
- package/types/logic-error.mjs +4 -48
- package/types/logic-error.mjs.map +1 -1
- package/types/network-client.d.ts +10 -39
- package/types/network-client.js +3 -8
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs +4 -8
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +13 -151
- package/types/transaction.d.ts +33 -128
- package/updatable-config.d.ts +57 -0
- package/updatable-config.js +80 -0
- package/updatable-config.js.map +1 -0
- package/updatable-config.mjs +80 -0
- package/updatable-config.mjs.map +1 -0
- package/util.js +1 -1
- package/util.js.map +1 -1
- package/util.mjs +1 -1
- package/util.mjs.map +1 -1
package/types/debugging.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugging.js","names":[],"sources":["../../src/types/debugging.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"debugging.js","names":["_ALGOKIT_DIR","_SOURCES_DIR","_TEAL_FILE_EXT","_TEAL_SOURCEMAP_EXT","_DEFAULT_MAX_SEARCH_DEPTH"],"sources":["../../src/types/debugging.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/debugging'\n\nimport {\n ALGOKIT_DIR as _ALGOKIT_DIR,\n SOURCES_DIR as _SOURCES_DIR,\n TEAL_FILE_EXT as _TEAL_FILE_EXT,\n TEAL_SOURCEMAP_EXT as _TEAL_SOURCEMAP_EXT,\n DEFAULT_MAX_SEARCH_DEPTH as _DEFAULT_MAX_SEARCH_DEPTH,\n type TealSourceDebugEventData as _TealSourceDebugEventData,\n type TealSourcesDebugEventData as _TealSourcesDebugEventData,\n type AVMTracesEventData as _AVMTracesEventData,\n} from '../debugging'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const ALGOKIT_DIR = _ALGOKIT_DIR\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const SOURCES_DIR = _SOURCES_DIR\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const TEAL_FILE_EXT = _TEAL_FILE_EXT\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const TEAL_SOURCEMAP_EXT = _TEAL_SOURCEMAP_EXT\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const DEFAULT_MAX_SEARCH_DEPTH = _DEFAULT_MAX_SEARCH_DEPTH\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport type TealSourceDebugEventData = _TealSourceDebugEventData\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport type TealSourcesDebugEventData = _TealSourcesDebugEventData\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport type AVMTracesEventData = _AVMTracesEventData\n"],"mappings":";;;;AAeA,MAAa,cAAcA;;AAG3B,MAAa,cAAcC;;AAG3B,MAAa,gBAAgBC;;AAG7B,MAAa,qBAAqBC;;AAGlC,MAAa,2BAA2BC"}
|
package/types/debugging.mjs
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { ALGOKIT_DIR as ALGOKIT_DIR$1, DEFAULT_MAX_SEARCH_DEPTH as DEFAULT_MAX_SEARCH_DEPTH$1, SOURCES_DIR as SOURCES_DIR$1, TEAL_FILE_EXT as TEAL_FILE_EXT$1, TEAL_SOURCEMAP_EXT as TEAL_SOURCEMAP_EXT$1 } from "../debugging.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/types/debugging.ts
|
|
2
|
-
/**
|
|
3
|
-
const ALGOKIT_DIR =
|
|
4
|
-
/**
|
|
5
|
-
const SOURCES_DIR =
|
|
6
|
-
/**
|
|
7
|
-
const TEAL_FILE_EXT =
|
|
8
|
-
/**
|
|
9
|
-
const TEAL_SOURCEMAP_EXT =
|
|
10
|
-
/**
|
|
11
|
-
const DEFAULT_MAX_SEARCH_DEPTH =
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */
|
|
5
|
+
const ALGOKIT_DIR = ALGOKIT_DIR$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */
|
|
7
|
+
const SOURCES_DIR = SOURCES_DIR$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */
|
|
9
|
+
const TEAL_FILE_EXT = TEAL_FILE_EXT$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */
|
|
11
|
+
const TEAL_SOURCEMAP_EXT = TEAL_SOURCEMAP_EXT$1;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */
|
|
13
|
+
const DEFAULT_MAX_SEARCH_DEPTH = DEFAULT_MAX_SEARCH_DEPTH$1;
|
|
12
14
|
|
|
13
15
|
//#endregion
|
|
14
16
|
export { ALGOKIT_DIR, DEFAULT_MAX_SEARCH_DEPTH, SOURCES_DIR, TEAL_FILE_EXT, TEAL_SOURCEMAP_EXT };
|
package/types/debugging.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugging.mjs","names":[],"sources":["../../src/types/debugging.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"debugging.mjs","names":["_ALGOKIT_DIR","_SOURCES_DIR","_TEAL_FILE_EXT","_TEAL_SOURCEMAP_EXT","_DEFAULT_MAX_SEARCH_DEPTH"],"sources":["../../src/types/debugging.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/debugging'\n\nimport {\n ALGOKIT_DIR as _ALGOKIT_DIR,\n SOURCES_DIR as _SOURCES_DIR,\n TEAL_FILE_EXT as _TEAL_FILE_EXT,\n TEAL_SOURCEMAP_EXT as _TEAL_SOURCEMAP_EXT,\n DEFAULT_MAX_SEARCH_DEPTH as _DEFAULT_MAX_SEARCH_DEPTH,\n type TealSourceDebugEventData as _TealSourceDebugEventData,\n type TealSourcesDebugEventData as _TealSourcesDebugEventData,\n type AVMTracesEventData as _AVMTracesEventData,\n} from '../debugging'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const ALGOKIT_DIR = _ALGOKIT_DIR\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const SOURCES_DIR = _SOURCES_DIR\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const TEAL_FILE_EXT = _TEAL_FILE_EXT\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const TEAL_SOURCEMAP_EXT = _TEAL_SOURCEMAP_EXT\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport const DEFAULT_MAX_SEARCH_DEPTH = _DEFAULT_MAX_SEARCH_DEPTH\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport type TealSourceDebugEventData = _TealSourceDebugEventData\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport type TealSourcesDebugEventData = _TealSourcesDebugEventData\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/debugging` instead */\nexport type AVMTracesEventData = _AVMTracesEventData\n"],"mappings":";;;;AAeA,MAAa,cAAcA;;AAG3B,MAAa,cAAcC;;AAG3B,MAAa,gBAAgBC;;AAG7B,MAAa,qBAAqBC;;AAGlC,MAAa,2BAA2BC"}
|
|
@@ -1,90 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DispenserFundResponse as DispenserFundResponse$1, DispenserLimitResponse as DispenserLimitResponse$1, TestNetDispenserApiClient as TestNetDispenserApiClient$1, TestNetDispenserApiClientParams as TestNetDispenserApiClientParams$1 } from "../dispenser-client.js";
|
|
2
2
|
|
|
3
3
|
//#region src/types/dispenser-client.d.ts
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
amount: number;
|
|
15
|
-
}
|
|
16
|
-
/** The parameters to construct a TestNet Dispenser API client. */
|
|
17
|
-
interface TestNetDispenserApiClientParams {
|
|
18
|
-
/** The API auth token */
|
|
19
|
-
authToken: string;
|
|
20
|
-
/** The request timeout in seconds */
|
|
21
|
-
requestTimeout?: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* `TestNetDispenserApiClient` is a class that provides methods to interact with the [Algorand TestNet Dispenser API](https://github.com/algorandfoundation/algokit/blob/main/docs/testnet_api.md).
|
|
25
|
-
* It allows you to fund an address with Algo, refund a transaction, and get the funding limit for the Algo asset.
|
|
26
|
-
*
|
|
27
|
-
* The class requires an authentication token and a request timeout to be initialized. The authentication token can be provided
|
|
28
|
-
* either directly as a parameter or through an `ALGOKIT_DISPENSER_ACCESS_TOKEN` environment variable. If neither is provided, an error is thrown.
|
|
29
|
-
*
|
|
30
|
-
* The request timeout can be provided as a parameter. If not provided, a default value is used.
|
|
31
|
-
*
|
|
32
|
-
* @property {string} authToken - The authentication token used for API requests.
|
|
33
|
-
* @property {number} requestTimeout - The timeout for API requests, in seconds.
|
|
34
|
-
*
|
|
35
|
-
* @method fund - Sends a funding request to the dispenser API to fund the specified address with the given amount of Algo.
|
|
36
|
-
* @method refund - Sends a refund request to the dispenser API for the specified refundTxnId.
|
|
37
|
-
* @method limit - Sends a request to the dispenser API to get the funding limit for the Algo asset.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```typescript
|
|
41
|
-
* const client = new TestNetDispenserApiClient({ authToken: 'your_auth_token', requestTimeout: 30 });
|
|
42
|
-
* const fundResponse = await client.fund('your_address', 100);
|
|
43
|
-
* const limitResponse = await client.getLimit();
|
|
44
|
-
* await client.refund('your_transaction_id');
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @throws {Error} If neither the environment variable 'ALGOKIT_DISPENSER_ACCESS_TOKEN' nor the authToken parameter were provided.
|
|
48
|
-
*/
|
|
49
|
-
declare class TestNetDispenserApiClient {
|
|
50
|
-
private _authToken;
|
|
51
|
-
private _requestTimeout;
|
|
52
|
-
constructor(params?: TestNetDispenserApiClientParams);
|
|
53
|
-
get authToken(): string;
|
|
54
|
-
get requestTimeout(): number;
|
|
55
|
-
/**
|
|
56
|
-
* Processes a dispenser API request.
|
|
57
|
-
*
|
|
58
|
-
* @param authToken - The authentication token.
|
|
59
|
-
* @param urlSuffix - The URL suffix for the API request.
|
|
60
|
-
* @param body - The request body.
|
|
61
|
-
* @param method - The HTTP method.
|
|
62
|
-
*
|
|
63
|
-
* @returns The API response.
|
|
64
|
-
*/
|
|
65
|
-
private processDispenserRequest;
|
|
66
|
-
/**
|
|
67
|
-
* Sends a funding request to the dispenser API to fund the specified address with the given amount of Algo.
|
|
68
|
-
*
|
|
69
|
-
* @param address - The address to fund.
|
|
70
|
-
* @param amount - The amount of µAlgo to fund.
|
|
71
|
-
*
|
|
72
|
-
* @returns DispenserFundResponse: An object containing the transaction ID and funded amount.
|
|
73
|
-
*/
|
|
74
|
-
fund(address: string | Address, amount: number | bigint): Promise<DispenserFundResponse>;
|
|
75
|
-
/**
|
|
76
|
-
* Sends a refund request to the dispenser API for the specified refundTxnId.
|
|
77
|
-
*
|
|
78
|
-
* @param refundTxnId - The transaction ID to refund.
|
|
79
|
-
*/
|
|
80
|
-
refund(refundTxnId: string): Promise<void>;
|
|
81
|
-
/**
|
|
82
|
-
* Sends a request to the dispenser API to get the funding limit for the Algo asset.
|
|
83
|
-
*
|
|
84
|
-
* @returns DispenserLimitResponse: An object containing the funding limit amount.
|
|
85
|
-
*/
|
|
86
|
-
getLimit(): Promise<DispenserLimitResponse>;
|
|
87
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
5
|
+
type DispenserFundResponse = DispenserFundResponse$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
7
|
+
type DispenserLimitResponse = DispenserLimitResponse$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
9
|
+
type TestNetDispenserApiClientParams = TestNetDispenserApiClientParams$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
11
|
+
declare const TestNetDispenserApiClient: typeof TestNetDispenserApiClient$1;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
13
|
+
type TestNetDispenserApiClient = TestNetDispenserApiClient$1;
|
|
88
14
|
//#endregion
|
|
89
15
|
export { DispenserFundResponse, DispenserLimitResponse, TestNetDispenserApiClient, TestNetDispenserApiClientParams };
|
|
90
16
|
//# sourceMappingURL=dispenser-client.d.ts.map
|
|
@@ -1,126 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_dispenser_client = require('../dispenser-client.js');
|
|
2
2
|
|
|
3
3
|
//#region src/types/dispenser-client.ts
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const DISPENSER_ACCESS_TOKEN_KEY = "ALGOKIT_DISPENSER_ACCESS_TOKEN";
|
|
7
|
-
var DispenserAssetName = /* @__PURE__ */ function(DispenserAssetName$1) {
|
|
8
|
-
DispenserAssetName$1[DispenserAssetName$1["Algo"] = 0] = "Algo";
|
|
9
|
-
return DispenserAssetName$1;
|
|
10
|
-
}(DispenserAssetName || {});
|
|
11
|
-
const dispenserAssets = { [DispenserAssetName.Algo]: {
|
|
12
|
-
assetId: 0,
|
|
13
|
-
decimals: 6,
|
|
14
|
-
description: "Algo"
|
|
15
|
-
} };
|
|
16
|
-
/**
|
|
17
|
-
* `TestNetDispenserApiClient` is a class that provides methods to interact with the [Algorand TestNet Dispenser API](https://github.com/algorandfoundation/algokit/blob/main/docs/testnet_api.md).
|
|
18
|
-
* It allows you to fund an address with Algo, refund a transaction, and get the funding limit for the Algo asset.
|
|
19
|
-
*
|
|
20
|
-
* The class requires an authentication token and a request timeout to be initialized. The authentication token can be provided
|
|
21
|
-
* either directly as a parameter or through an `ALGOKIT_DISPENSER_ACCESS_TOKEN` environment variable. If neither is provided, an error is thrown.
|
|
22
|
-
*
|
|
23
|
-
* The request timeout can be provided as a parameter. If not provided, a default value is used.
|
|
24
|
-
*
|
|
25
|
-
* @property {string} authToken - The authentication token used for API requests.
|
|
26
|
-
* @property {number} requestTimeout - The timeout for API requests, in seconds.
|
|
27
|
-
*
|
|
28
|
-
* @method fund - Sends a funding request to the dispenser API to fund the specified address with the given amount of Algo.
|
|
29
|
-
* @method refund - Sends a refund request to the dispenser API for the specified refundTxnId.
|
|
30
|
-
* @method limit - Sends a request to the dispenser API to get the funding limit for the Algo asset.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```typescript
|
|
34
|
-
* const client = new TestNetDispenserApiClient({ authToken: 'your_auth_token', requestTimeout: 30 });
|
|
35
|
-
* const fundResponse = await client.fund('your_address', 100);
|
|
36
|
-
* const limitResponse = await client.getLimit();
|
|
37
|
-
* await client.refund('your_transaction_id');
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @throws {Error} If neither the environment variable 'ALGOKIT_DISPENSER_ACCESS_TOKEN' nor the authToken parameter were provided.
|
|
41
|
-
*/
|
|
42
|
-
var TestNetDispenserApiClient = class {
|
|
43
|
-
_authToken;
|
|
44
|
-
_requestTimeout;
|
|
45
|
-
constructor(params) {
|
|
46
|
-
const authTokenFromEnv = process?.env?.[DISPENSER_ACCESS_TOKEN_KEY];
|
|
47
|
-
if (params?.authToken) this._authToken = params.authToken;
|
|
48
|
-
else if (authTokenFromEnv) this._authToken = authTokenFromEnv;
|
|
49
|
-
else throw new Error(`Can't init AlgoKit TestNet Dispenser API client because neither environment variable ${DISPENSER_ACCESS_TOKEN_KEY} or the authToken were provided.`);
|
|
50
|
-
this._requestTimeout = params?.requestTimeout || DEFAULT_DISPENSER_REQUEST_TIMEOUT;
|
|
51
|
-
}
|
|
52
|
-
get authToken() {
|
|
53
|
-
return this._authToken;
|
|
54
|
-
}
|
|
55
|
-
get requestTimeout() {
|
|
56
|
-
return this._requestTimeout;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Processes a dispenser API request.
|
|
60
|
-
*
|
|
61
|
-
* @param authToken - The authentication token.
|
|
62
|
-
* @param urlSuffix - The URL suffix for the API request.
|
|
63
|
-
* @param body - The request body.
|
|
64
|
-
* @param method - The HTTP method.
|
|
65
|
-
*
|
|
66
|
-
* @returns The API response.
|
|
67
|
-
*/
|
|
68
|
-
async processDispenserRequest(authToken, urlSuffix, body = null, method = "POST") {
|
|
69
|
-
const requestArgs = {
|
|
70
|
-
method,
|
|
71
|
-
headers: { Authorization: `Bearer ${authToken}` },
|
|
72
|
-
signal: AbortSignal.timeout(this.requestTimeout * 1e3)
|
|
73
|
-
};
|
|
74
|
-
if (body) requestArgs.body = require_util.asJson(body);
|
|
75
|
-
const response = await fetch(`${DISPENSER_BASE_URL}/${urlSuffix}`, requestArgs);
|
|
76
|
-
if (!response.ok) {
|
|
77
|
-
let error_message = `Error processing dispenser API request: ${response.status}`;
|
|
78
|
-
let error_response = null;
|
|
79
|
-
try {
|
|
80
|
-
error_response = await response.json();
|
|
81
|
-
} catch {}
|
|
82
|
-
if (error_response && error_response.code) error_message = error_response.code;
|
|
83
|
-
else if (response.status === 400) error_message = (await response.json()).message;
|
|
84
|
-
throw new Error(error_message);
|
|
85
|
-
}
|
|
86
|
-
return response;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Sends a funding request to the dispenser API to fund the specified address with the given amount of Algo.
|
|
90
|
-
*
|
|
91
|
-
* @param address - The address to fund.
|
|
92
|
-
* @param amount - The amount of µAlgo to fund.
|
|
93
|
-
*
|
|
94
|
-
* @returns DispenserFundResponse: An object containing the transaction ID and funded amount.
|
|
95
|
-
*/
|
|
96
|
-
async fund(address, amount) {
|
|
97
|
-
const content = await (await this.processDispenserRequest(this.authToken, `fund/${dispenserAssets[DispenserAssetName.Algo].assetId}`, {
|
|
98
|
-
receiver: typeof address === "string" ? address : address.toString(),
|
|
99
|
-
amount: Number(amount),
|
|
100
|
-
assetID: dispenserAssets[DispenserAssetName.Algo].assetId
|
|
101
|
-
}, "POST")).json();
|
|
102
|
-
return {
|
|
103
|
-
txId: content.txID,
|
|
104
|
-
amount: content.amount
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Sends a refund request to the dispenser API for the specified refundTxnId.
|
|
109
|
-
*
|
|
110
|
-
* @param refundTxnId - The transaction ID to refund.
|
|
111
|
-
*/
|
|
112
|
-
async refund(refundTxnId) {
|
|
113
|
-
await this.processDispenserRequest(this.authToken, "refund", { refundTransactionID: refundTxnId }, "POST");
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Sends a request to the dispenser API to get the funding limit for the Algo asset.
|
|
117
|
-
*
|
|
118
|
-
* @returns DispenserLimitResponse: An object containing the funding limit amount.
|
|
119
|
-
*/
|
|
120
|
-
async getLimit() {
|
|
121
|
-
return { amount: (await (await this.processDispenserRequest(this.authToken, `fund/${dispenserAssets[DispenserAssetName.Algo].assetId}/limit`, null, "GET")).json()).amount };
|
|
122
|
-
}
|
|
123
|
-
};
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
5
|
+
const TestNetDispenserApiClient = require_dispenser_client.TestNetDispenserApiClient;
|
|
124
6
|
|
|
125
7
|
//#endregion
|
|
126
8
|
exports.TestNetDispenserApiClient = TestNetDispenserApiClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispenser-client.js","names":["
|
|
1
|
+
{"version":3,"file":"dispenser-client.js","names":["_TestNetDispenserApiClient"],"sources":["../../src/types/dispenser-client.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/dispenser-client'\n\nimport {\n type DispenserFundResponse as _DispenserFundResponse,\n type DispenserLimitResponse as _DispenserLimitResponse,\n type TestNetDispenserApiClientParams as _TestNetDispenserApiClientParams,\n TestNetDispenserApiClient as _TestNetDispenserApiClient,\n} from '../dispenser-client'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type DispenserFundResponse = _DispenserFundResponse\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type DispenserLimitResponse = _DispenserLimitResponse\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type TestNetDispenserApiClientParams = _TestNetDispenserApiClientParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport const TestNetDispenserApiClient = _TestNetDispenserApiClient\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type TestNetDispenserApiClient = _TestNetDispenserApiClient\n"],"mappings":";;;;AAoBA,MAAa,4BAA4BA"}
|
|
@@ -1,126 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TestNetDispenserApiClient as TestNetDispenserApiClient$1 } from "../dispenser-client.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/types/dispenser-client.ts
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const DISPENSER_ACCESS_TOKEN_KEY = "ALGOKIT_DISPENSER_ACCESS_TOKEN";
|
|
7
|
-
var DispenserAssetName = /* @__PURE__ */ function(DispenserAssetName$1) {
|
|
8
|
-
DispenserAssetName$1[DispenserAssetName$1["Algo"] = 0] = "Algo";
|
|
9
|
-
return DispenserAssetName$1;
|
|
10
|
-
}(DispenserAssetName || {});
|
|
11
|
-
const dispenserAssets = { [DispenserAssetName.Algo]: {
|
|
12
|
-
assetId: 0,
|
|
13
|
-
decimals: 6,
|
|
14
|
-
description: "Algo"
|
|
15
|
-
} };
|
|
16
|
-
/**
|
|
17
|
-
* `TestNetDispenserApiClient` is a class that provides methods to interact with the [Algorand TestNet Dispenser API](https://github.com/algorandfoundation/algokit/blob/main/docs/testnet_api.md).
|
|
18
|
-
* It allows you to fund an address with Algo, refund a transaction, and get the funding limit for the Algo asset.
|
|
19
|
-
*
|
|
20
|
-
* The class requires an authentication token and a request timeout to be initialized. The authentication token can be provided
|
|
21
|
-
* either directly as a parameter or through an `ALGOKIT_DISPENSER_ACCESS_TOKEN` environment variable. If neither is provided, an error is thrown.
|
|
22
|
-
*
|
|
23
|
-
* The request timeout can be provided as a parameter. If not provided, a default value is used.
|
|
24
|
-
*
|
|
25
|
-
* @property {string} authToken - The authentication token used for API requests.
|
|
26
|
-
* @property {number} requestTimeout - The timeout for API requests, in seconds.
|
|
27
|
-
*
|
|
28
|
-
* @method fund - Sends a funding request to the dispenser API to fund the specified address with the given amount of Algo.
|
|
29
|
-
* @method refund - Sends a refund request to the dispenser API for the specified refundTxnId.
|
|
30
|
-
* @method limit - Sends a request to the dispenser API to get the funding limit for the Algo asset.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```typescript
|
|
34
|
-
* const client = new TestNetDispenserApiClient({ authToken: 'your_auth_token', requestTimeout: 30 });
|
|
35
|
-
* const fundResponse = await client.fund('your_address', 100);
|
|
36
|
-
* const limitResponse = await client.getLimit();
|
|
37
|
-
* await client.refund('your_transaction_id');
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @throws {Error} If neither the environment variable 'ALGOKIT_DISPENSER_ACCESS_TOKEN' nor the authToken parameter were provided.
|
|
41
|
-
*/
|
|
42
|
-
var TestNetDispenserApiClient = class {
|
|
43
|
-
_authToken;
|
|
44
|
-
_requestTimeout;
|
|
45
|
-
constructor(params) {
|
|
46
|
-
const authTokenFromEnv = process?.env?.[DISPENSER_ACCESS_TOKEN_KEY];
|
|
47
|
-
if (params?.authToken) this._authToken = params.authToken;
|
|
48
|
-
else if (authTokenFromEnv) this._authToken = authTokenFromEnv;
|
|
49
|
-
else throw new Error(`Can't init AlgoKit TestNet Dispenser API client because neither environment variable ${DISPENSER_ACCESS_TOKEN_KEY} or the authToken were provided.`);
|
|
50
|
-
this._requestTimeout = params?.requestTimeout || DEFAULT_DISPENSER_REQUEST_TIMEOUT;
|
|
51
|
-
}
|
|
52
|
-
get authToken() {
|
|
53
|
-
return this._authToken;
|
|
54
|
-
}
|
|
55
|
-
get requestTimeout() {
|
|
56
|
-
return this._requestTimeout;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Processes a dispenser API request.
|
|
60
|
-
*
|
|
61
|
-
* @param authToken - The authentication token.
|
|
62
|
-
* @param urlSuffix - The URL suffix for the API request.
|
|
63
|
-
* @param body - The request body.
|
|
64
|
-
* @param method - The HTTP method.
|
|
65
|
-
*
|
|
66
|
-
* @returns The API response.
|
|
67
|
-
*/
|
|
68
|
-
async processDispenserRequest(authToken, urlSuffix, body = null, method = "POST") {
|
|
69
|
-
const requestArgs = {
|
|
70
|
-
method,
|
|
71
|
-
headers: { Authorization: `Bearer ${authToken}` },
|
|
72
|
-
signal: AbortSignal.timeout(this.requestTimeout * 1e3)
|
|
73
|
-
};
|
|
74
|
-
if (body) requestArgs.body = asJson(body);
|
|
75
|
-
const response = await fetch(`${DISPENSER_BASE_URL}/${urlSuffix}`, requestArgs);
|
|
76
|
-
if (!response.ok) {
|
|
77
|
-
let error_message = `Error processing dispenser API request: ${response.status}`;
|
|
78
|
-
let error_response = null;
|
|
79
|
-
try {
|
|
80
|
-
error_response = await response.json();
|
|
81
|
-
} catch {}
|
|
82
|
-
if (error_response && error_response.code) error_message = error_response.code;
|
|
83
|
-
else if (response.status === 400) error_message = (await response.json()).message;
|
|
84
|
-
throw new Error(error_message);
|
|
85
|
-
}
|
|
86
|
-
return response;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Sends a funding request to the dispenser API to fund the specified address with the given amount of Algo.
|
|
90
|
-
*
|
|
91
|
-
* @param address - The address to fund.
|
|
92
|
-
* @param amount - The amount of µAlgo to fund.
|
|
93
|
-
*
|
|
94
|
-
* @returns DispenserFundResponse: An object containing the transaction ID and funded amount.
|
|
95
|
-
*/
|
|
96
|
-
async fund(address, amount) {
|
|
97
|
-
const content = await (await this.processDispenserRequest(this.authToken, `fund/${dispenserAssets[DispenserAssetName.Algo].assetId}`, {
|
|
98
|
-
receiver: typeof address === "string" ? address : address.toString(),
|
|
99
|
-
amount: Number(amount),
|
|
100
|
-
assetID: dispenserAssets[DispenserAssetName.Algo].assetId
|
|
101
|
-
}, "POST")).json();
|
|
102
|
-
return {
|
|
103
|
-
txId: content.txID,
|
|
104
|
-
amount: content.amount
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Sends a refund request to the dispenser API for the specified refundTxnId.
|
|
109
|
-
*
|
|
110
|
-
* @param refundTxnId - The transaction ID to refund.
|
|
111
|
-
*/
|
|
112
|
-
async refund(refundTxnId) {
|
|
113
|
-
await this.processDispenserRequest(this.authToken, "refund", { refundTransactionID: refundTxnId }, "POST");
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Sends a request to the dispenser API to get the funding limit for the Algo asset.
|
|
117
|
-
*
|
|
118
|
-
* @returns DispenserLimitResponse: An object containing the funding limit amount.
|
|
119
|
-
*/
|
|
120
|
-
async getLimit() {
|
|
121
|
-
return { amount: (await (await this.processDispenserRequest(this.authToken, `fund/${dispenserAssets[DispenserAssetName.Algo].assetId}/limit`, null, "GET")).json()).amount };
|
|
122
|
-
}
|
|
123
|
-
};
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */
|
|
5
|
+
const TestNetDispenserApiClient = TestNetDispenserApiClient$1;
|
|
124
6
|
|
|
125
7
|
//#endregion
|
|
126
8
|
export { TestNetDispenserApiClient };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispenser-client.mjs","names":["
|
|
1
|
+
{"version":3,"file":"dispenser-client.mjs","names":["_TestNetDispenserApiClient"],"sources":["../../src/types/dispenser-client.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/dispenser-client'\n\nimport {\n type DispenserFundResponse as _DispenserFundResponse,\n type DispenserLimitResponse as _DispenserLimitResponse,\n type TestNetDispenserApiClientParams as _TestNetDispenserApiClientParams,\n TestNetDispenserApiClient as _TestNetDispenserApiClient,\n} from '../dispenser-client'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type DispenserFundResponse = _DispenserFundResponse\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type DispenserLimitResponse = _DispenserLimitResponse\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type TestNetDispenserApiClientParams = _TestNetDispenserApiClientParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport const TestNetDispenserApiClient = _TestNetDispenserApiClient\n/** @deprecated Import from `@algorandfoundation/algokit-utils/dispenser-client` instead */\nexport type TestNetDispenserApiClient = _TestNetDispenserApiClient\n"],"mappings":";;;;AAoBA,MAAa,4BAA4BA"}
|
package/types/expand.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { Expand } from "../packages/common/src/expand.js";
|
|
2
|
-
|
|
1
|
+
import { Expand as Expand$1 } from "../packages/common/src/expand.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/expand.d.ts
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/expand` instead */
|
|
5
|
+
type Expand<T> = Expand$1<T>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Expand };
|
|
8
|
+
//# sourceMappingURL=expand.d.ts.map
|
package/types/indexer.d.ts
CHANGED
|
@@ -1,40 +1,20 @@
|
|
|
1
|
+
import { AccountStatus as AccountStatus$1, ApplicationOnComplete as ApplicationOnComplete$1, LookupAssetHoldingsOptions as LookupAssetHoldingsOptions$1, SignatureType as SignatureType$1 } from "../indexer.js";
|
|
2
|
+
|
|
1
3
|
//#region src/types/indexer.d.ts
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
clear = "clear",
|
|
17
|
-
update = "update",
|
|
18
|
-
delete = "delete",
|
|
19
|
-
}
|
|
20
|
-
/** Type of signature used by an account */
|
|
21
|
-
declare enum SignatureType {
|
|
22
|
-
/** Normal signature */
|
|
23
|
-
sig = "sig",
|
|
24
|
-
/** Multisig */
|
|
25
|
-
msig = "msig",
|
|
26
|
-
/** Logic signature */
|
|
27
|
-
lsig = "lsig",
|
|
28
|
-
}
|
|
29
|
-
/** Delegation status of the account */
|
|
30
|
-
declare enum AccountStatus {
|
|
31
|
-
/** Indicates that the associated account is delegated */
|
|
32
|
-
Offline = "Offline",
|
|
33
|
-
/** Indicates that the associated account used as part of the delegation pool */
|
|
34
|
-
Online = "Online",
|
|
35
|
-
/** Indicates that the associated account is neither a delegator nor a delegate */
|
|
36
|
-
NotParticipating = "NotParticipating",
|
|
37
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
5
|
+
type LookupAssetHoldingsOptions = LookupAssetHoldingsOptions$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
7
|
+
declare const ApplicationOnComplete: typeof ApplicationOnComplete$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
9
|
+
type ApplicationOnComplete = ApplicationOnComplete$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
11
|
+
declare const SignatureType: typeof SignatureType$1;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
13
|
+
type SignatureType = SignatureType$1;
|
|
14
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
15
|
+
declare const AccountStatus: typeof AccountStatus$1;
|
|
16
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
17
|
+
type AccountStatus = AccountStatus$1;
|
|
38
18
|
//#endregion
|
|
39
19
|
export { AccountStatus, ApplicationOnComplete, LookupAssetHoldingsOptions, SignatureType };
|
|
40
20
|
//# sourceMappingURL=indexer.d.ts.map
|
package/types/indexer.js
CHANGED
|
@@ -1,35 +1,12 @@
|
|
|
1
|
+
const require_indexer = require('../indexer.js');
|
|
1
2
|
|
|
2
3
|
//#region src/types/indexer.ts
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ApplicationOnComplete$1["update"] = "update";
|
|
10
|
-
ApplicationOnComplete$1["delete"] = "delete";
|
|
11
|
-
return ApplicationOnComplete$1;
|
|
12
|
-
}({});
|
|
13
|
-
/** Type of signature used by an account */
|
|
14
|
-
let SignatureType = /* @__PURE__ */ function(SignatureType$1) {
|
|
15
|
-
/** Normal signature */
|
|
16
|
-
SignatureType$1["sig"] = "sig";
|
|
17
|
-
/** Multisig */
|
|
18
|
-
SignatureType$1["msig"] = "msig";
|
|
19
|
-
/** Logic signature */
|
|
20
|
-
SignatureType$1["lsig"] = "lsig";
|
|
21
|
-
return SignatureType$1;
|
|
22
|
-
}({});
|
|
23
|
-
/** Delegation status of the account */
|
|
24
|
-
let AccountStatus = /* @__PURE__ */ function(AccountStatus$1) {
|
|
25
|
-
/** Indicates that the associated account is delegated */
|
|
26
|
-
AccountStatus$1["Offline"] = "Offline";
|
|
27
|
-
/** Indicates that the associated account used as part of the delegation pool */
|
|
28
|
-
AccountStatus$1["Online"] = "Online";
|
|
29
|
-
/** Indicates that the associated account is neither a delegator nor a delegate */
|
|
30
|
-
AccountStatus$1["NotParticipating"] = "NotParticipating";
|
|
31
|
-
return AccountStatus$1;
|
|
32
|
-
}({});
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
5
|
+
const ApplicationOnComplete = require_indexer.ApplicationOnComplete;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
7
|
+
const SignatureType = require_indexer.SignatureType;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */
|
|
9
|
+
const AccountStatus = require_indexer.AccountStatus;
|
|
33
10
|
|
|
34
11
|
//#endregion
|
|
35
12
|
exports.AccountStatus = AccountStatus;
|
package/types/indexer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexer.js","names":[],"sources":["../../src/types/indexer.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"indexer.js","names":["_ApplicationOnComplete","_SignatureType","_AccountStatus"],"sources":["../../src/types/indexer.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/indexer'\n\nimport {\n type LookupAssetHoldingsOptions as _LookupAssetHoldingsOptions,\n ApplicationOnComplete as _ApplicationOnComplete,\n SignatureType as _SignatureType,\n AccountStatus as _AccountStatus,\n} from '../indexer'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport type LookupAssetHoldingsOptions = _LookupAssetHoldingsOptions\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport const ApplicationOnComplete = _ApplicationOnComplete\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport type ApplicationOnComplete = _ApplicationOnComplete\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport const SignatureType = _SignatureType\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport type SignatureType = _SignatureType\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport const AccountStatus = _AccountStatus\n/** @deprecated Import from `@algorandfoundation/algokit-utils/indexer` instead */\nexport type AccountStatus = _AccountStatus\n"],"mappings":";;;;AAcA,MAAa,wBAAwBA;;AAKrC,MAAa,gBAAgBC;;AAK7B,MAAa,gBAAgBC"}
|