@algorandfoundation/algokit-utils 7.0.0-beta.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/account/account.js +6 -4
- package/account/account.js.map +1 -1
- package/account/account.mjs +6 -4
- package/account/account.mjs.map +1 -1
- package/account/get-account-config-from-environment.js.map +1 -1
- package/account/get-account-config-from-environment.mjs.map +1 -1
- package/account/get-account.js.map +1 -1
- package/account/get-account.mjs.map +1 -1
- package/account/get-dispenser-account.js.map +1 -1
- package/account/get-dispenser-account.mjs.map +1 -1
- package/account/mnemonic-account.js.map +1 -1
- package/account/mnemonic-account.mjs.map +1 -1
- package/amount.js.map +1 -1
- package/amount.mjs.map +1 -1
- package/app-client.js.map +1 -1
- package/app-client.mjs.map +1 -1
- package/app-deploy.js +2 -10
- package/app-deploy.js.map +1 -1
- package/app-deploy.mjs +3 -11
- package/app-deploy.mjs.map +1 -1
- package/app.d.ts +2 -2
- package/app.js +2 -2
- package/app.js.map +1 -1
- package/app.mjs +2 -2
- package/app.mjs.map +1 -1
- package/asset.js.map +1 -1
- package/asset.mjs.map +1 -1
- package/debugging/debugging.js.map +1 -1
- package/debugging/debugging.mjs.map +1 -1
- package/dispenser-client.js.map +1 -1
- package/dispenser-client.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -1
- package/index.mjs.map +1 -1
- package/indexer-lookup.js.map +1 -1
- package/indexer-lookup.mjs.map +1 -1
- package/localnet/get-kmd-wallet-account.js.map +1 -1
- package/localnet/get-kmd-wallet-account.mjs.map +1 -1
- package/localnet/get-localnet-dispenser-account.js.map +1 -1
- package/localnet/get-localnet-dispenser-account.mjs.map +1 -1
- package/localnet/get-or-create-kmd-wallet-account.js.map +1 -1
- package/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -1
- package/localnet/is-localnet.js.map +1 -1
- package/localnet/is-localnet.mjs.map +1 -1
- package/network-client.js.map +1 -1
- package/network-client.mjs.map +1 -1
- package/package.json +5 -5
- package/testing/account.js.map +1 -1
- package/testing/account.mjs.map +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.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/indexer.js.map +1 -1
- package/testing/indexer.mjs.map +1 -1
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs.map +1 -1
- package/testing/transaction-logger.js.map +1 -1
- package/testing/transaction-logger.mjs.map +1 -1
- package/transaction/legacy-bridge.js +2 -2
- package/transaction/legacy-bridge.js.map +1 -1
- package/transaction/legacy-bridge.mjs +3 -3
- package/transaction/legacy-bridge.mjs.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.js +1 -0
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.mjs +1 -0
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -1
- package/transaction/transaction.d.ts +14 -7
- package/transaction/transaction.js +57 -31
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +55 -30
- package/transaction/transaction.mjs.map +1 -1
- package/transfer/transfer-algos.js.map +1 -1
- package/transfer/transfer-algos.mjs.map +1 -1
- package/transfer/transfer.js.map +1 -1
- package/transfer/transfer.mjs.map +1 -1
- package/types/account-manager.d.ts +1 -1
- package/types/account-manager.js +10 -8
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +11 -9
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +9 -0
- package/types/account.js.map +1 -1
- package/types/account.mjs.map +1 -1
- package/types/algo-http-client-with-retry.js.map +1 -1
- package/types/algo-http-client-with-retry.mjs.map +1 -1
- package/types/algorand-client-interface.d.ts +2 -2
- package/types/algorand-client-transaction-creator.d.ts +5 -3
- package/types/algorand-client-transaction-creator.js +3 -1
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +3 -1
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +12 -8
- package/types/algorand-client-transaction-sender.js +6 -2
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +6 -2
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +3 -4
- package/types/algorand-client.js +2 -5
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +4 -4
- package/types/algorand-client.mjs.map +1 -1
- package/types/amount.js.map +1 -1
- package/types/amount.mjs.map +1 -1
- package/types/app-arc56.d.ts +31 -20
- package/types/app-arc56.js.map +1 -1
- package/types/app-arc56.mjs.map +1 -1
- package/types/app-client.d.ts +97 -78
- package/types/app-client.js +171 -54
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +169 -52
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.js +1 -1
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +2 -2
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +30 -10
- package/types/app-factory.js +26 -20
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +26 -20
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.js +105 -23
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +105 -23
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.js +8 -2
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +8 -2
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +8 -7
- package/types/app.js.map +1 -1
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +4 -4
- package/types/asset-manager.js +2 -2
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +2 -2
- package/types/asset-manager.mjs.map +1 -1
- package/types/async-event-emitter.d.ts +1 -10
- package/types/async-event-emitter.js +0 -5
- package/types/async-event-emitter.js.map +1 -1
- package/types/async-event-emitter.mjs +1 -6
- package/types/async-event-emitter.mjs.map +1 -1
- package/types/client-manager.js +2 -2
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +2 -2
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +40 -25
- package/types/composer.js +114 -40
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +115 -39
- package/types/composer.mjs.map +1 -1
- package/types/config.js.map +1 -1
- package/types/config.mjs.map +1 -1
- package/types/debugging.d.ts +1 -1
- package/types/debugging.js +1 -1
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs +1 -1
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs.map +1 -1
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs.map +1 -1
- package/types/kmd-account-manager.js +1 -1
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +2 -2
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +10 -0
- package/types/lifecycle-events.js +8 -0
- package/types/lifecycle-events.js.map +1 -0
- package/types/lifecycle-events.mjs +8 -0
- package/types/lifecycle-events.mjs.map +1 -0
- package/types/logging.js.map +1 -1
- package/types/logging.mjs.map +1 -1
- package/types/logic-error.d.ts +2 -3
- package/types/logic-error.js +3 -3
- package/types/logic-error.js.map +1 -1
- package/types/logic-error.mjs +3 -3
- package/types/logic-error.mjs.map +1 -1
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +1 -1
- package/types/urlTokenBaseHTTPClient.js.map +1 -1
- package/types/urlTokenBaseHTTPClient.mjs.map +1 -1
- package/util.js.map +1 -1
- package/util.mjs.map +1 -1
package/types/app-client.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import algosdk from 'algosdk';
|
|
2
|
+
import { TransactionSignerAccount } from './account';
|
|
2
3
|
import { AlgorandClientInterface } from './algorand-client-interface';
|
|
3
4
|
import { AlgoAmount } from './amount';
|
|
4
|
-
import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallTransactionResult, AppCallType, AppCompilationResult, AppMetadata, AppReference, AppReturn, AppState, AppStorageSchema, BoxName,
|
|
5
|
-
import { ABIStruct, Arc56Contract, Arc56Method } from './app-arc56';
|
|
5
|
+
import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallTransactionResult, AppCallType, AppCompilationResult, AppMetadata, AppReference, AppReturn, AppState, AppStorageSchema, BoxName, AppLookup as LegacyAppLookup, OnSchemaBreak, OnUpdate, RawAppCallArgs, SendAppTransactionResult, TealTemplateParams } from './app';
|
|
6
|
+
import { ABIStruct, Arc56Contract, Arc56Method, ProgramSourceInfo } from './app-arc56';
|
|
6
7
|
import { AppLookup } from './app-deployer';
|
|
7
8
|
import { AppManager, BoxIdentifier } from './app-manager';
|
|
8
9
|
import { AppSpec } from './app-spec';
|
|
9
|
-
import
|
|
10
|
+
import { AppCallMethodCall, AppCallParams, AppDeleteMethodCall, AppDeleteParams, AppMethodCall, AppMethodCallTransactionArgument, CommonAppCallParams, PaymentParams } from './composer';
|
|
10
11
|
import { Expand } from './expand';
|
|
11
12
|
import { SendParams, SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
|
|
12
13
|
import ABIMethod = algosdk.ABIMethod;
|
|
@@ -18,6 +19,7 @@ import Indexer = algosdk.Indexer;
|
|
|
18
19
|
import OnApplicationComplete = algosdk.OnApplicationComplete;
|
|
19
20
|
import SourceMap = algosdk.SourceMap;
|
|
20
21
|
import SuggestedParams = algosdk.SuggestedParams;
|
|
22
|
+
import TransactionSigner = algosdk.TransactionSigner;
|
|
21
23
|
/** Configuration to resolve app by creator and name `getCreatorAppsByName` */
|
|
22
24
|
export type ResolveAppByCreatorAndNameBase = {
|
|
23
25
|
/** The address of the app creator account to resolve the app by */
|
|
@@ -112,8 +114,7 @@ export interface AppClientDeployParams extends AppClientDeployCoreParams, AppCli
|
|
|
112
114
|
/** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
|
|
113
115
|
schema?: Partial<AppStorageSchema>;
|
|
114
116
|
}
|
|
115
|
-
export
|
|
116
|
-
}
|
|
117
|
+
export type AppClientCallRawArgs = RawAppCallArgs;
|
|
117
118
|
export interface AppClientCallABIArgs extends Omit<ABIAppCallArgs, 'method'> {
|
|
118
119
|
/** If calling an ABI method then either the name of the method, or the ABI signature */
|
|
119
120
|
method: string;
|
|
@@ -178,16 +179,14 @@ export interface SourceMapExport {
|
|
|
178
179
|
}
|
|
179
180
|
/**
|
|
180
181
|
* The result of asking an `AppClient` to compile a program.
|
|
182
|
+
*
|
|
183
|
+
* Always contains the compiled bytecode, and may contain the result of compiling TEAL (including sourcemap) if it was available.
|
|
181
184
|
*/
|
|
182
|
-
export interface AppClientCompilationResult {
|
|
185
|
+
export interface AppClientCompilationResult extends Partial<AppCompilationResult> {
|
|
183
186
|
/** The compiled bytecode of the approval program, ready to deploy to algod */
|
|
184
187
|
approvalProgram: Uint8Array;
|
|
185
188
|
/** The compiled bytecode of the clear state program, ready to deploy to algod */
|
|
186
189
|
clearStateProgram: Uint8Array;
|
|
187
|
-
/** The result of compilation of the approval program, including source map, if TEAL code was compiled */
|
|
188
|
-
approvalProgramCompilationResult?: CompiledTeal;
|
|
189
|
-
/** The result of compilation of the clear state program, including source map, if TEAL code was compiled */
|
|
190
|
-
clearStateProgramCompilationResult?: CompiledTeal;
|
|
191
190
|
}
|
|
192
191
|
/** Parameters to create an app client */
|
|
193
192
|
export interface AppClientParams {
|
|
@@ -208,11 +207,15 @@ export interface AppClientParams {
|
|
|
208
207
|
appName?: string;
|
|
209
208
|
/** Optional address to use for the account to use as the default sender for calls. */
|
|
210
209
|
defaultSender?: string;
|
|
210
|
+
/** Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). */
|
|
211
|
+
defaultSigner?: TransactionSigner;
|
|
211
212
|
/** Optional source map for the approval program */
|
|
212
213
|
approvalSourceMap?: SourceMap;
|
|
213
214
|
/** Optional source map for the clear state program */
|
|
214
215
|
clearSourceMap?: SourceMap;
|
|
215
216
|
}
|
|
217
|
+
/** Parameters to clone an app client */
|
|
218
|
+
export type CloneAppClientParams = Expand<Partial<Omit<AppClientParams, 'algorand' | 'appSpec'>>>;
|
|
216
219
|
/** onComplete parameter for a non-update app call */
|
|
217
220
|
export type CallOnComplete = {
|
|
218
221
|
/** On-complete of the call; defaults to no-op */
|
|
@@ -241,6 +244,7 @@ export type AppClientMethodCallParams = Expand<Omit<CommonAppCallParams, 'appId'
|
|
|
241
244
|
* * A transaction (where the signer will be automatically assigned)
|
|
242
245
|
* * An unawaited transaction (e.g. from algorand.createTransaction.transactionType())
|
|
243
246
|
* * Another method call (via method call params object)
|
|
247
|
+
* * undefined (this represents a placeholder for either a default argument or a transaction argument that is fulfilled by another method call argument)
|
|
244
248
|
*/
|
|
245
249
|
args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[];
|
|
246
250
|
}>;
|
|
@@ -271,6 +275,7 @@ export declare class AppClient {
|
|
|
271
275
|
private _appSpec;
|
|
272
276
|
private _algorand;
|
|
273
277
|
private _defaultSender?;
|
|
278
|
+
private _defaultSigner?;
|
|
274
279
|
private _approvalSourceMap;
|
|
275
280
|
private _clearSourceMap;
|
|
276
281
|
private _localStateMethods;
|
|
@@ -280,8 +285,13 @@ export declare class AppClient {
|
|
|
280
285
|
private _createTransactionsMethods;
|
|
281
286
|
private _sendMethods;
|
|
282
287
|
constructor(params: AppClientParams);
|
|
283
|
-
/**
|
|
284
|
-
|
|
288
|
+
/**
|
|
289
|
+
* Clone this app client with different params
|
|
290
|
+
*
|
|
291
|
+
* @param params The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value.
|
|
292
|
+
* @returns A new app client with the altered params
|
|
293
|
+
*/
|
|
294
|
+
clone(params: CloneAppClientParams): AppClient;
|
|
285
295
|
/**
|
|
286
296
|
* Returns a new `AppClient` client, resolving the app by creator address and name
|
|
287
297
|
* using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
|
|
@@ -311,6 +321,8 @@ export declare class AppClient {
|
|
|
311
321
|
get appName(): string;
|
|
312
322
|
/** The ARC-56 app spec being used */
|
|
313
323
|
get appSpec(): Arc56Contract;
|
|
324
|
+
/** A reference to the underlying `AlgorandClient` this app client is using. */
|
|
325
|
+
get algorand(): AlgorandClientInterface;
|
|
314
326
|
/** Get parameters to create transactions for the current app.
|
|
315
327
|
*
|
|
316
328
|
* A good mental model for this is that these parameters represent a deferred transaction creation.
|
|
@@ -334,7 +346,7 @@ export declare class AppClient {
|
|
|
334
346
|
amount: AlgoAmount;
|
|
335
347
|
closeRemainderTo?: string | undefined;
|
|
336
348
|
maxFee?: AlgoAmount | undefined;
|
|
337
|
-
signer?: algosdk.TransactionSigner |
|
|
349
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
338
350
|
rekeyTo?: string | undefined;
|
|
339
351
|
staticFee?: AlgoAmount | undefined;
|
|
340
352
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -347,13 +359,13 @@ export declare class AppClient {
|
|
|
347
359
|
sender?: string | undefined;
|
|
348
360
|
}) => {
|
|
349
361
|
sender: string;
|
|
362
|
+
signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
350
363
|
receiver: string;
|
|
351
364
|
lease?: string | Uint8Array | undefined;
|
|
352
365
|
note?: string | Uint8Array | undefined;
|
|
353
366
|
amount: AlgoAmount;
|
|
354
367
|
closeRemainderTo?: string | undefined;
|
|
355
368
|
maxFee?: AlgoAmount | undefined;
|
|
356
|
-
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
357
369
|
rekeyTo?: string | undefined;
|
|
358
370
|
staticFee?: AlgoAmount | undefined;
|
|
359
371
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -369,7 +381,7 @@ export declare class AppClient {
|
|
|
369
381
|
lease?: string | Uint8Array | undefined;
|
|
370
382
|
note?: string | Uint8Array | undefined;
|
|
371
383
|
maxFee?: AlgoAmount | undefined;
|
|
372
|
-
signer?: algosdk.TransactionSigner |
|
|
384
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
373
385
|
rekeyTo?: string | undefined;
|
|
374
386
|
staticFee?: AlgoAmount | undefined;
|
|
375
387
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -389,14 +401,12 @@ export declare class AppClient {
|
|
|
389
401
|
approvalProgram: Uint8Array;
|
|
390
402
|
/** The compiled bytecode of the clear state program, ready to deploy to algod */
|
|
391
403
|
clearStateProgram: Uint8Array;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/** The result of compilation of the clear state program, including source map, if TEAL code was compiled */
|
|
395
|
-
clearStateProgramCompilationResult?: CompiledTeal | undefined;
|
|
404
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
405
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
396
406
|
lease?: string | Uint8Array | undefined;
|
|
397
407
|
note?: string | Uint8Array | undefined;
|
|
398
408
|
maxFee?: AlgoAmount | undefined;
|
|
399
|
-
signer?: algosdk.TransactionSigner |
|
|
409
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
400
410
|
rekeyTo?: string | undefined;
|
|
401
411
|
staticFee?: AlgoAmount | undefined;
|
|
402
412
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -420,6 +430,7 @@ export declare class AppClient {
|
|
|
420
430
|
} & {
|
|
421
431
|
appId: bigint;
|
|
422
432
|
sender: string;
|
|
433
|
+
signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
423
434
|
method: Arc56Method;
|
|
424
435
|
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
425
436
|
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
@@ -427,7 +438,7 @@ export declare class AppClient {
|
|
|
427
438
|
note?: string | Uint8Array | undefined;
|
|
428
439
|
maxFee?: AlgoAmount | undefined;
|
|
429
440
|
args?: Uint8Array[] | undefined;
|
|
430
|
-
signer?: algosdk.TransactionSigner |
|
|
441
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
431
442
|
sender: string;
|
|
432
443
|
rekeyTo?: string | undefined;
|
|
433
444
|
staticFee?: AlgoAmount | undefined;
|
|
@@ -446,12 +457,12 @@ export declare class AppClient {
|
|
|
446
457
|
globalInts: number;
|
|
447
458
|
globalByteSlices: number;
|
|
448
459
|
localInts: number;
|
|
449
|
-
localByteSlices: number;
|
|
460
|
+
localByteSlices: number; /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
|
|
450
461
|
} | undefined;
|
|
451
462
|
extraProgramPages?: number | undefined;
|
|
452
463
|
}> | AppMethodCall<{
|
|
453
464
|
sender: string;
|
|
454
|
-
signer?: algosdk.TransactionSigner |
|
|
465
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
455
466
|
rekeyTo?: string | undefined;
|
|
456
467
|
note?: string | Uint8Array | undefined;
|
|
457
468
|
lease?: string | Uint8Array | undefined;
|
|
@@ -470,14 +481,14 @@ export declare class AppClient {
|
|
|
470
481
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
471
482
|
approvalProgram: string | Uint8Array;
|
|
472
483
|
clearStateProgram: string | Uint8Array;
|
|
473
|
-
}> | AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
484
|
+
}> | AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
474
485
|
}>;
|
|
475
486
|
/** Return params for an opt-in ABI call */
|
|
476
487
|
optIn: (params: {
|
|
477
488
|
lease?: string | Uint8Array | undefined;
|
|
478
489
|
note?: string | Uint8Array | undefined;
|
|
479
490
|
maxFee?: AlgoAmount | undefined;
|
|
480
|
-
signer?: algosdk.TransactionSigner |
|
|
491
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
481
492
|
rekeyTo?: string | undefined;
|
|
482
493
|
staticFee?: AlgoAmount | undefined;
|
|
483
494
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -498,7 +509,7 @@ export declare class AppClient {
|
|
|
498
509
|
lease?: string | Uint8Array | undefined;
|
|
499
510
|
note?: string | Uint8Array | undefined;
|
|
500
511
|
maxFee?: AlgoAmount | undefined;
|
|
501
|
-
signer?: algosdk.TransactionSigner |
|
|
512
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
502
513
|
rekeyTo?: string | undefined;
|
|
503
514
|
staticFee?: AlgoAmount | undefined;
|
|
504
515
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -519,7 +530,7 @@ export declare class AppClient {
|
|
|
519
530
|
lease?: string | Uint8Array | undefined;
|
|
520
531
|
note?: string | Uint8Array | undefined;
|
|
521
532
|
maxFee?: AlgoAmount | undefined;
|
|
522
|
-
signer?: algosdk.TransactionSigner |
|
|
533
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
523
534
|
rekeyTo?: string | undefined;
|
|
524
535
|
staticFee?: AlgoAmount | undefined;
|
|
525
536
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -540,7 +551,7 @@ export declare class AppClient {
|
|
|
540
551
|
lease?: string | Uint8Array | undefined;
|
|
541
552
|
note?: string | Uint8Array | undefined;
|
|
542
553
|
maxFee?: AlgoAmount | undefined;
|
|
543
|
-
signer?: algosdk.TransactionSigner |
|
|
554
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
544
555
|
rekeyTo?: string | undefined;
|
|
545
556
|
staticFee?: AlgoAmount | undefined;
|
|
546
557
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -564,7 +575,7 @@ export declare class AppClient {
|
|
|
564
575
|
note?: string | Uint8Array | undefined;
|
|
565
576
|
maxFee?: AlgoAmount | undefined;
|
|
566
577
|
args?: Uint8Array[] | undefined;
|
|
567
|
-
signer?: algosdk.TransactionSigner |
|
|
578
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
568
579
|
rekeyTo?: string | undefined;
|
|
569
580
|
staticFee?: AlgoAmount | undefined;
|
|
570
581
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -578,7 +589,7 @@ export declare class AppClient {
|
|
|
578
589
|
sender?: string | undefined;
|
|
579
590
|
} & AppClientCompilationParams) | undefined) => Promise<{
|
|
580
591
|
sender: string;
|
|
581
|
-
signer?: algosdk.TransactionSigner |
|
|
592
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
582
593
|
rekeyTo?: string | undefined;
|
|
583
594
|
note?: string | Uint8Array | undefined;
|
|
584
595
|
lease?: string | Uint8Array | undefined;
|
|
@@ -604,7 +615,7 @@ export declare class AppClient {
|
|
|
604
615
|
note?: string | Uint8Array | undefined;
|
|
605
616
|
maxFee?: AlgoAmount | undefined;
|
|
606
617
|
args?: Uint8Array[] | undefined;
|
|
607
|
-
signer?: algosdk.TransactionSigner |
|
|
618
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
608
619
|
rekeyTo?: string | undefined;
|
|
609
620
|
staticFee?: AlgoAmount | undefined;
|
|
610
621
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -623,7 +634,7 @@ export declare class AppClient {
|
|
|
623
634
|
note?: string | Uint8Array | undefined;
|
|
624
635
|
maxFee?: AlgoAmount | undefined;
|
|
625
636
|
args?: Uint8Array[] | undefined;
|
|
626
|
-
signer?: algosdk.TransactionSigner |
|
|
637
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
627
638
|
rekeyTo?: string | undefined;
|
|
628
639
|
staticFee?: AlgoAmount | undefined;
|
|
629
640
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -642,7 +653,7 @@ export declare class AppClient {
|
|
|
642
653
|
note?: string | Uint8Array | undefined;
|
|
643
654
|
maxFee?: AlgoAmount | undefined;
|
|
644
655
|
args?: Uint8Array[] | undefined;
|
|
645
|
-
signer?: algosdk.TransactionSigner |
|
|
656
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
646
657
|
rekeyTo?: string | undefined;
|
|
647
658
|
staticFee?: AlgoAmount | undefined;
|
|
648
659
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -661,7 +672,7 @@ export declare class AppClient {
|
|
|
661
672
|
note?: string | Uint8Array | undefined;
|
|
662
673
|
maxFee?: AlgoAmount | undefined;
|
|
663
674
|
args?: Uint8Array[] | undefined;
|
|
664
|
-
signer?: algosdk.TransactionSigner |
|
|
675
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
665
676
|
rekeyTo?: string | undefined;
|
|
666
677
|
staticFee?: AlgoAmount | undefined;
|
|
667
678
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -680,7 +691,7 @@ export declare class AppClient {
|
|
|
680
691
|
note?: string | Uint8Array | undefined;
|
|
681
692
|
maxFee?: AlgoAmount | undefined;
|
|
682
693
|
args?: Uint8Array[] | undefined;
|
|
683
|
-
signer?: algosdk.TransactionSigner |
|
|
694
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
684
695
|
rekeyTo?: string | undefined;
|
|
685
696
|
staticFee?: AlgoAmount | undefined;
|
|
686
697
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -704,7 +715,7 @@ export declare class AppClient {
|
|
|
704
715
|
amount: AlgoAmount;
|
|
705
716
|
closeRemainderTo?: string | undefined;
|
|
706
717
|
maxFee?: AlgoAmount | undefined;
|
|
707
|
-
signer?: algosdk.TransactionSigner |
|
|
718
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
708
719
|
rekeyTo?: string | undefined;
|
|
709
720
|
staticFee?: AlgoAmount | undefined;
|
|
710
721
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -723,7 +734,7 @@ export declare class AppClient {
|
|
|
723
734
|
lease?: string | Uint8Array | undefined;
|
|
724
735
|
note?: string | Uint8Array | undefined;
|
|
725
736
|
maxFee?: AlgoAmount | undefined;
|
|
726
|
-
signer?: algosdk.TransactionSigner |
|
|
737
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
727
738
|
rekeyTo?: string | undefined;
|
|
728
739
|
staticFee?: AlgoAmount | undefined;
|
|
729
740
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -750,7 +761,7 @@ export declare class AppClient {
|
|
|
750
761
|
lease?: string | Uint8Array | undefined;
|
|
751
762
|
note?: string | Uint8Array | undefined;
|
|
752
763
|
maxFee?: AlgoAmount | undefined;
|
|
753
|
-
signer?: algosdk.TransactionSigner |
|
|
764
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
754
765
|
rekeyTo?: string | undefined;
|
|
755
766
|
staticFee?: AlgoAmount | undefined;
|
|
756
767
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -777,7 +788,7 @@ export declare class AppClient {
|
|
|
777
788
|
lease?: string | Uint8Array | undefined;
|
|
778
789
|
note?: string | Uint8Array | undefined;
|
|
779
790
|
maxFee?: AlgoAmount | undefined;
|
|
780
|
-
signer?: algosdk.TransactionSigner |
|
|
791
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
781
792
|
rekeyTo?: string | undefined;
|
|
782
793
|
staticFee?: AlgoAmount | undefined;
|
|
783
794
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -804,7 +815,7 @@ export declare class AppClient {
|
|
|
804
815
|
lease?: string | Uint8Array | undefined;
|
|
805
816
|
note?: string | Uint8Array | undefined;
|
|
806
817
|
maxFee?: AlgoAmount | undefined;
|
|
807
|
-
signer?: algosdk.TransactionSigner |
|
|
818
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
808
819
|
rekeyTo?: string | undefined;
|
|
809
820
|
staticFee?: AlgoAmount | undefined;
|
|
810
821
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -831,7 +842,7 @@ export declare class AppClient {
|
|
|
831
842
|
lease?: string | Uint8Array | undefined;
|
|
832
843
|
note?: string | Uint8Array | undefined;
|
|
833
844
|
maxFee?: AlgoAmount | undefined;
|
|
834
|
-
signer?: algosdk.TransactionSigner |
|
|
845
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
835
846
|
rekeyTo?: string | undefined;
|
|
836
847
|
staticFee?: AlgoAmount | undefined;
|
|
837
848
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -859,7 +870,7 @@ export declare class AppClient {
|
|
|
859
870
|
note?: string | Uint8Array | undefined;
|
|
860
871
|
maxFee?: AlgoAmount | undefined;
|
|
861
872
|
args?: Uint8Array[] | undefined;
|
|
862
|
-
signer?: algosdk.TransactionSigner |
|
|
873
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
863
874
|
rekeyTo?: string | undefined;
|
|
864
875
|
staticFee?: AlgoAmount | undefined;
|
|
865
876
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -878,7 +889,7 @@ export declare class AppClient {
|
|
|
878
889
|
note?: string | Uint8Array | undefined;
|
|
879
890
|
maxFee?: AlgoAmount | undefined;
|
|
880
891
|
args?: Uint8Array[] | undefined;
|
|
881
|
-
signer?: algosdk.TransactionSigner |
|
|
892
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
882
893
|
rekeyTo?: string | undefined;
|
|
883
894
|
staticFee?: AlgoAmount | undefined;
|
|
884
895
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -897,7 +908,7 @@ export declare class AppClient {
|
|
|
897
908
|
note?: string | Uint8Array | undefined;
|
|
898
909
|
maxFee?: AlgoAmount | undefined;
|
|
899
910
|
args?: Uint8Array[] | undefined;
|
|
900
|
-
signer?: algosdk.TransactionSigner |
|
|
911
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
901
912
|
rekeyTo?: string | undefined;
|
|
902
913
|
staticFee?: AlgoAmount | undefined;
|
|
903
914
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -916,7 +927,7 @@ export declare class AppClient {
|
|
|
916
927
|
note?: string | Uint8Array | undefined;
|
|
917
928
|
maxFee?: AlgoAmount | undefined;
|
|
918
929
|
args?: Uint8Array[] | undefined;
|
|
919
|
-
signer?: algosdk.TransactionSigner |
|
|
930
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
920
931
|
rekeyTo?: string | undefined;
|
|
921
932
|
staticFee?: AlgoAmount | undefined;
|
|
922
933
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -935,7 +946,7 @@ export declare class AppClient {
|
|
|
935
946
|
note?: string | Uint8Array | undefined;
|
|
936
947
|
maxFee?: AlgoAmount | undefined;
|
|
937
948
|
args?: Uint8Array[] | undefined;
|
|
938
|
-
signer?: algosdk.TransactionSigner |
|
|
949
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
939
950
|
rekeyTo?: string | undefined;
|
|
940
951
|
staticFee?: AlgoAmount | undefined;
|
|
941
952
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -954,7 +965,7 @@ export declare class AppClient {
|
|
|
954
965
|
note?: string | Uint8Array | undefined;
|
|
955
966
|
maxFee?: AlgoAmount | undefined;
|
|
956
967
|
args?: Uint8Array[] | undefined;
|
|
957
|
-
signer?: algosdk.TransactionSigner |
|
|
968
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
958
969
|
rekeyTo?: string | undefined;
|
|
959
970
|
staticFee?: AlgoAmount | undefined;
|
|
960
971
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -978,7 +989,7 @@ export declare class AppClient {
|
|
|
978
989
|
amount: AlgoAmount;
|
|
979
990
|
closeRemainderTo?: string | undefined;
|
|
980
991
|
maxFee?: AlgoAmount | undefined;
|
|
981
|
-
signer?: algosdk.TransactionSigner |
|
|
992
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
982
993
|
rekeyTo?: string | undefined;
|
|
983
994
|
staticFee?: AlgoAmount | undefined;
|
|
984
995
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1005,7 +1016,7 @@ export declare class AppClient {
|
|
|
1005
1016
|
lease?: string | Uint8Array | undefined;
|
|
1006
1017
|
note?: string | Uint8Array | undefined;
|
|
1007
1018
|
maxFee?: AlgoAmount | undefined;
|
|
1008
|
-
signer?: algosdk.TransactionSigner |
|
|
1019
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1009
1020
|
rekeyTo?: string | undefined;
|
|
1010
1021
|
staticFee?: AlgoAmount | undefined;
|
|
1011
1022
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1021,8 +1032,8 @@ export declare class AppClient {
|
|
|
1021
1032
|
method: string;
|
|
1022
1033
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1023
1034
|
} & AppClientCompilationParams & SendParams) => Promise<{
|
|
1024
|
-
compiledApproval?: CompiledTeal | undefined;
|
|
1025
|
-
compiledClear?: CompiledTeal | undefined;
|
|
1035
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
1036
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
1026
1037
|
groupId: string;
|
|
1027
1038
|
txIds: string[];
|
|
1028
1039
|
returns?: ABIReturn[] | undefined;
|
|
@@ -1039,7 +1050,7 @@ export declare class AppClient {
|
|
|
1039
1050
|
lease?: string | Uint8Array | undefined;
|
|
1040
1051
|
note?: string | Uint8Array | undefined;
|
|
1041
1052
|
maxFee?: AlgoAmount | undefined;
|
|
1042
|
-
signer?: algosdk.TransactionSigner |
|
|
1053
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1043
1054
|
rekeyTo?: string | undefined;
|
|
1044
1055
|
staticFee?: AlgoAmount | undefined;
|
|
1045
1056
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1071,7 +1082,7 @@ export declare class AppClient {
|
|
|
1071
1082
|
lease?: string | Uint8Array | undefined;
|
|
1072
1083
|
note?: string | Uint8Array | undefined;
|
|
1073
1084
|
maxFee?: AlgoAmount | undefined;
|
|
1074
|
-
signer?: algosdk.TransactionSigner |
|
|
1085
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1075
1086
|
rekeyTo?: string | undefined;
|
|
1076
1087
|
staticFee?: AlgoAmount | undefined;
|
|
1077
1088
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1103,7 +1114,7 @@ export declare class AppClient {
|
|
|
1103
1114
|
lease?: string | Uint8Array | undefined;
|
|
1104
1115
|
note?: string | Uint8Array | undefined;
|
|
1105
1116
|
maxFee?: AlgoAmount | undefined;
|
|
1106
|
-
signer?: algosdk.TransactionSigner |
|
|
1117
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1107
1118
|
rekeyTo?: string | undefined;
|
|
1108
1119
|
staticFee?: AlgoAmount | undefined;
|
|
1109
1120
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1135,7 +1146,7 @@ export declare class AppClient {
|
|
|
1135
1146
|
lease?: string | Uint8Array | undefined;
|
|
1136
1147
|
note?: string | Uint8Array | undefined;
|
|
1137
1148
|
maxFee?: AlgoAmount | undefined;
|
|
1138
|
-
signer?: algosdk.TransactionSigner |
|
|
1149
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1139
1150
|
rekeyTo?: string | undefined;
|
|
1140
1151
|
staticFee?: AlgoAmount | undefined;
|
|
1141
1152
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1168,7 +1179,7 @@ export declare class AppClient {
|
|
|
1168
1179
|
note?: string | Uint8Array | undefined;
|
|
1169
1180
|
maxFee?: AlgoAmount | undefined;
|
|
1170
1181
|
args?: Uint8Array[] | undefined;
|
|
1171
|
-
signer?: algosdk.TransactionSigner |
|
|
1182
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1172
1183
|
rekeyTo?: string | undefined;
|
|
1173
1184
|
staticFee?: AlgoAmount | undefined;
|
|
1174
1185
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1181,8 +1192,8 @@ export declare class AppClient {
|
|
|
1181
1192
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1182
1193
|
sender?: string | undefined;
|
|
1183
1194
|
} & AppClientCompilationParams & SendParams) | undefined) => Promise<{
|
|
1184
|
-
compiledApproval?: CompiledTeal | undefined;
|
|
1185
|
-
compiledClear?: CompiledTeal | undefined;
|
|
1195
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
1196
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
1186
1197
|
groupId: string;
|
|
1187
1198
|
txIds: string[];
|
|
1188
1199
|
returns?: ABIReturn[] | undefined;
|
|
@@ -1198,7 +1209,7 @@ export declare class AppClient {
|
|
|
1198
1209
|
note?: string | Uint8Array | undefined;
|
|
1199
1210
|
maxFee?: AlgoAmount | undefined;
|
|
1200
1211
|
args?: Uint8Array[] | undefined;
|
|
1201
|
-
signer?: algosdk.TransactionSigner |
|
|
1212
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1202
1213
|
rekeyTo?: string | undefined;
|
|
1203
1214
|
staticFee?: AlgoAmount | undefined;
|
|
1204
1215
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1226,7 +1237,7 @@ export declare class AppClient {
|
|
|
1226
1237
|
note?: string | Uint8Array | undefined;
|
|
1227
1238
|
maxFee?: AlgoAmount | undefined;
|
|
1228
1239
|
args?: Uint8Array[] | undefined;
|
|
1229
|
-
signer?: algosdk.TransactionSigner |
|
|
1240
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1230
1241
|
rekeyTo?: string | undefined;
|
|
1231
1242
|
staticFee?: AlgoAmount | undefined;
|
|
1232
1243
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1254,7 +1265,7 @@ export declare class AppClient {
|
|
|
1254
1265
|
note?: string | Uint8Array | undefined;
|
|
1255
1266
|
maxFee?: AlgoAmount | undefined;
|
|
1256
1267
|
args?: Uint8Array[] | undefined;
|
|
1257
|
-
signer?: algosdk.TransactionSigner |
|
|
1268
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1258
1269
|
rekeyTo?: string | undefined;
|
|
1259
1270
|
staticFee?: AlgoAmount | undefined;
|
|
1260
1271
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1282,7 +1293,7 @@ export declare class AppClient {
|
|
|
1282
1293
|
note?: string | Uint8Array | undefined;
|
|
1283
1294
|
maxFee?: AlgoAmount | undefined;
|
|
1284
1295
|
args?: Uint8Array[] | undefined;
|
|
1285
|
-
signer?: algosdk.TransactionSigner |
|
|
1296
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1286
1297
|
rekeyTo?: string | undefined;
|
|
1287
1298
|
staticFee?: AlgoAmount | undefined;
|
|
1288
1299
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1310,7 +1321,7 @@ export declare class AppClient {
|
|
|
1310
1321
|
note?: string | Uint8Array | undefined;
|
|
1311
1322
|
maxFee?: AlgoAmount | undefined;
|
|
1312
1323
|
args?: Uint8Array[] | undefined;
|
|
1313
|
-
signer?: algosdk.TransactionSigner |
|
|
1324
|
+
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1314
1325
|
rekeyTo?: string | undefined;
|
|
1315
1326
|
staticFee?: AlgoAmount | undefined;
|
|
1316
1327
|
extraFee?: AlgoAmount | undefined;
|
|
@@ -1507,7 +1518,7 @@ export declare class AppClient {
|
|
|
1507
1518
|
* @param isClearStateProgram Whether or not the code was running the clear state program (defaults to approval program)
|
|
1508
1519
|
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
1509
1520
|
*/
|
|
1510
|
-
exposeLogicError(e: Error, isClearStateProgram?: boolean): Error
|
|
1521
|
+
exposeLogicError(e: Error, isClearStateProgram?: boolean): Promise<Error>;
|
|
1511
1522
|
/**
|
|
1512
1523
|
* Export the current source maps for the app.
|
|
1513
1524
|
* @returns The source maps
|
|
@@ -1558,6 +1569,9 @@ export declare class AppClient {
|
|
|
1558
1569
|
/** Whether or not the code was running the clear state program (defaults to approval program) */ isClearStateProgram?: boolean;
|
|
1559
1570
|
/** Approval program source map */ approvalSourceMap?: SourceMap;
|
|
1560
1571
|
/** Clear state program source map */ clearSourceMap?: SourceMap;
|
|
1572
|
+
/** program bytes */ program?: Uint8Array;
|
|
1573
|
+
/** ARC56 approval source info */ approvalSourceInfo?: ProgramSourceInfo;
|
|
1574
|
+
/** ARC56 clear source info */ clearSourceInfo?: ProgramSourceInfo;
|
|
1561
1575
|
}): Error;
|
|
1562
1576
|
/**
|
|
1563
1577
|
* Compiles the approval and clear state programs (if TEAL templates provided),
|
|
@@ -1587,9 +1601,13 @@ export declare class AppClient {
|
|
|
1587
1601
|
private getMethodCallParamsMethods;
|
|
1588
1602
|
private getMethodCallSendMethods;
|
|
1589
1603
|
private getMethodCallCreateTransactionMethods;
|
|
1590
|
-
/** Returns the sender for a call, using the `defaultSender`
|
|
1604
|
+
/** Returns the sender for a call, using the provided sender or using the `defaultSender`
|
|
1591
1605
|
* if none provided and throws an error if neither provided */
|
|
1592
1606
|
private getSender;
|
|
1607
|
+
/** Returns the signer for a call, using the provided signer or the `defaultSigner`
|
|
1608
|
+
* if no signer was provided and the call will use default sender
|
|
1609
|
+
* or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
|
|
1610
|
+
private getSigner;
|
|
1593
1611
|
private getBareParams;
|
|
1594
1612
|
private getABIParams;
|
|
1595
1613
|
/** Make the given call and catch any errors, augmenting with debugging information before re-throwing. */
|
|
@@ -1637,8 +1655,8 @@ export declare class ApplicationClient {
|
|
|
1637
1655
|
* @returns The compiled approval and clear state programs
|
|
1638
1656
|
*/
|
|
1639
1657
|
compile(compilation?: AppClientCompilationParams): Promise<{
|
|
1640
|
-
approvalCompiled: CompiledTeal;
|
|
1641
|
-
clearCompiled: CompiledTeal;
|
|
1658
|
+
approvalCompiled: import("./app").CompiledTeal;
|
|
1659
|
+
clearCompiled: import("./app").CompiledTeal;
|
|
1642
1660
|
}>;
|
|
1643
1661
|
/**
|
|
1644
1662
|
* Export the current source maps for the app.
|
|
@@ -1666,8 +1684,8 @@ export declare class ApplicationClient {
|
|
|
1666
1684
|
deploy(deploy?: AppClientDeployParams): Promise<(Partial<AppCompilationResult> & AppMetadata & {
|
|
1667
1685
|
operationPerformed: "nothing";
|
|
1668
1686
|
}) | {
|
|
1669
|
-
compiledApproval: CompiledTeal;
|
|
1670
|
-
compiledClear: CompiledTeal;
|
|
1687
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
1688
|
+
compiledClear: import("./app").CompiledTeal;
|
|
1671
1689
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1672
1690
|
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1673
1691
|
transaction: algosdk.Transaction;
|
|
@@ -1675,7 +1693,7 @@ export declare class ApplicationClient {
|
|
|
1675
1693
|
createdRound: number;
|
|
1676
1694
|
updatedRound: number;
|
|
1677
1695
|
createdMetadata: import("./app").AppDeployMetadata;
|
|
1678
|
-
deleted: boolean;
|
|
1696
|
+
deleted: boolean;
|
|
1679
1697
|
appId: number | bigint;
|
|
1680
1698
|
appAddress: string;
|
|
1681
1699
|
name: string;
|
|
@@ -1683,10 +1701,11 @@ export declare class ApplicationClient {
|
|
|
1683
1701
|
deletable?: boolean | undefined;
|
|
1684
1702
|
updatable?: boolean | undefined;
|
|
1685
1703
|
return?: ABIReturn | undefined;
|
|
1704
|
+
/** Configuration to resolve app by creator and name `getCreatorAppsByName` */
|
|
1686
1705
|
operationPerformed: "update" | "create";
|
|
1687
1706
|
} | {
|
|
1688
|
-
compiledApproval: CompiledTeal;
|
|
1689
|
-
compiledClear: CompiledTeal;
|
|
1707
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
1708
|
+
compiledClear: import("./app").CompiledTeal;
|
|
1690
1709
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1691
1710
|
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1692
1711
|
transaction: algosdk.Transaction;
|
|
@@ -1694,14 +1713,14 @@ export declare class ApplicationClient {
|
|
|
1694
1713
|
createdRound: number;
|
|
1695
1714
|
updatedRound: number;
|
|
1696
1715
|
createdMetadata: import("./app").AppDeployMetadata;
|
|
1697
|
-
deleted: boolean;
|
|
1716
|
+
deleted: boolean;
|
|
1698
1717
|
appId: number | bigint;
|
|
1699
1718
|
appAddress: string;
|
|
1700
1719
|
name: string;
|
|
1701
1720
|
version: string;
|
|
1702
1721
|
deletable?: boolean | undefined;
|
|
1703
1722
|
updatable?: boolean | undefined;
|
|
1704
|
-
return?: ABIReturn | undefined;
|
|
1723
|
+
return?: ABIReturn | undefined;
|
|
1705
1724
|
deleteReturn?: ABIReturn | undefined;
|
|
1706
1725
|
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
1707
1726
|
operationPerformed: "replace";
|
|
@@ -1714,8 +1733,8 @@ export declare class ApplicationClient {
|
|
|
1714
1733
|
* @returns The details of the created app, or the transaction to create it if `skipSending` and the compilation result
|
|
1715
1734
|
*/
|
|
1716
1735
|
create(create?: AppClientCreateParams): Promise<{
|
|
1717
|
-
compiledApproval: CompiledTeal;
|
|
1718
|
-
compiledClear: CompiledTeal;
|
|
1736
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
1737
|
+
compiledClear: import("./app").CompiledTeal;
|
|
1719
1738
|
return?: ABIReturn | undefined;
|
|
1720
1739
|
transactions: algosdk.Transaction[];
|
|
1721
1740
|
confirmations?: algosdk.modelsv2.PendingTransactionResponse[] | undefined;
|
|
@@ -1732,8 +1751,8 @@ export declare class ApplicationClient {
|
|
|
1732
1751
|
* @returns The transaction send result and the compilation result
|
|
1733
1752
|
*/
|
|
1734
1753
|
update(update?: AppClientUpdateParams): Promise<{
|
|
1735
|
-
compiledApproval: CompiledTeal;
|
|
1736
|
-
compiledClear: CompiledTeal;
|
|
1754
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
1755
|
+
compiledClear: import("./app").CompiledTeal;
|
|
1737
1756
|
return?: ABIReturn | undefined;
|
|
1738
1757
|
transactions: algosdk.Transaction[];
|
|
1739
1758
|
confirmations?: algosdk.modelsv2.PendingTransactionResponse[] | undefined;
|