@algorandfoundation/algokit-utils 9.2.1 → 9.2.2
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/account.d.ts +28 -23
- package/account/get-account-config-from-environment.d.ts +2 -7
- package/account/get-account.d.ts +12 -14
- package/account/get-dispenser-account.d.ts +5 -9
- package/account/index.d.ts +5 -0
- package/account/mnemonic-account.d.ts +3 -7
- package/amount.d.ts +35 -40
- package/app-client.d.ts +6 -10
- package/app-deploy.d.ts +23 -25
- package/app.d.ts +46 -45
- package/asset.d.ts +12 -16
- package/config.d.ts +2 -7
- package/debugging/debugging.d.ts +1 -5
- package/debugging/index.d.ts +1 -0
- package/dispenser-client.d.ts +2 -7
- package/index.d.ts +18 -27
- package/indexer-lookup.d.ts +11 -18
- package/localnet/get-kmd-wallet-account.d.ts +7 -9
- package/localnet/get-localnet-dispenser-account.d.ts +5 -7
- package/localnet/get-or-create-kmd-wallet-account.d.ts +8 -10
- package/localnet/index.d.ts +4 -0
- package/localnet/is-localnet.d.ts +3 -7
- package/network-client.d.ts +15 -17
- package/package.json +1 -1
- package/testing/_asset.d.ts +3 -0
- package/testing/account.d.ts +9 -11
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +2 -7
- package/testing/fixtures/algorand-fixture.d.ts +4 -9
- package/testing/fixtures/index.d.ts +2 -0
- package/testing/index.d.ts +5 -7
- package/testing/indexer.d.ts +1 -5
- package/testing/test-logger.d.ts +36 -41
- package/testing/transaction-logger.d.ts +27 -30
- package/transaction/index.d.ts +2 -0
- package/transaction/legacy-bridge.d.ts +35 -0
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts +5 -7
- package/transaction/resolve-signed-transactions.d.ts +16 -0
- package/transaction/transaction.d.ts +35 -34
- package/transfer/index.d.ts +2 -0
- package/transfer/transfer-algos.d.ts +5 -9
- package/transfer/transfer.d.ts +8 -11
- package/types/account-manager.d.ts +429 -432
- package/types/account.d.ts +202 -192
- package/types/algo-http-client-with-retry.d.ts +10 -15
- package/types/algorand-client-transaction-creator.d.ts +771 -778
- package/types/algorand-client-transaction-sender.d.ts +1085 -1090
- package/types/algorand-client.d.ts +236 -239
- package/types/amount.d.ts +43 -47
- package/types/app-arc56.d.ts +272 -235
- package/types/app-client.d.ts +1151 -1128
- package/types/app-deployer.d.ts +141 -139
- package/types/app-factory.d.ts +783 -762
- package/types/app-manager.d.ts +310 -304
- package/types/app-spec.d.ts +117 -118
- package/types/app.d.ts +241 -229
- package/types/asset-manager.d.ts +199 -204
- package/types/asset.d.ts +91 -95
- package/types/async-event-emitter.d.ts +13 -18
- package/types/client-manager.d.ts +451 -453
- package/types/composer.d.ts +1257 -1210
- package/types/config.d.ts +48 -53
- package/types/debugging.d.ts +23 -25
- package/types/dispenser-client.d.ts +52 -57
- package/types/expand.d.ts +3 -5
- package/types/indexer.d.ts +66 -70
- package/types/instance-of.d.ts +3 -5
- package/types/kmd-account-manager.d.ts +70 -75
- package/types/lifecycle-events.d.ts +8 -13
- package/types/logging.d.ts +11 -15
- package/types/logic-error.d.ts +29 -33
- package/types/network-client.d.ts +27 -32
- package/types/testing.d.ts +132 -131
- package/types/transaction.d.ts +110 -110
- package/types/transfer.d.ts +66 -70
- package/util.d.ts +48 -0
package/app.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallParams, AppCallTransactionResult, AppCallType, AppCompilationResult, AppReference, AppState, BoxIdentifier, BoxName, BoxReference, BoxValueRequestParams, BoxValuesRequestParams, CompiledTeal, CreateAppParams, RawAppCallArgs, UpdateAppParams } from './types/app';
|
|
3
|
+
import { SendTransactionFrom } from './types/transaction';
|
|
4
|
+
import ABIMethod = algosdk.ABIMethod;
|
|
5
|
+
import ABIMethodParams = algosdk.ABIMethodParams;
|
|
6
|
+
import ABIValue = algosdk.ABIValue;
|
|
7
|
+
import Algodv2 = algosdk.Algodv2;
|
|
8
|
+
import modelsv2 = algosdk.modelsv2;
|
|
9
|
+
import OnApplicationComplete = algosdk.OnApplicationComplete;
|
|
6
10
|
/**
|
|
7
11
|
* @deprecated Use `algorand.send.appCreate()` / `algorand.createTransaction.appCreate()` / `algorand.send.appCreateMethodCall()`
|
|
8
12
|
* / `algorand.createTransaction.appCreateMethodCall()` instead
|
|
@@ -12,7 +16,7 @@ import algosdk from "algosdk";
|
|
|
12
16
|
* @param algod An algod client
|
|
13
17
|
* @returns The details of the created app, or the transaction to create it if `skipSending` and the compilation result
|
|
14
18
|
*/
|
|
15
|
-
declare function createApp(create: CreateAppParams, algod: Algodv2): Promise<Partial<AppCompilationResult> & AppCallTransactionResult & AppReference>;
|
|
19
|
+
export declare function createApp(create: CreateAppParams, algod: Algodv2): Promise<Partial<AppCompilationResult> & AppCallTransactionResult & AppReference>;
|
|
16
20
|
/**
|
|
17
21
|
* @deprecated Use `algorand.send.appUpdate()` / `algorand.createTransaction.appUpdate()` / `algorand.send.appUpdateMethodCall()`
|
|
18
22
|
* / `algorand.createTransaction.appUpdateMethodCall()` instead
|
|
@@ -22,7 +26,7 @@ declare function createApp(create: CreateAppParams, algod: Algodv2): Promise<Par
|
|
|
22
26
|
* @param algod An algod client
|
|
23
27
|
* @returns The transaction send result and the compilation result
|
|
24
28
|
*/
|
|
25
|
-
declare function updateApp(update: UpdateAppParams, algod: Algodv2): Promise<Partial<AppCompilationResult> & AppCallTransactionResult>;
|
|
29
|
+
export declare function updateApp(update: UpdateAppParams, algod: Algodv2): Promise<Partial<AppCompilationResult> & AppCallTransactionResult>;
|
|
26
30
|
/**
|
|
27
31
|
* @deprecated Use `algosdk.OnApplicationComplete` directly instead.
|
|
28
32
|
*
|
|
@@ -35,7 +39,7 @@ declare function updateApp(update: UpdateAppParams, algod: Algodv2): Promise<Par
|
|
|
35
39
|
* @param onCompletionAction The on completion action
|
|
36
40
|
* @returns The `algosdk.OnApplicationComplete`
|
|
37
41
|
*/
|
|
38
|
-
declare function getAppOnCompleteAction(onCompletionAction?: AppCallType | OnApplicationComplete): algosdk.OnApplicationComplete;
|
|
42
|
+
export declare function getAppOnCompleteAction(onCompletionAction?: AppCallType | OnApplicationComplete): algosdk.OnApplicationComplete;
|
|
39
43
|
/**
|
|
40
44
|
* @deprecated Use `algorand.send.appUpdate()` / `algorand.createTransaction.appUpdate()` / `algorand.send.appUpdateMethodCall()`
|
|
41
45
|
* / `algorand.createTransaction.appUpdateMethodCall()` instead
|
|
@@ -45,7 +49,7 @@ declare function getAppOnCompleteAction(onCompletionAction?: AppCallType | OnApp
|
|
|
45
49
|
* @param algod An algod client
|
|
46
50
|
* @returns The result of the call
|
|
47
51
|
*/
|
|
48
|
-
declare function callApp(call: AppCallParams, algod: Algodv2): Promise<AppCallTransactionResult>;
|
|
52
|
+
export declare function callApp(call: AppCallParams, algod: Algodv2): Promise<AppCallTransactionResult>;
|
|
49
53
|
/**
|
|
50
54
|
* @deprecated Use `AppManager.getABIReturn` instead.
|
|
51
55
|
*
|
|
@@ -54,7 +58,7 @@ declare function callApp(call: AppCallParams, algod: Algodv2): Promise<AppCallTr
|
|
|
54
58
|
* @param confirmation The transaction confirmation from algod
|
|
55
59
|
* @returns The return value for the method call
|
|
56
60
|
*/
|
|
57
|
-
declare function getABIReturn(args?: AppCallArgs, confirmation?: modelsv2.PendingTransactionResponse): ABIReturn | undefined;
|
|
61
|
+
export declare function getABIReturn(args?: AppCallArgs, confirmation?: modelsv2.PendingTransactionResponse): ABIReturn | undefined;
|
|
58
62
|
/**
|
|
59
63
|
* @deprecated Use `algorand.app.getGlobalState` instead.
|
|
60
64
|
*
|
|
@@ -63,7 +67,7 @@ declare function getABIReturn(args?: AppCallArgs, confirmation?: modelsv2.Pendin
|
|
|
63
67
|
* @param algod An algod client instance
|
|
64
68
|
* @returns The current global state
|
|
65
69
|
*/
|
|
66
|
-
declare function getAppGlobalState(appId: number | bigint, algod: Algodv2): Promise<AppState>;
|
|
70
|
+
export declare function getAppGlobalState(appId: number | bigint, algod: Algodv2): Promise<AppState>;
|
|
67
71
|
/**
|
|
68
72
|
* @deprecated Use `algorand.app.getLocalState` instead.
|
|
69
73
|
*
|
|
@@ -73,7 +77,7 @@ declare function getAppGlobalState(appId: number | bigint, algod: Algodv2): Prom
|
|
|
73
77
|
* @param algod An algod client instance
|
|
74
78
|
* @returns The current local state for the given (app, account) combination
|
|
75
79
|
*/
|
|
76
|
-
declare function getAppLocalState(appId: number | bigint, account: string | SendTransactionFrom, algod: Algodv2): Promise<AppState>;
|
|
80
|
+
export declare function getAppLocalState(appId: number | bigint, account: string | SendTransactionFrom, algod: Algodv2): Promise<AppState>;
|
|
77
81
|
/**
|
|
78
82
|
* @deprecated Use `algorand.app.getBoxNames` instead.
|
|
79
83
|
* Returns the names of the boxes for the given app.
|
|
@@ -81,7 +85,7 @@ declare function getAppLocalState(appId: number | bigint, account: string | Send
|
|
|
81
85
|
* @param algod An algod client instance
|
|
82
86
|
* @returns The current box names
|
|
83
87
|
*/
|
|
84
|
-
declare function getAppBoxNames(appId: number | bigint, algod: Algodv2): Promise<BoxName[]>;
|
|
88
|
+
export declare function getAppBoxNames(appId: number | bigint, algod: Algodv2): Promise<BoxName[]>;
|
|
85
89
|
/**
|
|
86
90
|
* @deprecated Use `algorand.app.getBoxValue` instead.
|
|
87
91
|
* Returns the value of the given box name for the given app.
|
|
@@ -90,7 +94,7 @@ declare function getAppBoxNames(appId: number | bigint, algod: Algodv2): Promise
|
|
|
90
94
|
* @param algod An algod client instance
|
|
91
95
|
* @returns The current box value as a byte array
|
|
92
96
|
*/
|
|
93
|
-
declare function getAppBoxValue(appId: number | bigint, boxName: string | Uint8Array | BoxName, algod: Algodv2): Promise<Uint8Array>;
|
|
97
|
+
export declare function getAppBoxValue(appId: number | bigint, boxName: string | Uint8Array | BoxName, algod: Algodv2): Promise<Uint8Array>;
|
|
94
98
|
/**
|
|
95
99
|
* @deprecated Use `algorand.app.getBoxValues` instead.
|
|
96
100
|
* Returns the value of the given box names for the given app.
|
|
@@ -99,7 +103,7 @@ declare function getAppBoxValue(appId: number | bigint, boxName: string | Uint8A
|
|
|
99
103
|
* @param algod An algod client instance
|
|
100
104
|
* @returns The current box values as a byte array in the same order as the passed in box names
|
|
101
105
|
*/
|
|
102
|
-
declare function getAppBoxValues(appId: number, boxNames: (string | Uint8Array | BoxName)[], algod: Algodv2): Promise<Uint8Array[]>;
|
|
106
|
+
export declare function getAppBoxValues(appId: number, boxNames: (string | Uint8Array | BoxName)[], algod: Algodv2): Promise<Uint8Array[]>;
|
|
103
107
|
/**
|
|
104
108
|
* @deprecated Use `algorand.app.getBoxValueFromABIType` instead.
|
|
105
109
|
* Returns the value of the given box name for the given app decoded based on the given ABI type.
|
|
@@ -107,7 +111,7 @@ declare function getAppBoxValues(appId: number, boxNames: (string | Uint8Array |
|
|
|
107
111
|
* @param algod An algod client instance
|
|
108
112
|
* @returns The current box value as an ABI value
|
|
109
113
|
*/
|
|
110
|
-
declare function getAppBoxValueFromABIType(request: BoxValueRequestParams, algod: Algodv2): Promise<ABIValue>;
|
|
114
|
+
export declare function getAppBoxValueFromABIType(request: BoxValueRequestParams, algod: Algodv2): Promise<ABIValue>;
|
|
111
115
|
/**
|
|
112
116
|
* @deprecated Use `algorand.app.getBoxValuesFromABIType` instead.
|
|
113
117
|
* Returns the value of the given box names for the given app decoded based on the given ABI type.
|
|
@@ -115,7 +119,7 @@ declare function getAppBoxValueFromABIType(request: BoxValueRequestParams, algod
|
|
|
115
119
|
* @param algod An algod client instance
|
|
116
120
|
* @returns The current box values as an ABI value in the same order as the passed in box names
|
|
117
121
|
*/
|
|
118
|
-
declare function getAppBoxValuesFromABIType(request: BoxValuesRequestParams, algod: Algodv2): Promise<ABIValue[]>;
|
|
122
|
+
export declare function getAppBoxValuesFromABIType(request: BoxValuesRequestParams, algod: Algodv2): Promise<ABIValue[]>;
|
|
119
123
|
/**
|
|
120
124
|
* @deprecated Use `AppManager.decodeAppState` instead.
|
|
121
125
|
*
|
|
@@ -124,9 +128,9 @@ declare function getAppBoxValuesFromABIType(request: BoxValuesRequestParams, alg
|
|
|
124
128
|
* @param state A `global-state`, `local-state`, `global-state-deltas` or `local-state-deltas`
|
|
125
129
|
* @returns An object keyeed by the UTF-8 representation of the key with various parsings of the values
|
|
126
130
|
*/
|
|
127
|
-
declare function decodeAppState(state: {
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
export declare function decodeAppState(state: {
|
|
132
|
+
key: string;
|
|
133
|
+
value: modelsv2.TealValue | modelsv2.EvalDelta;
|
|
130
134
|
}[]): AppState;
|
|
131
135
|
/**
|
|
132
136
|
* @deprecated Use `TransactionComposer` methods to construct transactions instead.
|
|
@@ -135,13 +139,13 @@ declare function decodeAppState(state: {
|
|
|
135
139
|
* @param args The app call args
|
|
136
140
|
* @returns The args ready to load into a `Transaction`
|
|
137
141
|
*/
|
|
138
|
-
declare function getAppArgsForTransaction(args?: RawAppCallArgs): {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
export declare function getAppArgsForTransaction(args?: RawAppCallArgs): {
|
|
143
|
+
accounts: string[] | undefined;
|
|
144
|
+
appArgs: Uint8Array<ArrayBufferLike>[] | undefined;
|
|
145
|
+
boxes: algosdk.BoxReference[] | undefined;
|
|
146
|
+
foreignApps: number[] | undefined;
|
|
147
|
+
foreignAssets: number[] | undefined;
|
|
148
|
+
lease: Uint8Array<ArrayBufferLike> | undefined;
|
|
145
149
|
} | undefined;
|
|
146
150
|
/**
|
|
147
151
|
* @deprecated Use `TransactionComposer` methods to construct transactions instead.
|
|
@@ -151,17 +155,17 @@ declare function getAppArgsForTransaction(args?: RawAppCallArgs): {
|
|
|
151
155
|
* @param from The transaction signer
|
|
152
156
|
* @returns The parameters ready to pass into `addMethodCall` within AtomicTransactionComposer
|
|
153
157
|
*/
|
|
154
|
-
declare function getAppArgsForABICall(args: ABIAppCallArgs, from: SendTransactionFrom): Promise<{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
export declare function getAppArgsForABICall(args: ABIAppCallArgs, from: SendTransactionFrom): Promise<{
|
|
159
|
+
method: algosdk.ABIMethod;
|
|
160
|
+
sender: string;
|
|
161
|
+
signer: algosdk.TransactionSigner;
|
|
162
|
+
boxes: algosdk.BoxReference[] | undefined;
|
|
163
|
+
lease: Uint8Array<ArrayBufferLike> | undefined;
|
|
164
|
+
appForeignApps: number[] | undefined;
|
|
165
|
+
appForeignAssets: number[] | undefined;
|
|
166
|
+
appAccounts: string[] | undefined;
|
|
167
|
+
methodArgs: (string | number | bigint | boolean | algosdk.Address | Uint8Array<ArrayBufferLike> | algosdk.ABIValue[] | algosdk.TransactionWithSigner)[];
|
|
168
|
+
rekeyTo: string | undefined;
|
|
165
169
|
}>;
|
|
166
170
|
/**
|
|
167
171
|
* @deprecated Use `AppManager.getBoxReference()` instead.
|
|
@@ -170,7 +174,7 @@ declare function getAppArgsForABICall(args: ABIAppCallArgs, from: SendTransactio
|
|
|
170
174
|
* @param box The box to return a reference for
|
|
171
175
|
* @returns The box reference ready to pass into a `Transaction`
|
|
172
176
|
*/
|
|
173
|
-
declare function getBoxReference(box: BoxIdentifier | BoxReference | algosdk.BoxReference): algosdk.BoxReference;
|
|
177
|
+
export declare function getBoxReference(box: BoxIdentifier | BoxReference | algosdk.BoxReference): algosdk.BoxReference;
|
|
174
178
|
/**
|
|
175
179
|
* @deprecated Use `algorand.app.getById` instead.
|
|
176
180
|
*
|
|
@@ -180,7 +184,7 @@ declare function getBoxReference(box: BoxIdentifier | BoxReference | algosdk.Box
|
|
|
180
184
|
* @param algod An algod client
|
|
181
185
|
* @returns The data about the app
|
|
182
186
|
*/
|
|
183
|
-
declare function getAppById(appId: number | bigint, algod: Algodv2): Promise<algosdk.modelsv2.Application>;
|
|
187
|
+
export declare function getAppById(appId: number | bigint, algod: Algodv2): Promise<algosdk.modelsv2.Application>;
|
|
184
188
|
/**
|
|
185
189
|
* @deprecated Use `algorand.app.compileTeal` instead.
|
|
186
190
|
*
|
|
@@ -190,7 +194,7 @@ declare function getAppById(appId: number | bigint, algod: Algodv2): Promise<alg
|
|
|
190
194
|
* @param tealCode The TEAL code
|
|
191
195
|
* @returns The information about the compiled file
|
|
192
196
|
*/
|
|
193
|
-
declare function compileTeal(tealCode: string, algod: Algodv2): Promise<CompiledTeal>;
|
|
197
|
+
export declare function compileTeal(tealCode: string, algod: Algodv2): Promise<CompiledTeal>;
|
|
194
198
|
/**
|
|
195
199
|
* @deprecated Use `abiMethod.getSignature()` or `new ABIMethod(abiMethodParams).getSignature()` instead.
|
|
196
200
|
*
|
|
@@ -198,7 +202,4 @@ declare function compileTeal(tealCode: string, algod: Algodv2): Promise<Compiled
|
|
|
198
202
|
* @param method The method to return a signature for
|
|
199
203
|
* @returns The encoded ABI method spec e.g. `method_name(uint64,string)string`
|
|
200
204
|
*/
|
|
201
|
-
declare const getABIMethodSignature: (method: ABIMethodParams | ABIMethod) => string;
|
|
202
|
-
//#endregion
|
|
203
|
-
export { callApp, compileTeal, createApp, decodeAppState, getABIMethodSignature, getABIReturn, getAppArgsForABICall, getAppArgsForTransaction, getAppBoxNames, getAppBoxValue, getAppBoxValueFromABIType, getAppBoxValues, getAppBoxValuesFromABIType, getAppById, getAppGlobalState, getAppLocalState, getAppOnCompleteAction, getBoxReference, updateApp };
|
|
204
|
-
//# sourceMappingURL=app.d.ts.map
|
|
205
|
+
export declare const getABIMethodSignature: (method: ABIMethodParams | ABIMethod) => string;
|
package/asset.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AssetBulkOptInOutParams, AssetOptInParams, AssetOptOutParams, CreateAssetParams } from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
//#region src/asset.d.ts
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import { AssetBulkOptInOutParams, AssetOptInParams, AssetOptOutParams, CreateAssetParams } from './types/asset';
|
|
3
|
+
import { SendTransactionResult } from './types/transaction';
|
|
4
|
+
import Algodv2 = algosdk.Algodv2;
|
|
6
5
|
/**
|
|
7
6
|
* @deprecated use `algorand.send.assetCreate()` / `algorand.createTransaction.assetCreate()` instead
|
|
8
7
|
*
|
|
@@ -16,10 +15,10 @@ import algosdk from "algosdk";
|
|
|
16
15
|
* await algokit.createAsset({ creator: account, total: 1, decimals: 0, name: 'My asset' }, algod)
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
19
|
-
declare function createAsset(create: CreateAssetParams, algod: Algodv2): Promise<SendTransactionResult & {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
export declare function createAsset(create: CreateAssetParams, algod: Algodv2): Promise<SendTransactionResult & {
|
|
19
|
+
confirmation?: {
|
|
20
|
+
assetIndex: number | bigint;
|
|
21
|
+
};
|
|
23
22
|
}>;
|
|
24
23
|
/**
|
|
25
24
|
* @deprecated use `algorand.send.assetOptIn()` / `algorand.createTransaction.assetOptIn()` instead
|
|
@@ -34,7 +33,7 @@ declare function createAsset(create: CreateAssetParams, algod: Algodv2): Promise
|
|
|
34
33
|
* await algokit.assetOptIn({ account, assetId }, algod)
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
|
-
declare function assetOptIn(optIn: AssetOptInParams, algod: Algodv2): Promise<SendTransactionResult>;
|
|
36
|
+
export declare function assetOptIn(optIn: AssetOptInParams, algod: Algodv2): Promise<SendTransactionResult>;
|
|
38
37
|
/**
|
|
39
38
|
* @deprecated use `algorand.send.assetOptOut()` / `algorand.createTransaction.assetOptOut()` instead
|
|
40
39
|
*
|
|
@@ -48,7 +47,7 @@ declare function assetOptIn(optIn: AssetOptInParams, algod: Algodv2): Promise<Se
|
|
|
48
47
|
* await algokit.assetOptOut({ account, assetId, assetCreatorAddress }, algod)
|
|
49
48
|
* ```
|
|
50
49
|
*/
|
|
51
|
-
declare function assetOptOut(optOut: AssetOptOutParams, algod: Algodv2): Promise<SendTransactionResult>;
|
|
50
|
+
export declare function assetOptOut(optOut: AssetOptOutParams, algod: Algodv2): Promise<SendTransactionResult>;
|
|
52
51
|
/**
|
|
53
52
|
* @deprecated use `algorand.asset.bulkOptIn()` instead
|
|
54
53
|
*
|
|
@@ -60,7 +59,7 @@ declare function assetOptOut(optOut: AssetOptOutParams, algod: Algodv2): Promise
|
|
|
60
59
|
* @throws If there is an error during the opt-in process.
|
|
61
60
|
* @example algokit.bulkOptIn({ account: account, assetIds: [12345, 67890] }, algod)
|
|
62
61
|
*/
|
|
63
|
-
declare function assetBulkOptIn(optIn: AssetBulkOptInOutParams, algod: Algodv2): Promise<Record<number, string>>;
|
|
62
|
+
export declare function assetBulkOptIn(optIn: AssetBulkOptInOutParams, algod: Algodv2): Promise<Record<number, string>>;
|
|
64
63
|
/**
|
|
65
64
|
* @deprecated use `algorand.asset.bulkOptOut()` instead
|
|
66
65
|
*
|
|
@@ -72,7 +71,4 @@ declare function assetBulkOptIn(optIn: AssetBulkOptInOutParams, algod: Algodv2):
|
|
|
72
71
|
* @throws If there is an error during the opt-out process.
|
|
73
72
|
* @example algokit.bulkOptOut({ account: account, assetIds: [12345, 67890] }, algod)
|
|
74
73
|
*/
|
|
75
|
-
declare function assetBulkOptOut(optOut: AssetBulkOptInOutParams, algod: Algodv2): Promise<Record<number, string>>;
|
|
76
|
-
//#endregion
|
|
77
|
-
export { assetBulkOptIn, assetBulkOptOut, assetOptIn, assetOptOut, createAsset };
|
|
78
|
-
//# sourceMappingURL=asset.d.ts.map
|
|
74
|
+
export declare function assetBulkOptOut(optOut: AssetBulkOptInOutParams, algod: Algodv2): Promise<Record<number, string>>;
|
package/config.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { UpdatableConfig } from
|
|
2
|
-
|
|
3
|
-
//#region src/config.d.ts
|
|
1
|
+
import { UpdatableConfig } from './types/config';
|
|
4
2
|
/** The AlgoKit config. To update it use the configure method. */
|
|
5
|
-
declare const Config: UpdatableConfig;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { Config };
|
|
8
|
-
//# sourceMappingURL=config.d.ts.map
|
|
3
|
+
export declare const Config: UpdatableConfig;
|
package/debugging/debugging.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/debugging/debugging.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* @deprecated Use latest version of `AlgoKit AVM Debugger` VSCode extension instead. It will automatically manage your sourcemaps.
|
|
4
3
|
*
|
|
@@ -6,7 +5,4 @@
|
|
|
6
5
|
*
|
|
7
6
|
* @returns A promise that resolves when the source maps have been persisted.
|
|
8
7
|
*/
|
|
9
|
-
declare function persistSourceMaps(_params: unknown): Promise<void>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { persistSourceMaps };
|
|
12
|
-
//# sourceMappingURL=debugging.d.ts.map
|
|
8
|
+
export declare function persistSourceMaps(_params: unknown): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './debugging';
|
package/dispenser-client.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { TestNetDispenserApiClient, TestNetDispenserApiClientParams } from
|
|
2
|
-
|
|
3
|
-
//#region src/dispenser-client.d.ts
|
|
1
|
+
import { TestNetDispenserApiClient, TestNetDispenserApiClientParams } from './types/dispenser-client';
|
|
4
2
|
/**
|
|
5
3
|
* @deprecated Use `clientManager.getTestNetDispenser` or `clientManager.getTestNetDispenserFromEnvironment` instead
|
|
6
4
|
*
|
|
@@ -19,7 +17,4 @@ import { TestNetDispenserApiClient, TestNetDispenserApiClientParams } from "./ty
|
|
|
19
17
|
*
|
|
20
18
|
* @returns An instance of the TestNetDispenserApiClient class.
|
|
21
19
|
*/
|
|
22
|
-
declare function getTestNetDispenserApiClient(params?: TestNetDispenserApiClientParams | null): TestNetDispenserApiClient;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { getTestNetDispenserApiClient };
|
|
25
|
-
//# sourceMappingURL=dispenser-client.d.ts.map
|
|
20
|
+
export declare function getTestNetDispenserApiClient(params?: TestNetDispenserApiClientParams | null): TestNetDispenserApiClient;
|
package/index.d.ts
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import { transferAlgos } from "./transfer/transfer-algos.js";
|
|
20
|
-
import { ALGORAND_MIN_TX_FEE, algo, algos, microAlgo, microAlgos, transactionFees } from "./amount.js";
|
|
21
|
-
import { ALGOKIT_DIR, AVMTracesEventData, DEFAULT_MAX_SEARCH_DEPTH, SOURCES_DIR, TEAL_FILE_EXT, TEAL_SOURCEMAP_EXT, TealSourceDebugEventData, TealSourcesDebugEventData } from "./types/debugging.js";
|
|
22
|
-
import { EventDataMap, EventType } from "./types/lifecycle-events.js";
|
|
23
|
-
import { Config } from "./config.js";
|
|
24
|
-
import { persistSourceMaps } from "./debugging/debugging.js";
|
|
25
|
-
import { performAtomicTransactionComposerSimulate } from "./transaction/perform-atomic-transaction-composer-simulate.js";
|
|
26
|
-
import { MAX_APP_CALL_ACCOUNT_REFERENCES, MAX_APP_CALL_FOREIGN_REFERENCES, MAX_TRANSACTION_GROUP_SIZE, capTransactionFee, controlFees, encodeLease, encodeTransactionNote, getABIReturnValue, getAtomicTransactionComposerTransactions, getSenderAddress, getSenderTransactionSigner, getTransactionParams, getTransactionWithSigner, populateAppCallResources, prepareGroupForSending, sendAtomicTransactionComposer, sendGroupOfTransactions, sendTransaction, signTransaction, waitForConfirmation } from "./transaction/transaction.js";
|
|
27
|
-
export { ALGOKIT_DIR, ALGORAND_MIN_TX_FEE, AVMTracesEventData, AccountInformation, AlgorandClient, Config, DEFAULT_MAX_SEARCH_DEPTH, EventDataMap, EventType, MAX_APP_CALL_ACCOUNT_REFERENCES, MAX_APP_CALL_FOREIGN_REFERENCES, MAX_TRANSACTION_GROUP_SIZE, NumberConverter, SOURCES_DIR, SearchForTransactions, TEAL_FILE_EXT, TEAL_SOURCEMAP_EXT, TealSourceDebugEventData, TealSourcesDebugEventData, algo, algos, assetBulkOptIn, assetBulkOptOut, assetOptIn, assetOptOut, callApp, capTransactionFee, compileTeal, controlFees, createApp, createAsset, decodeAppState, deployApp, encodeLease, encodeTransactionNote, ensureFunded, executePaginatedRequest, getABIMethodSignature, getABIReturn, getABIReturnValue, getAccount, getAccountAddressAsString, getAccountAddressAsUint8Array, getAccountAssetInformation, getAccountConfigFromEnvironment, getAccountInformation, getAlgoClient, getAlgoIndexerClient, getAlgoKmdClient, getAlgoNodeConfig, getAlgodConfigFromEnvironment, getAppArgsForABICall, getAppArgsForTransaction, getAppBoxNames, getAppBoxValue, getAppBoxValueFromABIType, getAppBoxValues, getAppBoxValuesFromABIType, getAppById, getAppClient, getAppClientByCreatorAndName, getAppClientById, getAppDeploymentTransactionNote, getAppGlobalState, getAppLocalState, getAppOnCompleteAction, getAtomicTransactionComposerTransactions, getBoxReference, getConfigFromEnvOrDefaults, getCreatorAppsByName, getDefaultLocalNetConfig, getDispenserAccount, getIndexerConfigFromEnvironment, getKmdWalletAccount, getLocalNetDispenserAccount, getOrCreateKmdWalletAccount, getSenderAddress, getSenderTransactionSigner, getTestNetDispenserApiClient, getTransactionParams, getTransactionWithSigner, indexer_lookup_d_exports as indexer, isLocalNet, isMainNet, isSchemaIsBroken, isTestNet, lookupAccountByAddress, lookupAccountCreatedApplicationByAddress, lookupAssetHoldings, lookupTransactionById, microAlgo, microAlgos, mnemonicAccount, mnemonicAccountFromEnvironment, multisigAccount, performAtomicTransactionComposerSimulate, performTemplateSubstitution, performTemplateSubstitutionAndCompile, persistSourceMaps, populateAppCallResources, prepareGroupForSending, randomAccount, rekeyAccount, rekeyedAccount, replaceDeployTimeControlParams, searchTransactions, sendAtomicTransactionComposer, sendGroupOfTransactions, sendTransaction, signTransaction, stripTealComments, transactionFees, transactionSignerAccount, transferAlgos, transferAsset, updateApp, waitForConfirmation };
|
|
1
|
+
export * from './account';
|
|
2
|
+
export * from './app';
|
|
3
|
+
export * from './app-client';
|
|
4
|
+
export * from './app-deploy';
|
|
5
|
+
export * from './asset';
|
|
6
|
+
export * from './dispenser-client';
|
|
7
|
+
export * from './indexer-lookup';
|
|
8
|
+
export * from './localnet';
|
|
9
|
+
export * from './network-client';
|
|
10
|
+
export * from './transfer';
|
|
11
|
+
export * from './amount';
|
|
12
|
+
export * from './config';
|
|
13
|
+
export * from './debugging';
|
|
14
|
+
export * as indexer from './indexer-lookup';
|
|
15
|
+
export * from './transaction';
|
|
16
|
+
export { AlgorandClient } from './types/algorand-client';
|
|
17
|
+
export * from './types/debugging';
|
|
18
|
+
export * from './types/lifecycle-events';
|
package/indexer-lookup.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare namespace indexer_lookup_d_exports {
|
|
6
|
-
export { SearchForTransactions, executePaginatedRequest, lookupAccountByAddress, lookupAccountCreatedApplicationByAddress, lookupAssetHoldings, lookupTransactionById, searchTransactions };
|
|
7
|
-
}
|
|
8
|
-
type SearchForTransactions = ReturnType<Indexer['searchForTransactions']>;
|
|
1
|
+
import algosdk, { Address } from 'algosdk';
|
|
2
|
+
import { LookupAssetHoldingsOptions } from './types/indexer';
|
|
3
|
+
import Indexer = algosdk.Indexer;
|
|
4
|
+
export type SearchForTransactions = ReturnType<Indexer['searchForTransactions']>;
|
|
9
5
|
/**
|
|
10
6
|
* @deprecated Use `indexer.lookupTransactionByID(transactionId).do()`.
|
|
11
7
|
* Looks up a transaction by ID using Indexer.
|
|
@@ -13,7 +9,7 @@ type SearchForTransactions = ReturnType<Indexer['searchForTransactions']>;
|
|
|
13
9
|
* @param indexer An indexer client
|
|
14
10
|
* @returns The result of the look-up
|
|
15
11
|
*/
|
|
16
|
-
declare function lookupTransactionById(transactionId: string, indexer: Indexer): Promise<algosdk.indexerModels.TransactionResponse>;
|
|
12
|
+
export declare function lookupTransactionById(transactionId: string, indexer: Indexer): Promise<algosdk.indexerModels.TransactionResponse>;
|
|
17
13
|
/**
|
|
18
14
|
* @deprecated Use `indexer.lookupAccountByID(accountAddress).do()`.
|
|
19
15
|
* Looks up an account by address using Indexer.
|
|
@@ -21,7 +17,7 @@ declare function lookupTransactionById(transactionId: string, indexer: Indexer):
|
|
|
21
17
|
* @param indexer An indexer client
|
|
22
18
|
* @returns The result of the look-up
|
|
23
19
|
*/
|
|
24
|
-
declare function lookupAccountByAddress(accountAddress: string | Address, indexer: Indexer): Promise<algosdk.indexerModels.AccountResponse>;
|
|
20
|
+
export declare function lookupAccountByAddress(accountAddress: string | Address, indexer: Indexer): Promise<algosdk.indexerModels.AccountResponse>;
|
|
25
21
|
/**
|
|
26
22
|
* Looks up applications that were created by the given address; will automatically paginate through all data.
|
|
27
23
|
* @param indexer An indexer instance
|
|
@@ -30,7 +26,7 @@ declare function lookupAccountByAddress(accountAddress: string | Address, indexe
|
|
|
30
26
|
* @param paginationLimit The number of records to return per paginated request, default 1000
|
|
31
27
|
* @returns The list of application results
|
|
32
28
|
*/
|
|
33
|
-
declare function lookupAccountCreatedApplicationByAddress(indexer: Indexer, address: string | Address, getAll?: boolean | undefined, paginationLimit?: number): Promise<algosdk.indexerModels.Application[]>;
|
|
29
|
+
export declare function lookupAccountCreatedApplicationByAddress(indexer: Indexer, address: string | Address, getAll?: boolean | undefined, paginationLimit?: number): Promise<algosdk.indexerModels.Application[]>;
|
|
34
30
|
/**
|
|
35
31
|
* Looks up asset holdings for the given asset; will automatically paginate through all data.
|
|
36
32
|
* @param indexer An indexer instance
|
|
@@ -39,7 +35,7 @@ declare function lookupAccountCreatedApplicationByAddress(indexer: Indexer, addr
|
|
|
39
35
|
* @param paginationLimit The number of records to return per paginated request, default 1000
|
|
40
36
|
* @returns The list of application results
|
|
41
37
|
*/
|
|
42
|
-
declare function lookupAssetHoldings(indexer: Indexer, assetId: number | bigint, options?: LookupAssetHoldingsOptions, paginationLimit?: number): Promise<algosdk.indexerModels.MiniAssetHolding[]>;
|
|
38
|
+
export declare function lookupAssetHoldings(indexer: Indexer, assetId: number | bigint, options?: LookupAssetHoldingsOptions, paginationLimit?: number): Promise<algosdk.indexerModels.MiniAssetHolding[]>;
|
|
43
39
|
/**
|
|
44
40
|
* Allows transactions to be searched for the given criteria.
|
|
45
41
|
* @param indexer An indexer client
|
|
@@ -47,10 +43,7 @@ declare function lookupAssetHoldings(indexer: Indexer, assetId: number | bigint,
|
|
|
47
43
|
* @param paginationLimit The number of records to return per paginated request, default 1000
|
|
48
44
|
* @returns The search results
|
|
49
45
|
*/
|
|
50
|
-
declare function searchTransactions(indexer: Indexer, searchCriteria: (s: SearchForTransactions) => SearchForTransactions, paginationLimit?: number): Promise<algosdk.indexerModels.TransactionsResponse>;
|
|
51
|
-
declare function executePaginatedRequest<TResult, TRequest extends {
|
|
52
|
-
|
|
46
|
+
export declare function searchTransactions(indexer: Indexer, searchCriteria: (s: SearchForTransactions) => SearchForTransactions, paginationLimit?: number): Promise<algosdk.indexerModels.TransactionsResponse>;
|
|
47
|
+
export declare function executePaginatedRequest<TResult, TRequest extends {
|
|
48
|
+
do: () => Promise<any>;
|
|
53
49
|
}>(extractItems: (response: any) => TResult[], buildRequest: (nextToken?: string) => TRequest): Promise<TResult[]>;
|
|
54
|
-
//#endregion
|
|
55
|
-
export { SearchForTransactions, executePaginatedRequest, indexer_lookup_d_exports, lookupAccountByAddress, lookupAccountCreatedApplicationByAddress, lookupAssetHoldings, lookupTransactionById, searchTransactions };
|
|
56
|
-
//# sourceMappingURL=indexer-lookup.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import algosdk from
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import Account = algosdk.Account;
|
|
3
|
+
import Algodv2 = algosdk.Algodv2;
|
|
4
|
+
import Kmd = algosdk.Kmd;
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated use `algorand.account.kmd.getWalletAccount(name, predicate)` or `new KMDAccountManager(clientManager).getWalletAccount(name, predicate)` instead.
|
|
6
7
|
*
|
|
@@ -20,10 +21,7 @@ import algosdk from "algosdk";
|
|
|
20
21
|
* )
|
|
21
22
|
* ```
|
|
22
23
|
*/
|
|
23
|
-
declare function getKmdWalletAccount(walletAccount: {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
export declare function getKmdWalletAccount(walletAccount: {
|
|
25
|
+
name: string;
|
|
26
|
+
predicate?: (account: Record<string, any>) => boolean;
|
|
26
27
|
}, algod: Algodv2, kmdClient?: Kmd): Promise<Account | undefined>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { getKmdWalletAccount };
|
|
29
|
-
//# sourceMappingURL=get-kmd-wallet-account.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import algosdk from
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import Account = algosdk.Account;
|
|
3
|
+
import Algodv2 = algosdk.Algodv2;
|
|
4
|
+
import Kmd = algosdk.Kmd;
|
|
4
5
|
/**
|
|
5
6
|
* @deprecated Use `algorand.account.kmd.getLocalNetDispenserAccount()` instead.
|
|
6
7
|
*
|
|
@@ -9,7 +10,4 @@ import algosdk from "algosdk";
|
|
|
9
10
|
* @param algod An algod client
|
|
10
11
|
* @param kmd A KMD client, if not specified then a default KMD client will be loaded from environment variables
|
|
11
12
|
*/
|
|
12
|
-
declare function getLocalNetDispenserAccount(algod: Algodv2, kmd?: Kmd): Promise<Account>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { getLocalNetDispenserAccount };
|
|
15
|
-
//# sourceMappingURL=get-localnet-dispenser-account.d.ts.map
|
|
13
|
+
export declare function getLocalNetDispenserAccount(algod: Algodv2, kmd?: Kmd): Promise<Account>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import { AlgoAmount } from '../types/amount';
|
|
3
|
+
import Account = algosdk.Account;
|
|
4
|
+
import Algodv2 = algosdk.Algodv2;
|
|
5
|
+
import Kmd = algosdk.Kmd;
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated use `algorand.account.kmd.getOrCreateWalletAccount(name, fundWith)` or `new KMDAccountManager(clientManager).getOrCreateWalletAccount(name, fundWith)` instead.
|
|
7
8
|
*
|
|
@@ -21,10 +22,7 @@ import algosdk from "algosdk";
|
|
|
21
22
|
*
|
|
22
23
|
* @returns An Algorand account with private key loaded - either one that already existed in the given KMD wallet, or a new one that is funded for you
|
|
23
24
|
*/
|
|
24
|
-
declare function getOrCreateKmdWalletAccount(walletAccount: {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
export declare function getOrCreateKmdWalletAccount(walletAccount: {
|
|
26
|
+
name: string;
|
|
27
|
+
fundWith?: AlgoAmount;
|
|
27
28
|
}, algod: Algodv2, kmdClient?: Kmd): Promise<Account>;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { getOrCreateKmdWalletAccount };
|
|
30
|
-
//# sourceMappingURL=get-or-create-kmd-wallet-account.d.ts.map
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import algosdk from
|
|
2
|
-
|
|
3
|
-
//#region src/localnet/is-localnet.d.ts
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import Algodv2 = algosdk.Algodv2;
|
|
4
3
|
/** @deprecated Use `await algorand.client.isLocalNet()` or `await new ClientManager({ algod }).isLocalNet()` instead.
|
|
5
4
|
*
|
|
6
5
|
* Returns true if the algod client is pointing to a LocalNet Algorand network
|
|
7
6
|
*/
|
|
8
|
-
declare function isLocalNet(algod: Algodv2): Promise<boolean>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { isLocalNet };
|
|
11
|
-
//# sourceMappingURL=is-localnet.d.ts.map
|
|
7
|
+
export declare function isLocalNet(algod: Algodv2): Promise<boolean>;
|
package/network-client.d.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import algosdk from 'algosdk';
|
|
2
|
+
import { AlgoClientConfig, AlgoConfig } from './types/network-client';
|
|
3
|
+
import Algodv2 = algosdk.Algodv2;
|
|
4
|
+
import Indexer = algosdk.Indexer;
|
|
5
|
+
import Kmd = algosdk.Kmd;
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated Use `ClientManager.getConfigFromEnvironmentOrLocalNet()` instead.
|
|
7
8
|
*
|
|
8
9
|
* Retrieve configurations from environment variables when defined or get defaults (expects to be called from a Node.js environment not algod-side)
|
|
9
10
|
*/
|
|
10
|
-
declare function getConfigFromEnvOrDefaults(): AlgoConfig;
|
|
11
|
+
export declare function getConfigFromEnvOrDefaults(): AlgoConfig;
|
|
11
12
|
/**
|
|
12
13
|
* @deprecated Use `ClientManager.getAlgodConfigFromEnvironment()` instead.
|
|
13
14
|
*
|
|
14
15
|
* Retrieve the algod configuration from environment variables (expects to be called from a Node.js environment not algod-side)
|
|
15
16
|
*/
|
|
16
|
-
declare function getAlgodConfigFromEnvironment(): AlgoClientConfig;
|
|
17
|
+
export declare function getAlgodConfigFromEnvironment(): AlgoClientConfig;
|
|
17
18
|
/**
|
|
18
19
|
* @deprecated Use `ClientManager.getIndexerConfigFromEnvironment()` instead.
|
|
19
20
|
*
|
|
20
21
|
* Retrieve the indexer configuration from environment variables (expects to be called from a Node.js environment not algod-side)
|
|
21
22
|
*/
|
|
22
|
-
declare function getIndexerConfigFromEnvironment(): AlgoClientConfig;
|
|
23
|
+
export declare function getIndexerConfigFromEnvironment(): AlgoClientConfig;
|
|
23
24
|
/**
|
|
24
25
|
* @deprecated Use `ClientManager.getAlgoNodeConfig(network, config)` instead.
|
|
25
26
|
*
|
|
@@ -28,7 +29,7 @@ declare function getIndexerConfigFromEnvironment(): AlgoClientConfig;
|
|
|
28
29
|
* @param network Which network to connect to - TestNet or MainNet
|
|
29
30
|
* @param config Which algod config to return - Algod or Indexer
|
|
30
31
|
*/
|
|
31
|
-
declare function getAlgoNodeConfig(network: 'testnet' | 'mainnet', config: 'algod' | 'indexer'): AlgoClientConfig;
|
|
32
|
+
export declare function getAlgoNodeConfig(network: 'testnet' | 'mainnet', config: 'algod' | 'indexer'): AlgoClientConfig;
|
|
32
33
|
/**
|
|
33
34
|
* @deprecated Use `ClientManager.getDefaultLocalNetConfig(configOrPort)` instead.
|
|
34
35
|
*
|
|
@@ -36,7 +37,7 @@ declare function getAlgoNodeConfig(network: 'testnet' | 'mainnet', config: 'algo
|
|
|
36
37
|
*
|
|
37
38
|
* @param configOrPort Which algod config to return - algod, kmd, or indexer OR a port number
|
|
38
39
|
*/
|
|
39
|
-
declare function getDefaultLocalNetConfig(configOrPort: 'algod' | 'indexer' | 'kmd' | number): AlgoClientConfig;
|
|
40
|
+
export declare function getDefaultLocalNetConfig(configOrPort: 'algod' | 'indexer' | 'kmd' | number): AlgoClientConfig;
|
|
40
41
|
/**
|
|
41
42
|
* @deprecated Use `ClientManager.getAlgodClient(config)` or `ClientManager.getAlgodClientFromEnvironment()` instead.
|
|
42
43
|
*
|
|
@@ -67,7 +68,7 @@ declare function getDefaultLocalNetConfig(configOrPort: 'algod' | 'indexer' | 'k
|
|
|
67
68
|
* await algod.healthCheck().do()
|
|
68
69
|
* ```
|
|
69
70
|
*/
|
|
70
|
-
declare function getAlgoClient(config?: AlgoClientConfig): Algodv2;
|
|
71
|
+
export declare function getAlgoClient(config?: AlgoClientConfig): Algodv2;
|
|
71
72
|
/**
|
|
72
73
|
* @deprecated Use `ClientManager.getIndexerClient(config, overrideIntDecoding)` or `ClientManager.getIndexerClientFromEnvironment(overrideIntDecoding)` instead.
|
|
73
74
|
*
|
|
@@ -97,7 +98,7 @@ declare function getAlgoClient(config?: AlgoClientConfig): Algodv2;
|
|
|
97
98
|
* await indexer.makeHealthCheck().do()
|
|
98
99
|
* ```
|
|
99
100
|
*/
|
|
100
|
-
declare function getAlgoIndexerClient(config?: AlgoClientConfig): Indexer;
|
|
101
|
+
export declare function getAlgoIndexerClient(config?: AlgoClientConfig): Indexer;
|
|
101
102
|
/**
|
|
102
103
|
* @deprecated Use `ClientManager.getKmdClient(config)` or `ClientManager.getKmdClientFromEnvironment()` instead.
|
|
103
104
|
*
|
|
@@ -117,11 +118,8 @@ declare function getAlgoIndexerClient(config?: AlgoClientConfig): Indexer;
|
|
|
117
118
|
* const kmd = getAlgoKmdClient({server: 'http://localhost', port: '4002', token: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'})
|
|
118
119
|
* ```
|
|
119
120
|
*/
|
|
120
|
-
declare function getAlgoKmdClient(config?: AlgoClientConfig): Kmd;
|
|
121
|
+
export declare function getAlgoKmdClient(config?: AlgoClientConfig): Kmd;
|
|
121
122
|
/** @deprecated Use `await algorand.client.isTestNet()` or `await new ClientManager({ algod }).isTestNet()` instead. */
|
|
122
|
-
declare function isTestNet(algod: Algodv2): Promise<boolean>;
|
|
123
|
+
export declare function isTestNet(algod: Algodv2): Promise<boolean>;
|
|
123
124
|
/** @deprecated Use `await algorand.client.isMainNet()` or `await new ClientManager({ algod }).isMainNet()` instead. */
|
|
124
|
-
declare function isMainNet(algod: Algodv2): Promise<boolean>;
|
|
125
|
-
//#endregion
|
|
126
|
-
export { getAlgoClient, getAlgoIndexerClient, getAlgoKmdClient, getAlgoNodeConfig, getAlgodConfigFromEnvironment, getConfigFromEnvOrDefaults, getDefaultLocalNetConfig, getIndexerConfigFromEnvironment, isMainNet, isTestNet };
|
|
127
|
-
//# sourceMappingURL=network-client.d.ts.map
|
|
125
|
+
export declare function isMainNet(algod: Algodv2): Promise<boolean>;
|