@algorandfoundation/algokit-utils 7.0.0-beta.9 → 8.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +21 -3
- package/account/account.d.ts +4 -1
- package/account/account.js +10 -7
- package/account/account.js.map +1 -1
- package/account/account.mjs +11 -8
- 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.d.ts +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.d.ts +1 -0
- package/amount.js +3 -2
- package/amount.js.map +1 -1
- package/amount.mjs +3 -3
- package/amount.mjs.map +1 -1
- package/app-client.d.ts +4 -4
- package/app-client.js +4 -4
- package/app-client.js.map +1 -1
- package/app-client.mjs +4 -4
- package/app-client.mjs.map +1 -1
- package/app-deploy.js +25 -15
- package/app-deploy.js.map +1 -1
- package/app-deploy.mjs +27 -17
- package/app-deploy.mjs.map +1 -1
- package/app.d.ts +2 -2
- package/app.js +9 -6
- package/app.js.map +1 -1
- package/app.mjs +9 -6
- 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 +7 -1
- package/index.js.map +1 -1
- package/index.mjs +3 -2
- package/index.mjs.map +1 -1
- package/indexer-lookup.d.ts +10 -8
- package/indexer-lookup.js +14 -10
- package/indexer-lookup.js.map +1 -1
- package/indexer-lookup.mjs +14 -10
- 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.d.ts +1 -7
- package/network-client.js +2 -9
- package/network-client.js.map +1 -1
- package/network-client.mjs +2 -9
- package/network-client.mjs.map +1 -1
- package/package.json +5 -5
- package/testing/_asset.d.ts +2 -1
- package/testing/account.d.ts +4 -3
- package/testing/account.js +8 -2
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +9 -3
- 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 +5 -6
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +5 -6
- 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 +7 -1
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs +7 -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.d.ts +4 -1
- package/transaction/perform-atomic-transaction-composer-simulate.js +14 -9
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.mjs +15 -10
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -1
- package/transaction/transaction.d.ts +13 -22
- package/transaction/transaction.js +164 -110
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +163 -109
- 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 +3 -1
- package/transfer/transfer.js.map +1 -1
- package/transfer/transfer.mjs +3 -1
- package/transfer/transfer.mjs.map +1 -1
- package/types/account-manager.d.ts +20 -20
- package/types/account-manager.js +36 -27
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +38 -29
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +17 -8
- package/types/account.js +2 -2
- package/types/account.js.map +1 -1
- package/types/account.mjs +3 -3
- package/types/account.mjs.map +1 -1
- package/types/algo-http-client-with-retry.d.ts +1 -2
- package/types/algo-http-client-with-retry.js +33 -3
- package/types/algo-http-client-with-retry.js.map +1 -1
- package/types/algo-http-client-with-retry.mjs +32 -2
- 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 +16 -14
- 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 +109 -105
- 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 +6 -7
- package/types/algorand-client.js +3 -6
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +5 -5
- 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 +298 -286
- package/types/app-client.js +148 -41
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +147 -40
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +4 -4
- package/types/app-deployer.js +23 -24
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +25 -26
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +130 -130
- package/types/app-factory.js +4 -5
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +5 -6
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +5 -5
- package/types/app-manager.js +116 -38
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +117 -39
- 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 +12 -11
- package/types/app.js.map +1 -1
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +9 -9
- package/types/asset-manager.js +10 -13
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +10 -13
- 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.d.ts +2 -9
- package/types/client-manager.js +11 -21
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +11 -21
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +58 -46
- package/types/composer.js +154 -105
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +156 -105
- 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.d.ts +2 -1
- package/types/dispenser-client.js +5 -1
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +5 -1
- package/types/dispenser-client.mjs.map +1 -1
- package/types/indexer.d.ts +74 -755
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs.map +1 -1
- package/types/kmd-account-manager.d.ts +2 -2
- 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.d.ts +1 -1
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +6 -7
- package/util.js.map +1 -1
- package/util.mjs.map +1 -1
- package/types/urlTokenBaseHTTPClient.d.ts +0 -40
- package/types/urlTokenBaseHTTPClient.js +0 -153
- package/types/urlTokenBaseHTTPClient.js.map +0 -1
- package/types/urlTokenBaseHTTPClient.mjs +0 -151
- package/types/urlTokenBaseHTTPClient.mjs.map +0 -1
package/types/app-client.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import algosdk from 'algosdk';
|
|
1
|
+
import algosdk, { Address } from 'algosdk';
|
|
2
2
|
import { TransactionSignerAccount } from './account';
|
|
3
3
|
import { AlgorandClientInterface } from './algorand-client-interface';
|
|
4
4
|
import { AlgoAmount } from './amount';
|
|
5
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 } from './app-arc56';
|
|
6
|
+
import { ABIStruct, Arc56Contract, Arc56Method, ProgramSourceInfo } from './app-arc56';
|
|
7
7
|
import { AppLookup } from './app-deployer';
|
|
8
8
|
import { AppManager, BoxIdentifier } from './app-manager';
|
|
9
9
|
import { AppSpec } from './app-spec';
|
|
10
|
-
import
|
|
10
|
+
import { AppCallMethodCall, AppCallParams, AppDeleteMethodCall, AppDeleteParams, AppMethodCall, AppMethodCallTransactionArgument, CommonAppCallParams, PaymentParams } from './composer';
|
|
11
11
|
import { Expand } from './expand';
|
|
12
12
|
import { SendParams, SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
|
|
13
13
|
import ABIMethod = algosdk.ABIMethod;
|
|
@@ -17,13 +17,13 @@ import ABIValue = algosdk.ABIValue;
|
|
|
17
17
|
import Algodv2 = algosdk.Algodv2;
|
|
18
18
|
import Indexer = algosdk.Indexer;
|
|
19
19
|
import OnApplicationComplete = algosdk.OnApplicationComplete;
|
|
20
|
-
import SourceMap = algosdk.
|
|
20
|
+
import SourceMap = algosdk.ProgramSourceMap;
|
|
21
21
|
import SuggestedParams = algosdk.SuggestedParams;
|
|
22
22
|
import TransactionSigner = algosdk.TransactionSigner;
|
|
23
23
|
/** Configuration to resolve app by creator and name `getCreatorAppsByName` */
|
|
24
24
|
export type ResolveAppByCreatorAndNameBase = {
|
|
25
25
|
/** The address of the app creator account to resolve the app by */
|
|
26
|
-
creatorAddress: string;
|
|
26
|
+
creatorAddress: Address | string;
|
|
27
27
|
/** The optional name override to resolve the app by within the creator account (default: uses the name in the ABI contract) */
|
|
28
28
|
name?: string;
|
|
29
29
|
/** The mechanism to find an existing app instance metadata for the given creator and name; either:
|
|
@@ -114,8 +114,7 @@ export interface AppClientDeployParams extends AppClientDeployCoreParams, AppCli
|
|
|
114
114
|
/** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
|
|
115
115
|
schema?: Partial<AppStorageSchema>;
|
|
116
116
|
}
|
|
117
|
-
export
|
|
118
|
-
}
|
|
117
|
+
export type AppClientCallRawArgs = RawAppCallArgs;
|
|
119
118
|
export interface AppClientCallABIArgs extends Omit<ABIAppCallArgs, 'method'> {
|
|
120
119
|
/** If calling an ABI method then either the name of the method, or the ABI signature */
|
|
121
120
|
method: string;
|
|
@@ -207,7 +206,7 @@ export interface AppClientParams {
|
|
|
207
206
|
*/
|
|
208
207
|
appName?: string;
|
|
209
208
|
/** Optional address to use for the account to use as the default sender for calls. */
|
|
210
|
-
defaultSender?: string;
|
|
209
|
+
defaultSender?: Address | string;
|
|
211
210
|
/** Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). */
|
|
212
211
|
defaultSigner?: TransactionSigner;
|
|
213
212
|
/** Optional source map for the approval program */
|
|
@@ -215,6 +214,8 @@ export interface AppClientParams {
|
|
|
215
214
|
/** Optional source map for the clear state program */
|
|
216
215
|
clearSourceMap?: SourceMap;
|
|
217
216
|
}
|
|
217
|
+
/** Parameters to clone an app client */
|
|
218
|
+
export type CloneAppClientParams = Expand<Partial<Omit<AppClientParams, 'algorand' | 'appSpec'>>>;
|
|
218
219
|
/** onComplete parameter for a non-update app call */
|
|
219
220
|
export type CallOnComplete = {
|
|
220
221
|
/** On-complete of the call; defaults to no-op */
|
|
@@ -223,12 +224,12 @@ export type CallOnComplete = {
|
|
|
223
224
|
/** AppClient common parameters for a bare app call */
|
|
224
225
|
export type AppClientBareCallParams = Expand<Omit<CommonAppCallParams, 'appId' | 'sender' | 'onComplete'> & {
|
|
225
226
|
/** The address of the account sending the transaction, if undefined then the app client's defaultSender is used. */
|
|
226
|
-
sender?: string;
|
|
227
|
+
sender?: Address | string;
|
|
227
228
|
}>;
|
|
228
229
|
/** AppClient common parameters for an ABI method call */
|
|
229
230
|
export type AppClientMethodCallParams = Expand<Omit<CommonAppCallParams, 'appId' | 'sender' | 'method' | 'args'> & {
|
|
230
231
|
/** The address of the account sending the transaction, if undefined then the app client's defaultSender is used. */
|
|
231
|
-
sender?: string;
|
|
232
|
+
sender?: Address | string;
|
|
232
233
|
/** The method name or method signature to call if an ABI call is being emitted
|
|
233
234
|
* @example Method name
|
|
234
235
|
* `my_method`
|
|
@@ -243,18 +244,19 @@ export type AppClientMethodCallParams = Expand<Omit<CommonAppCallParams, 'appId'
|
|
|
243
244
|
* * A transaction (where the signer will be automatically assigned)
|
|
244
245
|
* * An unawaited transaction (e.g. from algorand.createTransaction.transactionType())
|
|
245
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)
|
|
246
248
|
*/
|
|
247
249
|
args?: (ABIValue | ABIStruct | AppMethodCallTransactionArgument | undefined)[];
|
|
248
250
|
}>;
|
|
249
251
|
/** Parameters for funding an app account */
|
|
250
252
|
export type FundAppParams = Expand<Omit<PaymentParams, 'receiver' | 'sender'> & SendParams & {
|
|
251
253
|
/** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
|
|
252
|
-
sender?: string;
|
|
254
|
+
sender?: Address | string;
|
|
253
255
|
}>;
|
|
254
256
|
/** Resolve an app client instance by looking up an app created by the given creator with the given name */
|
|
255
257
|
export type ResolveAppClientByCreatorAndName = Expand<Omit<AppClientParams, 'appId'> & {
|
|
256
258
|
/** The address of the creator account for the app */
|
|
257
|
-
creatorAddress: string;
|
|
259
|
+
creatorAddress: Address | string;
|
|
258
260
|
/** An optional cached app lookup that matches a name to on-chain details;
|
|
259
261
|
* either this is needed or indexer is required to be passed in to this `ClientManager` on construction.
|
|
260
262
|
*/
|
|
@@ -283,8 +285,13 @@ export declare class AppClient {
|
|
|
283
285
|
private _createTransactionsMethods;
|
|
284
286
|
private _sendMethods;
|
|
285
287
|
constructor(params: AppClientParams);
|
|
286
|
-
/**
|
|
287
|
-
|
|
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;
|
|
288
295
|
/**
|
|
289
296
|
* Returns a new `AppClient` client, resolving the app by creator address and name
|
|
290
297
|
* using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
|
|
@@ -309,8 +316,8 @@ export declare class AppClient {
|
|
|
309
316
|
/** The ID of the app instance this client is linked to. */
|
|
310
317
|
get appId(): bigint;
|
|
311
318
|
/** The app address of the app instance this client is linked to. */
|
|
312
|
-
get appAddress():
|
|
313
|
-
/** The name of the app (from the ARC-32 / ARC-56 app spec). */
|
|
319
|
+
get appAddress(): algosdk.Address;
|
|
320
|
+
/** The name of the app (from the ARC-32 / ARC-56 app spec or override). */
|
|
314
321
|
get appName(): string;
|
|
315
322
|
/** The ARC-56 app spec being used */
|
|
316
323
|
get appSpec(): Arc56Contract;
|
|
@@ -334,59 +341,59 @@ export declare class AppClient {
|
|
|
334
341
|
get params(): {
|
|
335
342
|
/** Return params for a payment transaction to fund the app account */
|
|
336
343
|
fundAppAccount: (params: {
|
|
337
|
-
lease?: string | Uint8Array | undefined;
|
|
338
|
-
note?: string | Uint8Array | undefined;
|
|
339
|
-
amount: AlgoAmount;
|
|
340
|
-
closeRemainderTo?: string | undefined;
|
|
341
344
|
maxFee?: AlgoAmount | undefined;
|
|
345
|
+
note?: string | Uint8Array | undefined;
|
|
342
346
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
343
|
-
|
|
347
|
+
lease?: string | Uint8Array | undefined;
|
|
348
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
344
349
|
staticFee?: AlgoAmount | undefined;
|
|
345
350
|
extraFee?: AlgoAmount | undefined;
|
|
346
|
-
validityWindow?: number | undefined;
|
|
351
|
+
validityWindow?: number | bigint | undefined;
|
|
347
352
|
firstValidRound?: bigint | undefined;
|
|
348
353
|
lastValidRound?: bigint | undefined;
|
|
354
|
+
amount: AlgoAmount;
|
|
355
|
+
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
349
356
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
350
357
|
suppressLog?: boolean | undefined;
|
|
351
358
|
populateAppCallResources?: boolean | undefined;
|
|
352
|
-
sender?: string | undefined;
|
|
359
|
+
sender?: string | algosdk.Address | undefined;
|
|
353
360
|
}) => {
|
|
354
|
-
sender:
|
|
361
|
+
sender: algosdk.Address;
|
|
355
362
|
signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
356
|
-
receiver:
|
|
357
|
-
lease?: string | Uint8Array | undefined;
|
|
358
|
-
note?: string | Uint8Array | undefined;
|
|
359
|
-
amount: AlgoAmount;
|
|
360
|
-
closeRemainderTo?: string | undefined;
|
|
363
|
+
receiver: algosdk.Address;
|
|
361
364
|
maxFee?: AlgoAmount | undefined;
|
|
362
|
-
|
|
365
|
+
note?: string | Uint8Array | undefined;
|
|
366
|
+
lease?: string | Uint8Array | undefined;
|
|
367
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
363
368
|
staticFee?: AlgoAmount | undefined;
|
|
364
369
|
extraFee?: AlgoAmount | undefined;
|
|
365
|
-
validityWindow?: number | undefined;
|
|
370
|
+
validityWindow?: number | bigint | undefined;
|
|
366
371
|
firstValidRound?: bigint | undefined;
|
|
367
372
|
lastValidRound?: bigint | undefined;
|
|
373
|
+
amount: AlgoAmount;
|
|
374
|
+
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
368
375
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
369
376
|
suppressLog?: boolean | undefined;
|
|
370
377
|
populateAppCallResources?: boolean | undefined;
|
|
371
378
|
};
|
|
372
379
|
/** Return params for an update ABI call, including deploy-time TEAL template replacements and compilation if provided */
|
|
373
380
|
update: (params: {
|
|
374
|
-
lease?: string | Uint8Array | undefined;
|
|
375
|
-
note?: string | Uint8Array | undefined;
|
|
376
381
|
maxFee?: AlgoAmount | undefined;
|
|
382
|
+
note?: string | Uint8Array | undefined;
|
|
377
383
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
378
|
-
|
|
384
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
385
|
+
lease?: string | Uint8Array | undefined;
|
|
386
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
379
387
|
staticFee?: AlgoAmount | undefined;
|
|
380
388
|
extraFee?: AlgoAmount | undefined;
|
|
381
|
-
validityWindow?: number | undefined;
|
|
389
|
+
validityWindow?: number | bigint | undefined;
|
|
382
390
|
firstValidRound?: bigint | undefined;
|
|
383
391
|
lastValidRound?: bigint | undefined;
|
|
384
|
-
|
|
385
|
-
accountReferences?: string[] | undefined;
|
|
392
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
386
393
|
appReferences?: bigint[] | undefined;
|
|
387
394
|
assetReferences?: bigint[] | undefined;
|
|
388
395
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
389
|
-
sender?: string | undefined;
|
|
396
|
+
sender?: string | algosdk.Address | undefined;
|
|
390
397
|
method: string;
|
|
391
398
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
392
399
|
} & AppClientCompilationParams) => Promise<{
|
|
@@ -396,22 +403,22 @@ export declare class AppClient {
|
|
|
396
403
|
clearStateProgram: Uint8Array;
|
|
397
404
|
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
398
405
|
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
399
|
-
lease?: string | Uint8Array | undefined;
|
|
400
|
-
note?: string | Uint8Array | undefined;
|
|
401
406
|
maxFee?: AlgoAmount | undefined;
|
|
407
|
+
note?: string | Uint8Array | undefined;
|
|
402
408
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
403
|
-
|
|
409
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
410
|
+
lease?: string | Uint8Array | undefined;
|
|
411
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
404
412
|
staticFee?: AlgoAmount | undefined;
|
|
405
413
|
extraFee?: AlgoAmount | undefined;
|
|
406
|
-
validityWindow?: number | undefined;
|
|
414
|
+
validityWindow?: number | bigint | undefined;
|
|
407
415
|
firstValidRound?: bigint | undefined;
|
|
408
416
|
lastValidRound?: bigint | undefined;
|
|
409
|
-
|
|
410
|
-
accountReferences?: string[] | undefined;
|
|
417
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
411
418
|
appReferences?: bigint[] | undefined;
|
|
412
419
|
assetReferences?: bigint[] | undefined;
|
|
413
420
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
414
|
-
sender?: string | undefined;
|
|
421
|
+
sender?: string | algosdk.Address | undefined;
|
|
415
422
|
method: string;
|
|
416
423
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
417
424
|
/** Any deploy-time parameters to replace in the TEAL code */
|
|
@@ -422,25 +429,25 @@ export declare class AppClient {
|
|
|
422
429
|
deletable?: boolean | undefined;
|
|
423
430
|
} & {
|
|
424
431
|
appId: bigint;
|
|
425
|
-
sender:
|
|
432
|
+
sender: algosdk.Address;
|
|
426
433
|
signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
427
434
|
method: Arc56Method;
|
|
428
435
|
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
429
436
|
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
430
|
-
|
|
431
|
-
note?: string | Uint8Array | undefined;
|
|
437
|
+
sender: string | algosdk.Address;
|
|
432
438
|
maxFee?: AlgoAmount | undefined;
|
|
439
|
+
note?: string | Uint8Array | undefined;
|
|
433
440
|
args?: Uint8Array[] | undefined;
|
|
434
441
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
435
|
-
|
|
436
|
-
|
|
442
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
443
|
+
lease?: string | Uint8Array | undefined;
|
|
444
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
437
445
|
staticFee?: AlgoAmount | undefined;
|
|
438
446
|
extraFee?: AlgoAmount | undefined;
|
|
439
|
-
validityWindow?: number | undefined;
|
|
447
|
+
validityWindow?: number | bigint | undefined;
|
|
440
448
|
firstValidRound?: bigint | undefined;
|
|
441
449
|
lastValidRound?: bigint | undefined;
|
|
442
|
-
|
|
443
|
-
accountReferences?: string[] | undefined;
|
|
450
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
444
451
|
appReferences?: bigint[] | undefined;
|
|
445
452
|
assetReferences?: bigint[] | undefined;
|
|
446
453
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -454,109 +461,109 @@ export declare class AppClient {
|
|
|
454
461
|
} | undefined;
|
|
455
462
|
extraProgramPages?: number | undefined;
|
|
456
463
|
}> | AppMethodCall<{
|
|
457
|
-
sender: string;
|
|
464
|
+
sender: string | algosdk.Address;
|
|
458
465
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
459
|
-
rekeyTo?: string | undefined;
|
|
466
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
460
467
|
note?: string | Uint8Array | undefined;
|
|
461
468
|
lease?: string | Uint8Array | undefined;
|
|
462
469
|
staticFee?: AlgoAmount | undefined;
|
|
463
470
|
extraFee?: AlgoAmount | undefined;
|
|
464
471
|
maxFee?: AlgoAmount | undefined;
|
|
465
|
-
validityWindow?: number | undefined;
|
|
472
|
+
validityWindow?: number | bigint | undefined;
|
|
466
473
|
firstValidRound?: bigint | undefined;
|
|
467
474
|
lastValidRound?: bigint | undefined;
|
|
468
475
|
appId: bigint;
|
|
469
476
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
470
477
|
args?: Uint8Array[] | undefined;
|
|
471
|
-
accountReferences?: string[] | undefined;
|
|
478
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
472
479
|
appReferences?: bigint[] | undefined;
|
|
473
480
|
assetReferences?: bigint[] | undefined;
|
|
474
481
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
475
482
|
approvalProgram: string | Uint8Array;
|
|
476
483
|
clearStateProgram: string | Uint8Array;
|
|
477
|
-
}> | AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
484
|
+
}> | AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
478
485
|
}>;
|
|
479
486
|
/** Return params for an opt-in ABI call */
|
|
480
487
|
optIn: (params: {
|
|
481
|
-
lease?: string | Uint8Array | undefined;
|
|
482
|
-
note?: string | Uint8Array | undefined;
|
|
483
488
|
maxFee?: AlgoAmount | undefined;
|
|
489
|
+
note?: string | Uint8Array | undefined;
|
|
484
490
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
485
|
-
|
|
491
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
492
|
+
lease?: string | Uint8Array | undefined;
|
|
493
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
486
494
|
staticFee?: AlgoAmount | undefined;
|
|
487
495
|
extraFee?: AlgoAmount | undefined;
|
|
488
|
-
validityWindow?: number | undefined;
|
|
496
|
+
validityWindow?: number | bigint | undefined;
|
|
489
497
|
firstValidRound?: bigint | undefined;
|
|
490
498
|
lastValidRound?: bigint | undefined;
|
|
491
|
-
|
|
492
|
-
accountReferences?: string[] | undefined;
|
|
499
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
493
500
|
appReferences?: bigint[] | undefined;
|
|
494
501
|
assetReferences?: bigint[] | undefined;
|
|
495
502
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
496
|
-
sender?: string | undefined;
|
|
503
|
+
sender?: string | algosdk.Address | undefined;
|
|
497
504
|
method: string;
|
|
498
505
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
499
506
|
}) => Promise<AppCallMethodCall>;
|
|
500
507
|
/** Return params for an delete ABI call */
|
|
501
508
|
delete: (params: {
|
|
502
|
-
lease?: string | Uint8Array | undefined;
|
|
503
|
-
note?: string | Uint8Array | undefined;
|
|
504
509
|
maxFee?: AlgoAmount | undefined;
|
|
510
|
+
note?: string | Uint8Array | undefined;
|
|
505
511
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
506
|
-
|
|
512
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
513
|
+
lease?: string | Uint8Array | undefined;
|
|
514
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
507
515
|
staticFee?: AlgoAmount | undefined;
|
|
508
516
|
extraFee?: AlgoAmount | undefined;
|
|
509
|
-
validityWindow?: number | undefined;
|
|
517
|
+
validityWindow?: number | bigint | undefined;
|
|
510
518
|
firstValidRound?: bigint | undefined;
|
|
511
519
|
lastValidRound?: bigint | undefined;
|
|
512
|
-
|
|
513
|
-
accountReferences?: string[] | undefined;
|
|
520
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
514
521
|
appReferences?: bigint[] | undefined;
|
|
515
522
|
assetReferences?: bigint[] | undefined;
|
|
516
523
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
517
|
-
sender?: string | undefined;
|
|
524
|
+
sender?: string | algosdk.Address | undefined;
|
|
518
525
|
method: string;
|
|
519
526
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
520
527
|
}) => Promise<AppDeleteMethodCall>;
|
|
521
528
|
/** Return params for an close out ABI call */
|
|
522
529
|
closeOut: (params: {
|
|
523
|
-
lease?: string | Uint8Array | undefined;
|
|
524
|
-
note?: string | Uint8Array | undefined;
|
|
525
530
|
maxFee?: AlgoAmount | undefined;
|
|
531
|
+
note?: string | Uint8Array | undefined;
|
|
526
532
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
527
|
-
|
|
533
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
534
|
+
lease?: string | Uint8Array | undefined;
|
|
535
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
528
536
|
staticFee?: AlgoAmount | undefined;
|
|
529
537
|
extraFee?: AlgoAmount | undefined;
|
|
530
|
-
validityWindow?: number | undefined;
|
|
538
|
+
validityWindow?: number | bigint | undefined;
|
|
531
539
|
firstValidRound?: bigint | undefined;
|
|
532
540
|
lastValidRound?: bigint | undefined;
|
|
533
|
-
|
|
534
|
-
accountReferences?: string[] | undefined;
|
|
541
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
535
542
|
appReferences?: bigint[] | undefined;
|
|
536
543
|
assetReferences?: bigint[] | undefined;
|
|
537
544
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
538
|
-
sender?: string | undefined;
|
|
545
|
+
sender?: string | algosdk.Address | undefined;
|
|
539
546
|
method: string;
|
|
540
547
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
541
548
|
}) => Promise<AppCallMethodCall>;
|
|
542
549
|
/** Return params for an ABI call */
|
|
543
550
|
call: (params: {
|
|
544
|
-
lease?: string | Uint8Array | undefined;
|
|
545
|
-
note?: string | Uint8Array | undefined;
|
|
546
551
|
maxFee?: AlgoAmount | undefined;
|
|
552
|
+
note?: string | Uint8Array | undefined;
|
|
547
553
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
548
|
-
|
|
554
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
555
|
+
lease?: string | Uint8Array | undefined;
|
|
556
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
549
557
|
staticFee?: AlgoAmount | undefined;
|
|
550
558
|
extraFee?: AlgoAmount | undefined;
|
|
551
|
-
validityWindow?: number | undefined;
|
|
559
|
+
validityWindow?: number | bigint | undefined;
|
|
552
560
|
firstValidRound?: bigint | undefined;
|
|
553
561
|
lastValidRound?: bigint | undefined;
|
|
554
|
-
|
|
555
|
-
accountReferences?: string[] | undefined;
|
|
562
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
556
563
|
appReferences?: bigint[] | undefined;
|
|
557
564
|
assetReferences?: bigint[] | undefined;
|
|
558
565
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
559
|
-
sender?: string | undefined;
|
|
566
|
+
sender?: string | algosdk.Address | undefined;
|
|
560
567
|
method: string;
|
|
561
568
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
562
569
|
} & CallOnComplete) => Promise<AppCallMethodCall>;
|
|
@@ -564,38 +571,38 @@ export declare class AppClient {
|
|
|
564
571
|
/** Interact with bare (raw) call parameters */ bare: {
|
|
565
572
|
/** Return params for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
566
573
|
update: (params?: ({
|
|
567
|
-
lease?: string | Uint8Array | undefined;
|
|
568
|
-
note?: string | Uint8Array | undefined;
|
|
569
574
|
maxFee?: AlgoAmount | undefined;
|
|
575
|
+
note?: string | Uint8Array | undefined;
|
|
570
576
|
args?: Uint8Array[] | undefined;
|
|
571
577
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
572
|
-
|
|
578
|
+
lease?: string | Uint8Array | undefined;
|
|
579
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
573
580
|
staticFee?: AlgoAmount | undefined;
|
|
574
581
|
extraFee?: AlgoAmount | undefined;
|
|
575
|
-
validityWindow?: number | undefined;
|
|
582
|
+
validityWindow?: number | bigint | undefined;
|
|
576
583
|
firstValidRound?: bigint | undefined;
|
|
577
584
|
lastValidRound?: bigint | undefined;
|
|
578
|
-
accountReferences?: string[] | undefined;
|
|
585
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
579
586
|
appReferences?: bigint[] | undefined;
|
|
580
587
|
assetReferences?: bigint[] | undefined;
|
|
581
588
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
582
|
-
sender?: string | undefined;
|
|
589
|
+
sender?: string | algosdk.Address | undefined;
|
|
583
590
|
} & AppClientCompilationParams) | undefined) => Promise<{
|
|
584
|
-
sender: string;
|
|
591
|
+
sender: string | algosdk.Address;
|
|
585
592
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
586
|
-
rekeyTo?: string | undefined;
|
|
593
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
587
594
|
note?: string | Uint8Array | undefined;
|
|
588
595
|
lease?: string | Uint8Array | undefined;
|
|
589
596
|
staticFee?: AlgoAmount | undefined;
|
|
590
597
|
extraFee?: AlgoAmount | undefined;
|
|
591
598
|
maxFee?: AlgoAmount | undefined;
|
|
592
|
-
validityWindow?: number | undefined;
|
|
599
|
+
validityWindow?: number | bigint | undefined;
|
|
593
600
|
firstValidRound?: bigint | undefined;
|
|
594
601
|
lastValidRound?: bigint | undefined;
|
|
595
602
|
appId: bigint;
|
|
596
603
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
597
604
|
args?: Uint8Array[] | undefined;
|
|
598
|
-
accountReferences?: string[] | undefined;
|
|
605
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
599
606
|
appReferences?: bigint[] | undefined;
|
|
600
607
|
assetReferences?: bigint[] | undefined;
|
|
601
608
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -604,98 +611,98 @@ export declare class AppClient {
|
|
|
604
611
|
}>;
|
|
605
612
|
/** Return params for an opt-in call */
|
|
606
613
|
optIn: (params?: {
|
|
607
|
-
lease?: string | Uint8Array | undefined;
|
|
608
|
-
note?: string | Uint8Array | undefined;
|
|
609
614
|
maxFee?: AlgoAmount | undefined;
|
|
615
|
+
note?: string | Uint8Array | undefined;
|
|
610
616
|
args?: Uint8Array[] | undefined;
|
|
611
617
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
612
|
-
|
|
618
|
+
lease?: string | Uint8Array | undefined;
|
|
619
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
613
620
|
staticFee?: AlgoAmount | undefined;
|
|
614
621
|
extraFee?: AlgoAmount | undefined;
|
|
615
|
-
validityWindow?: number | undefined;
|
|
622
|
+
validityWindow?: number | bigint | undefined;
|
|
616
623
|
firstValidRound?: bigint | undefined;
|
|
617
624
|
lastValidRound?: bigint | undefined;
|
|
618
|
-
accountReferences?: string[] | undefined;
|
|
625
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
619
626
|
appReferences?: bigint[] | undefined;
|
|
620
627
|
assetReferences?: bigint[] | undefined;
|
|
621
628
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
622
|
-
sender?: string | undefined;
|
|
629
|
+
sender?: string | algosdk.Address | undefined;
|
|
623
630
|
} | undefined) => AppCallParams;
|
|
624
631
|
/** Return params for a delete call */
|
|
625
632
|
delete: (params?: {
|
|
626
|
-
lease?: string | Uint8Array | undefined;
|
|
627
|
-
note?: string | Uint8Array | undefined;
|
|
628
633
|
maxFee?: AlgoAmount | undefined;
|
|
634
|
+
note?: string | Uint8Array | undefined;
|
|
629
635
|
args?: Uint8Array[] | undefined;
|
|
630
636
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
631
|
-
|
|
637
|
+
lease?: string | Uint8Array | undefined;
|
|
638
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
632
639
|
staticFee?: AlgoAmount | undefined;
|
|
633
640
|
extraFee?: AlgoAmount | undefined;
|
|
634
|
-
validityWindow?: number | undefined;
|
|
641
|
+
validityWindow?: number | bigint | undefined;
|
|
635
642
|
firstValidRound?: bigint | undefined;
|
|
636
643
|
lastValidRound?: bigint | undefined;
|
|
637
|
-
accountReferences?: string[] | undefined;
|
|
644
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
638
645
|
appReferences?: bigint[] | undefined;
|
|
639
646
|
assetReferences?: bigint[] | undefined;
|
|
640
647
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
641
|
-
sender?: string | undefined;
|
|
648
|
+
sender?: string | algosdk.Address | undefined;
|
|
642
649
|
} | undefined) => AppDeleteParams;
|
|
643
650
|
/** Return params for a clear state call */
|
|
644
651
|
clearState: (params?: {
|
|
645
|
-
lease?: string | Uint8Array | undefined;
|
|
646
|
-
note?: string | Uint8Array | undefined;
|
|
647
652
|
maxFee?: AlgoAmount | undefined;
|
|
653
|
+
note?: string | Uint8Array | undefined;
|
|
648
654
|
args?: Uint8Array[] | undefined;
|
|
649
655
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
650
|
-
|
|
656
|
+
lease?: string | Uint8Array | undefined;
|
|
657
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
651
658
|
staticFee?: AlgoAmount | undefined;
|
|
652
659
|
extraFee?: AlgoAmount | undefined;
|
|
653
|
-
validityWindow?: number | undefined;
|
|
660
|
+
validityWindow?: number | bigint | undefined;
|
|
654
661
|
firstValidRound?: bigint | undefined;
|
|
655
662
|
lastValidRound?: bigint | undefined;
|
|
656
|
-
accountReferences?: string[] | undefined;
|
|
663
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
657
664
|
appReferences?: bigint[] | undefined;
|
|
658
665
|
assetReferences?: bigint[] | undefined;
|
|
659
666
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
660
|
-
sender?: string | undefined;
|
|
667
|
+
sender?: string | algosdk.Address | undefined;
|
|
661
668
|
} | undefined) => AppCallParams;
|
|
662
669
|
/** Return params for a close out call */
|
|
663
670
|
closeOut: (params?: {
|
|
664
|
-
lease?: string | Uint8Array | undefined;
|
|
665
|
-
note?: string | Uint8Array | undefined;
|
|
666
671
|
maxFee?: AlgoAmount | undefined;
|
|
672
|
+
note?: string | Uint8Array | undefined;
|
|
667
673
|
args?: Uint8Array[] | undefined;
|
|
668
674
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
669
|
-
|
|
675
|
+
lease?: string | Uint8Array | undefined;
|
|
676
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
670
677
|
staticFee?: AlgoAmount | undefined;
|
|
671
678
|
extraFee?: AlgoAmount | undefined;
|
|
672
|
-
validityWindow?: number | undefined;
|
|
679
|
+
validityWindow?: number | bigint | undefined;
|
|
673
680
|
firstValidRound?: bigint | undefined;
|
|
674
681
|
lastValidRound?: bigint | undefined;
|
|
675
|
-
accountReferences?: string[] | undefined;
|
|
682
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
676
683
|
appReferences?: bigint[] | undefined;
|
|
677
684
|
assetReferences?: bigint[] | undefined;
|
|
678
685
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
679
|
-
sender?: string | undefined;
|
|
686
|
+
sender?: string | algosdk.Address | undefined;
|
|
680
687
|
} | undefined) => AppCallParams;
|
|
681
688
|
/** Return params for a call (defaults to no-op) */
|
|
682
689
|
call: (params?: ({
|
|
683
|
-
lease?: string | Uint8Array | undefined;
|
|
684
|
-
note?: string | Uint8Array | undefined;
|
|
685
690
|
maxFee?: AlgoAmount | undefined;
|
|
691
|
+
note?: string | Uint8Array | undefined;
|
|
686
692
|
args?: Uint8Array[] | undefined;
|
|
687
693
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
688
|
-
|
|
694
|
+
lease?: string | Uint8Array | undefined;
|
|
695
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
689
696
|
staticFee?: AlgoAmount | undefined;
|
|
690
697
|
extraFee?: AlgoAmount | undefined;
|
|
691
|
-
validityWindow?: number | undefined;
|
|
698
|
+
validityWindow?: number | bigint | undefined;
|
|
692
699
|
firstValidRound?: bigint | undefined;
|
|
693
700
|
lastValidRound?: bigint | undefined;
|
|
694
|
-
accountReferences?: string[] | undefined;
|
|
701
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
695
702
|
appReferences?: bigint[] | undefined;
|
|
696
703
|
assetReferences?: bigint[] | undefined;
|
|
697
704
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
698
|
-
sender?: string | undefined;
|
|
705
|
+
sender?: string | algosdk.Address | undefined;
|
|
699
706
|
} & CallOnComplete) | undefined) => AppCallParams;
|
|
700
707
|
};
|
|
701
708
|
};
|
|
@@ -703,43 +710,43 @@ export declare class AppClient {
|
|
|
703
710
|
get createTransaction(): {
|
|
704
711
|
/** Return transaction for a payment transaction to fund the app account */
|
|
705
712
|
fundAppAccount: (params: {
|
|
706
|
-
lease?: string | Uint8Array | undefined;
|
|
707
|
-
note?: string | Uint8Array | undefined;
|
|
708
|
-
amount: AlgoAmount;
|
|
709
|
-
closeRemainderTo?: string | undefined;
|
|
710
713
|
maxFee?: AlgoAmount | undefined;
|
|
714
|
+
note?: string | Uint8Array | undefined;
|
|
711
715
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
712
|
-
|
|
716
|
+
lease?: string | Uint8Array | undefined;
|
|
717
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
713
718
|
staticFee?: AlgoAmount | undefined;
|
|
714
719
|
extraFee?: AlgoAmount | undefined;
|
|
715
|
-
validityWindow?: number | undefined;
|
|
720
|
+
validityWindow?: number | bigint | undefined;
|
|
716
721
|
firstValidRound?: bigint | undefined;
|
|
717
722
|
lastValidRound?: bigint | undefined;
|
|
723
|
+
amount: AlgoAmount;
|
|
724
|
+
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
718
725
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
719
726
|
suppressLog?: boolean | undefined;
|
|
720
727
|
populateAppCallResources?: boolean | undefined;
|
|
721
|
-
sender?: string | undefined;
|
|
728
|
+
sender?: string | algosdk.Address | undefined;
|
|
722
729
|
}) => Promise<algosdk.Transaction>;
|
|
723
730
|
/**
|
|
724
731
|
* Return transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
725
732
|
*/
|
|
726
733
|
update: (params: {
|
|
727
|
-
lease?: string | Uint8Array | undefined;
|
|
728
|
-
note?: string | Uint8Array | undefined;
|
|
729
734
|
maxFee?: AlgoAmount | undefined;
|
|
735
|
+
note?: string | Uint8Array | undefined;
|
|
730
736
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
731
|
-
|
|
737
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
738
|
+
lease?: string | Uint8Array | undefined;
|
|
739
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
732
740
|
staticFee?: AlgoAmount | undefined;
|
|
733
741
|
extraFee?: AlgoAmount | undefined;
|
|
734
|
-
validityWindow?: number | undefined;
|
|
742
|
+
validityWindow?: number | bigint | undefined;
|
|
735
743
|
firstValidRound?: bigint | undefined;
|
|
736
744
|
lastValidRound?: bigint | undefined;
|
|
737
|
-
|
|
738
|
-
accountReferences?: string[] | undefined;
|
|
745
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
739
746
|
appReferences?: bigint[] | undefined;
|
|
740
747
|
assetReferences?: bigint[] | undefined;
|
|
741
748
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
742
|
-
sender?: string | undefined;
|
|
749
|
+
sender?: string | algosdk.Address | undefined;
|
|
743
750
|
method: string;
|
|
744
751
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
745
752
|
} & AppClientCompilationParams) => Promise<{
|
|
@@ -751,22 +758,22 @@ export declare class AppClient {
|
|
|
751
758
|
* Return transactions for an opt-in ABI call
|
|
752
759
|
*/
|
|
753
760
|
optIn: (params: {
|
|
754
|
-
lease?: string | Uint8Array | undefined;
|
|
755
|
-
note?: string | Uint8Array | undefined;
|
|
756
761
|
maxFee?: AlgoAmount | undefined;
|
|
762
|
+
note?: string | Uint8Array | undefined;
|
|
757
763
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
758
|
-
|
|
764
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
765
|
+
lease?: string | Uint8Array | undefined;
|
|
766
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
759
767
|
staticFee?: AlgoAmount | undefined;
|
|
760
768
|
extraFee?: AlgoAmount | undefined;
|
|
761
|
-
validityWindow?: number | undefined;
|
|
769
|
+
validityWindow?: number | bigint | undefined;
|
|
762
770
|
firstValidRound?: bigint | undefined;
|
|
763
771
|
lastValidRound?: bigint | undefined;
|
|
764
|
-
|
|
765
|
-
accountReferences?: string[] | undefined;
|
|
772
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
766
773
|
appReferences?: bigint[] | undefined;
|
|
767
774
|
assetReferences?: bigint[] | undefined;
|
|
768
775
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
769
|
-
sender?: string | undefined;
|
|
776
|
+
sender?: string | algosdk.Address | undefined;
|
|
770
777
|
method: string;
|
|
771
778
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
772
779
|
}) => Promise<{
|
|
@@ -778,22 +785,22 @@ export declare class AppClient {
|
|
|
778
785
|
* Return transactions for a delete ABI call
|
|
779
786
|
*/
|
|
780
787
|
delete: (params: {
|
|
781
|
-
lease?: string | Uint8Array | undefined;
|
|
782
|
-
note?: string | Uint8Array | undefined;
|
|
783
788
|
maxFee?: AlgoAmount | undefined;
|
|
789
|
+
note?: string | Uint8Array | undefined;
|
|
784
790
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
785
|
-
|
|
791
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
792
|
+
lease?: string | Uint8Array | undefined;
|
|
793
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
786
794
|
staticFee?: AlgoAmount | undefined;
|
|
787
795
|
extraFee?: AlgoAmount | undefined;
|
|
788
|
-
validityWindow?: number | undefined;
|
|
796
|
+
validityWindow?: number | bigint | undefined;
|
|
789
797
|
firstValidRound?: bigint | undefined;
|
|
790
798
|
lastValidRound?: bigint | undefined;
|
|
791
|
-
|
|
792
|
-
accountReferences?: string[] | undefined;
|
|
799
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
793
800
|
appReferences?: bigint[] | undefined;
|
|
794
801
|
assetReferences?: bigint[] | undefined;
|
|
795
802
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
796
|
-
sender?: string | undefined;
|
|
803
|
+
sender?: string | algosdk.Address | undefined;
|
|
797
804
|
method: string;
|
|
798
805
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
799
806
|
}) => Promise<{
|
|
@@ -805,22 +812,22 @@ export declare class AppClient {
|
|
|
805
812
|
* Return transactions for a close out ABI call
|
|
806
813
|
*/
|
|
807
814
|
closeOut: (params: {
|
|
808
|
-
lease?: string | Uint8Array | undefined;
|
|
809
|
-
note?: string | Uint8Array | undefined;
|
|
810
815
|
maxFee?: AlgoAmount | undefined;
|
|
816
|
+
note?: string | Uint8Array | undefined;
|
|
811
817
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
812
|
-
|
|
818
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
819
|
+
lease?: string | Uint8Array | undefined;
|
|
820
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
813
821
|
staticFee?: AlgoAmount | undefined;
|
|
814
822
|
extraFee?: AlgoAmount | undefined;
|
|
815
|
-
validityWindow?: number | undefined;
|
|
823
|
+
validityWindow?: number | bigint | undefined;
|
|
816
824
|
firstValidRound?: bigint | undefined;
|
|
817
825
|
lastValidRound?: bigint | undefined;
|
|
818
|
-
|
|
819
|
-
accountReferences?: string[] | undefined;
|
|
826
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
820
827
|
appReferences?: bigint[] | undefined;
|
|
821
828
|
assetReferences?: bigint[] | undefined;
|
|
822
829
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
823
|
-
sender?: string | undefined;
|
|
830
|
+
sender?: string | algosdk.Address | undefined;
|
|
824
831
|
method: string;
|
|
825
832
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
826
833
|
}) => Promise<{
|
|
@@ -832,22 +839,22 @@ export declare class AppClient {
|
|
|
832
839
|
* Return transactions for an ABI call (defaults to no-op)
|
|
833
840
|
*/
|
|
834
841
|
call: (params: {
|
|
835
|
-
lease?: string | Uint8Array | undefined;
|
|
836
|
-
note?: string | Uint8Array | undefined;
|
|
837
842
|
maxFee?: AlgoAmount | undefined;
|
|
843
|
+
note?: string | Uint8Array | undefined;
|
|
838
844
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
839
|
-
|
|
845
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
846
|
+
lease?: string | Uint8Array | undefined;
|
|
847
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
840
848
|
staticFee?: AlgoAmount | undefined;
|
|
841
849
|
extraFee?: AlgoAmount | undefined;
|
|
842
|
-
validityWindow?: number | undefined;
|
|
850
|
+
validityWindow?: number | bigint | undefined;
|
|
843
851
|
firstValidRound?: bigint | undefined;
|
|
844
852
|
lastValidRound?: bigint | undefined;
|
|
845
|
-
|
|
846
|
-
accountReferences?: string[] | undefined;
|
|
853
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
847
854
|
appReferences?: bigint[] | undefined;
|
|
848
855
|
assetReferences?: bigint[] | undefined;
|
|
849
856
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
850
|
-
sender?: string | undefined;
|
|
857
|
+
sender?: string | algosdk.Address | undefined;
|
|
851
858
|
method: string;
|
|
852
859
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
853
860
|
} & CallOnComplete) => Promise<{
|
|
@@ -859,117 +866,117 @@ export declare class AppClient {
|
|
|
859
866
|
/** Interact with bare (raw) call transactions */ bare: {
|
|
860
867
|
/** Returns a transaction for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
861
868
|
update: (params?: ({
|
|
862
|
-
lease?: string | Uint8Array | undefined;
|
|
863
|
-
note?: string | Uint8Array | undefined;
|
|
864
869
|
maxFee?: AlgoAmount | undefined;
|
|
870
|
+
note?: string | Uint8Array | undefined;
|
|
865
871
|
args?: Uint8Array[] | undefined;
|
|
866
872
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
867
|
-
|
|
873
|
+
lease?: string | Uint8Array | undefined;
|
|
874
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
868
875
|
staticFee?: AlgoAmount | undefined;
|
|
869
876
|
extraFee?: AlgoAmount | undefined;
|
|
870
|
-
validityWindow?: number | undefined;
|
|
877
|
+
validityWindow?: number | bigint | undefined;
|
|
871
878
|
firstValidRound?: bigint | undefined;
|
|
872
879
|
lastValidRound?: bigint | undefined;
|
|
873
|
-
accountReferences?: string[] | undefined;
|
|
880
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
874
881
|
appReferences?: bigint[] | undefined;
|
|
875
882
|
assetReferences?: bigint[] | undefined;
|
|
876
883
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
877
|
-
sender?: string | undefined;
|
|
884
|
+
sender?: string | algosdk.Address | undefined;
|
|
878
885
|
} & AppClientCompilationParams) | undefined) => Promise<algosdk.Transaction>;
|
|
879
886
|
/** Returns a transaction for an opt-in call */
|
|
880
887
|
optIn: (params?: {
|
|
881
|
-
lease?: string | Uint8Array | undefined;
|
|
882
|
-
note?: string | Uint8Array | undefined;
|
|
883
888
|
maxFee?: AlgoAmount | undefined;
|
|
889
|
+
note?: string | Uint8Array | undefined;
|
|
884
890
|
args?: Uint8Array[] | undefined;
|
|
885
891
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
886
|
-
|
|
892
|
+
lease?: string | Uint8Array | undefined;
|
|
893
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
887
894
|
staticFee?: AlgoAmount | undefined;
|
|
888
895
|
extraFee?: AlgoAmount | undefined;
|
|
889
|
-
validityWindow?: number | undefined;
|
|
896
|
+
validityWindow?: number | bigint | undefined;
|
|
890
897
|
firstValidRound?: bigint | undefined;
|
|
891
898
|
lastValidRound?: bigint | undefined;
|
|
892
|
-
accountReferences?: string[] | undefined;
|
|
899
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
893
900
|
appReferences?: bigint[] | undefined;
|
|
894
901
|
assetReferences?: bigint[] | undefined;
|
|
895
902
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
896
|
-
sender?: string | undefined;
|
|
903
|
+
sender?: string | algosdk.Address | undefined;
|
|
897
904
|
} | undefined) => Promise<algosdk.Transaction>;
|
|
898
905
|
/** Returns a transaction for a delete call */
|
|
899
906
|
delete: (params?: {
|
|
900
|
-
lease?: string | Uint8Array | undefined;
|
|
901
|
-
note?: string | Uint8Array | undefined;
|
|
902
907
|
maxFee?: AlgoAmount | undefined;
|
|
908
|
+
note?: string | Uint8Array | undefined;
|
|
903
909
|
args?: Uint8Array[] | undefined;
|
|
904
910
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
905
|
-
|
|
911
|
+
lease?: string | Uint8Array | undefined;
|
|
912
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
906
913
|
staticFee?: AlgoAmount | undefined;
|
|
907
914
|
extraFee?: AlgoAmount | undefined;
|
|
908
|
-
validityWindow?: number | undefined;
|
|
915
|
+
validityWindow?: number | bigint | undefined;
|
|
909
916
|
firstValidRound?: bigint | undefined;
|
|
910
917
|
lastValidRound?: bigint | undefined;
|
|
911
|
-
accountReferences?: string[] | undefined;
|
|
918
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
912
919
|
appReferences?: bigint[] | undefined;
|
|
913
920
|
assetReferences?: bigint[] | undefined;
|
|
914
921
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
915
|
-
sender?: string | undefined;
|
|
922
|
+
sender?: string | algosdk.Address | undefined;
|
|
916
923
|
} | undefined) => Promise<algosdk.Transaction>;
|
|
917
924
|
/** Returns a transaction for a clear state call */
|
|
918
925
|
clearState: (params?: {
|
|
919
|
-
lease?: string | Uint8Array | undefined;
|
|
920
|
-
note?: string | Uint8Array | undefined;
|
|
921
926
|
maxFee?: AlgoAmount | undefined;
|
|
927
|
+
note?: string | Uint8Array | undefined;
|
|
922
928
|
args?: Uint8Array[] | undefined;
|
|
923
929
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
924
|
-
|
|
930
|
+
lease?: string | Uint8Array | undefined;
|
|
931
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
925
932
|
staticFee?: AlgoAmount | undefined;
|
|
926
933
|
extraFee?: AlgoAmount | undefined;
|
|
927
|
-
validityWindow?: number | undefined;
|
|
934
|
+
validityWindow?: number | bigint | undefined;
|
|
928
935
|
firstValidRound?: bigint | undefined;
|
|
929
936
|
lastValidRound?: bigint | undefined;
|
|
930
|
-
accountReferences?: string[] | undefined;
|
|
937
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
931
938
|
appReferences?: bigint[] | undefined;
|
|
932
939
|
assetReferences?: bigint[] | undefined;
|
|
933
940
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
934
|
-
sender?: string | undefined;
|
|
941
|
+
sender?: string | algosdk.Address | undefined;
|
|
935
942
|
} | undefined) => Promise<algosdk.Transaction>;
|
|
936
943
|
/** Returns a transaction for a close out call */
|
|
937
944
|
closeOut: (params?: {
|
|
938
|
-
lease?: string | Uint8Array | undefined;
|
|
939
|
-
note?: string | Uint8Array | undefined;
|
|
940
945
|
maxFee?: AlgoAmount | undefined;
|
|
946
|
+
note?: string | Uint8Array | undefined;
|
|
941
947
|
args?: Uint8Array[] | undefined;
|
|
942
948
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
943
|
-
|
|
949
|
+
lease?: string | Uint8Array | undefined;
|
|
950
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
944
951
|
staticFee?: AlgoAmount | undefined;
|
|
945
952
|
extraFee?: AlgoAmount | undefined;
|
|
946
|
-
validityWindow?: number | undefined;
|
|
953
|
+
validityWindow?: number | bigint | undefined;
|
|
947
954
|
firstValidRound?: bigint | undefined;
|
|
948
955
|
lastValidRound?: bigint | undefined;
|
|
949
|
-
accountReferences?: string[] | undefined;
|
|
956
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
950
957
|
appReferences?: bigint[] | undefined;
|
|
951
958
|
assetReferences?: bigint[] | undefined;
|
|
952
959
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
953
|
-
sender?: string | undefined;
|
|
960
|
+
sender?: string | algosdk.Address | undefined;
|
|
954
961
|
} | undefined) => Promise<algosdk.Transaction>;
|
|
955
962
|
/** Returns a transaction for a call (defaults to no-op) */
|
|
956
963
|
call: (params?: ({
|
|
957
|
-
lease?: string | Uint8Array | undefined;
|
|
958
|
-
note?: string | Uint8Array | undefined;
|
|
959
964
|
maxFee?: AlgoAmount | undefined;
|
|
965
|
+
note?: string | Uint8Array | undefined;
|
|
960
966
|
args?: Uint8Array[] | undefined;
|
|
961
967
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
962
|
-
|
|
968
|
+
lease?: string | Uint8Array | undefined;
|
|
969
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
963
970
|
staticFee?: AlgoAmount | undefined;
|
|
964
971
|
extraFee?: AlgoAmount | undefined;
|
|
965
|
-
validityWindow?: number | undefined;
|
|
972
|
+
validityWindow?: number | bigint | undefined;
|
|
966
973
|
firstValidRound?: bigint | undefined;
|
|
967
974
|
lastValidRound?: bigint | undefined;
|
|
968
|
-
accountReferences?: string[] | undefined;
|
|
975
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
969
976
|
appReferences?: bigint[] | undefined;
|
|
970
977
|
assetReferences?: bigint[] | undefined;
|
|
971
978
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
972
|
-
sender?: string | undefined;
|
|
979
|
+
sender?: string | algosdk.Address | undefined;
|
|
973
980
|
} & CallOnComplete) | undefined) => Promise<algosdk.Transaction>;
|
|
974
981
|
};
|
|
975
982
|
};
|
|
@@ -977,22 +984,22 @@ export declare class AppClient {
|
|
|
977
984
|
get send(): {
|
|
978
985
|
/** Sign and send transactions for a payment transaction to fund the app account */
|
|
979
986
|
fundAppAccount: (params: {
|
|
980
|
-
lease?: string | Uint8Array | undefined;
|
|
981
|
-
note?: string | Uint8Array | undefined;
|
|
982
|
-
amount: AlgoAmount;
|
|
983
|
-
closeRemainderTo?: string | undefined;
|
|
984
987
|
maxFee?: AlgoAmount | undefined;
|
|
988
|
+
note?: string | Uint8Array | undefined;
|
|
985
989
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
986
|
-
|
|
990
|
+
lease?: string | Uint8Array | undefined;
|
|
991
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
987
992
|
staticFee?: AlgoAmount | undefined;
|
|
988
993
|
extraFee?: AlgoAmount | undefined;
|
|
989
|
-
validityWindow?: number | undefined;
|
|
994
|
+
validityWindow?: number | bigint | undefined;
|
|
990
995
|
firstValidRound?: bigint | undefined;
|
|
991
996
|
lastValidRound?: bigint | undefined;
|
|
997
|
+
amount: AlgoAmount;
|
|
998
|
+
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
992
999
|
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
993
1000
|
suppressLog?: boolean | undefined;
|
|
994
1001
|
populateAppCallResources?: boolean | undefined;
|
|
995
|
-
sender?: string | undefined;
|
|
1002
|
+
sender?: string | algosdk.Address | undefined;
|
|
996
1003
|
} & SendParams) => Promise<{
|
|
997
1004
|
groupId: string;
|
|
998
1005
|
txIds: string[];
|
|
@@ -1006,22 +1013,22 @@ export declare class AppClient {
|
|
|
1006
1013
|
* Sign and send transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
1007
1014
|
*/
|
|
1008
1015
|
update: (params: {
|
|
1009
|
-
lease?: string | Uint8Array | undefined;
|
|
1010
|
-
note?: string | Uint8Array | undefined;
|
|
1011
1016
|
maxFee?: AlgoAmount | undefined;
|
|
1017
|
+
note?: string | Uint8Array | undefined;
|
|
1012
1018
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1013
|
-
|
|
1019
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1020
|
+
lease?: string | Uint8Array | undefined;
|
|
1021
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1014
1022
|
staticFee?: AlgoAmount | undefined;
|
|
1015
1023
|
extraFee?: AlgoAmount | undefined;
|
|
1016
|
-
validityWindow?: number | undefined;
|
|
1024
|
+
validityWindow?: number | bigint | undefined;
|
|
1017
1025
|
firstValidRound?: bigint | undefined;
|
|
1018
1026
|
lastValidRound?: bigint | undefined;
|
|
1019
|
-
|
|
1020
|
-
accountReferences?: string[] | undefined;
|
|
1027
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1021
1028
|
appReferences?: bigint[] | undefined;
|
|
1022
1029
|
assetReferences?: bigint[] | undefined;
|
|
1023
1030
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1024
|
-
sender?: string | undefined;
|
|
1031
|
+
sender?: string | algosdk.Address | undefined;
|
|
1025
1032
|
method: string;
|
|
1026
1033
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1027
1034
|
} & AppClientCompilationParams & SendParams) => Promise<{
|
|
@@ -1040,22 +1047,22 @@ export declare class AppClient {
|
|
|
1040
1047
|
* Sign and send transactions for an opt-in ABI call
|
|
1041
1048
|
*/
|
|
1042
1049
|
optIn: (params: {
|
|
1043
|
-
lease?: string | Uint8Array | undefined;
|
|
1044
|
-
note?: string | Uint8Array | undefined;
|
|
1045
1050
|
maxFee?: AlgoAmount | undefined;
|
|
1051
|
+
note?: string | Uint8Array | undefined;
|
|
1046
1052
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1047
|
-
|
|
1053
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1054
|
+
lease?: string | Uint8Array | undefined;
|
|
1055
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1048
1056
|
staticFee?: AlgoAmount | undefined;
|
|
1049
1057
|
extraFee?: AlgoAmount | undefined;
|
|
1050
|
-
validityWindow?: number | undefined;
|
|
1058
|
+
validityWindow?: number | bigint | undefined;
|
|
1051
1059
|
firstValidRound?: bigint | undefined;
|
|
1052
1060
|
lastValidRound?: bigint | undefined;
|
|
1053
|
-
|
|
1054
|
-
accountReferences?: string[] | undefined;
|
|
1061
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1055
1062
|
appReferences?: bigint[] | undefined;
|
|
1056
1063
|
assetReferences?: bigint[] | undefined;
|
|
1057
1064
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1058
|
-
sender?: string | undefined;
|
|
1065
|
+
sender?: string | algosdk.Address | undefined;
|
|
1059
1066
|
method: string;
|
|
1060
1067
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1061
1068
|
} & SendParams) => Promise<Omit<{
|
|
@@ -1072,22 +1079,22 @@ export declare class AppClient {
|
|
|
1072
1079
|
* Sign and send transactions for a delete ABI call
|
|
1073
1080
|
*/
|
|
1074
1081
|
delete: (params: {
|
|
1075
|
-
lease?: string | Uint8Array | undefined;
|
|
1076
|
-
note?: string | Uint8Array | undefined;
|
|
1077
1082
|
maxFee?: AlgoAmount | undefined;
|
|
1083
|
+
note?: string | Uint8Array | undefined;
|
|
1078
1084
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1079
|
-
|
|
1085
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1086
|
+
lease?: string | Uint8Array | undefined;
|
|
1087
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1080
1088
|
staticFee?: AlgoAmount | undefined;
|
|
1081
1089
|
extraFee?: AlgoAmount | undefined;
|
|
1082
|
-
validityWindow?: number | undefined;
|
|
1090
|
+
validityWindow?: number | bigint | undefined;
|
|
1083
1091
|
firstValidRound?: bigint | undefined;
|
|
1084
1092
|
lastValidRound?: bigint | undefined;
|
|
1085
|
-
|
|
1086
|
-
accountReferences?: string[] | undefined;
|
|
1093
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1087
1094
|
appReferences?: bigint[] | undefined;
|
|
1088
1095
|
assetReferences?: bigint[] | undefined;
|
|
1089
1096
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1090
|
-
sender?: string | undefined;
|
|
1097
|
+
sender?: string | algosdk.Address | undefined;
|
|
1091
1098
|
method: string;
|
|
1092
1099
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1093
1100
|
} & SendParams) => Promise<Omit<{
|
|
@@ -1104,22 +1111,22 @@ export declare class AppClient {
|
|
|
1104
1111
|
* Sign and send transactions for a close out ABI call
|
|
1105
1112
|
*/
|
|
1106
1113
|
closeOut: (params: {
|
|
1107
|
-
lease?: string | Uint8Array | undefined;
|
|
1108
|
-
note?: string | Uint8Array | undefined;
|
|
1109
1114
|
maxFee?: AlgoAmount | undefined;
|
|
1115
|
+
note?: string | Uint8Array | undefined;
|
|
1110
1116
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1111
|
-
|
|
1117
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1118
|
+
lease?: string | Uint8Array | undefined;
|
|
1119
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1112
1120
|
staticFee?: AlgoAmount | undefined;
|
|
1113
1121
|
extraFee?: AlgoAmount | undefined;
|
|
1114
|
-
validityWindow?: number | undefined;
|
|
1122
|
+
validityWindow?: number | bigint | undefined;
|
|
1115
1123
|
firstValidRound?: bigint | undefined;
|
|
1116
1124
|
lastValidRound?: bigint | undefined;
|
|
1117
|
-
|
|
1118
|
-
accountReferences?: string[] | undefined;
|
|
1125
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1119
1126
|
appReferences?: bigint[] | undefined;
|
|
1120
1127
|
assetReferences?: bigint[] | undefined;
|
|
1121
1128
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1122
|
-
sender?: string | undefined;
|
|
1129
|
+
sender?: string | algosdk.Address | undefined;
|
|
1123
1130
|
method: string;
|
|
1124
1131
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1125
1132
|
} & SendParams) => Promise<Omit<{
|
|
@@ -1136,22 +1143,22 @@ export declare class AppClient {
|
|
|
1136
1143
|
* Sign and send transactions for a call (defaults to no-op)
|
|
1137
1144
|
*/
|
|
1138
1145
|
call: (params: {
|
|
1139
|
-
lease?: string | Uint8Array | undefined;
|
|
1140
|
-
note?: string | Uint8Array | undefined;
|
|
1141
1146
|
maxFee?: AlgoAmount | undefined;
|
|
1147
|
+
note?: string | Uint8Array | undefined;
|
|
1142
1148
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1143
|
-
|
|
1149
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1150
|
+
lease?: string | Uint8Array | undefined;
|
|
1151
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1144
1152
|
staticFee?: AlgoAmount | undefined;
|
|
1145
1153
|
extraFee?: AlgoAmount | undefined;
|
|
1146
|
-
validityWindow?: number | undefined;
|
|
1154
|
+
validityWindow?: number | bigint | undefined;
|
|
1147
1155
|
firstValidRound?: bigint | undefined;
|
|
1148
1156
|
lastValidRound?: bigint | undefined;
|
|
1149
|
-
|
|
1150
|
-
accountReferences?: string[] | undefined;
|
|
1157
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1151
1158
|
appReferences?: bigint[] | undefined;
|
|
1152
1159
|
assetReferences?: bigint[] | undefined;
|
|
1153
1160
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1154
|
-
sender?: string | undefined;
|
|
1161
|
+
sender?: string | algosdk.Address | undefined;
|
|
1155
1162
|
method: string;
|
|
1156
1163
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1157
1164
|
} & CallOnComplete & SendParams) => Promise<Omit<{
|
|
@@ -1168,22 +1175,22 @@ export declare class AppClient {
|
|
|
1168
1175
|
/** Interact with bare (raw) calls */ bare: {
|
|
1169
1176
|
/** Signs and sends an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
1170
1177
|
update: (params?: ({
|
|
1171
|
-
lease?: string | Uint8Array | undefined;
|
|
1172
|
-
note?: string | Uint8Array | undefined;
|
|
1173
1178
|
maxFee?: AlgoAmount | undefined;
|
|
1179
|
+
note?: string | Uint8Array | undefined;
|
|
1174
1180
|
args?: Uint8Array[] | undefined;
|
|
1175
1181
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1176
|
-
|
|
1182
|
+
lease?: string | Uint8Array | undefined;
|
|
1183
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1177
1184
|
staticFee?: AlgoAmount | undefined;
|
|
1178
1185
|
extraFee?: AlgoAmount | undefined;
|
|
1179
|
-
validityWindow?: number | undefined;
|
|
1186
|
+
validityWindow?: number | bigint | undefined;
|
|
1180
1187
|
firstValidRound?: bigint | undefined;
|
|
1181
1188
|
lastValidRound?: bigint | undefined;
|
|
1182
|
-
accountReferences?: string[] | undefined;
|
|
1189
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1183
1190
|
appReferences?: bigint[] | undefined;
|
|
1184
1191
|
assetReferences?: bigint[] | undefined;
|
|
1185
1192
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1186
|
-
sender?: string | undefined;
|
|
1193
|
+
sender?: string | algosdk.Address | undefined;
|
|
1187
1194
|
} & AppClientCompilationParams & SendParams) | undefined) => Promise<{
|
|
1188
1195
|
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
1189
1196
|
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
@@ -1198,22 +1205,22 @@ export declare class AppClient {
|
|
|
1198
1205
|
}>;
|
|
1199
1206
|
/** Signs and sends an opt-in call */
|
|
1200
1207
|
optIn: (params?: ({
|
|
1201
|
-
lease?: string | Uint8Array | undefined;
|
|
1202
|
-
note?: string | Uint8Array | undefined;
|
|
1203
1208
|
maxFee?: AlgoAmount | undefined;
|
|
1209
|
+
note?: string | Uint8Array | undefined;
|
|
1204
1210
|
args?: Uint8Array[] | undefined;
|
|
1205
1211
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1206
|
-
|
|
1212
|
+
lease?: string | Uint8Array | undefined;
|
|
1213
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1207
1214
|
staticFee?: AlgoAmount | undefined;
|
|
1208
1215
|
extraFee?: AlgoAmount | undefined;
|
|
1209
|
-
validityWindow?: number | undefined;
|
|
1216
|
+
validityWindow?: number | bigint | undefined;
|
|
1210
1217
|
firstValidRound?: bigint | undefined;
|
|
1211
1218
|
lastValidRound?: bigint | undefined;
|
|
1212
|
-
accountReferences?: string[] | undefined;
|
|
1219
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1213
1220
|
appReferences?: bigint[] | undefined;
|
|
1214
1221
|
assetReferences?: bigint[] | undefined;
|
|
1215
1222
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1216
|
-
sender?: string | undefined;
|
|
1223
|
+
sender?: string | algosdk.Address | undefined;
|
|
1217
1224
|
} & SendParams) | undefined) => Promise<{
|
|
1218
1225
|
groupId: string;
|
|
1219
1226
|
txIds: string[];
|
|
@@ -1226,22 +1233,22 @@ export declare class AppClient {
|
|
|
1226
1233
|
}>;
|
|
1227
1234
|
/** Signs and sends a delete call */
|
|
1228
1235
|
delete: (params?: ({
|
|
1229
|
-
lease?: string | Uint8Array | undefined;
|
|
1230
|
-
note?: string | Uint8Array | undefined;
|
|
1231
1236
|
maxFee?: AlgoAmount | undefined;
|
|
1237
|
+
note?: string | Uint8Array | undefined;
|
|
1232
1238
|
args?: Uint8Array[] | undefined;
|
|
1233
1239
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1234
|
-
|
|
1240
|
+
lease?: string | Uint8Array | undefined;
|
|
1241
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1235
1242
|
staticFee?: AlgoAmount | undefined;
|
|
1236
1243
|
extraFee?: AlgoAmount | undefined;
|
|
1237
|
-
validityWindow?: number | undefined;
|
|
1244
|
+
validityWindow?: number | bigint | undefined;
|
|
1238
1245
|
firstValidRound?: bigint | undefined;
|
|
1239
1246
|
lastValidRound?: bigint | undefined;
|
|
1240
|
-
accountReferences?: string[] | undefined;
|
|
1247
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1241
1248
|
appReferences?: bigint[] | undefined;
|
|
1242
1249
|
assetReferences?: bigint[] | undefined;
|
|
1243
1250
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1244
|
-
sender?: string | undefined;
|
|
1251
|
+
sender?: string | algosdk.Address | undefined;
|
|
1245
1252
|
} & SendParams) | undefined) => Promise<{
|
|
1246
1253
|
groupId: string;
|
|
1247
1254
|
txIds: string[];
|
|
@@ -1254,22 +1261,22 @@ export declare class AppClient {
|
|
|
1254
1261
|
}>;
|
|
1255
1262
|
/** Signs and sends a clear state call */
|
|
1256
1263
|
clearState: (params?: ({
|
|
1257
|
-
lease?: string | Uint8Array | undefined;
|
|
1258
|
-
note?: string | Uint8Array | undefined;
|
|
1259
1264
|
maxFee?: AlgoAmount | undefined;
|
|
1265
|
+
note?: string | Uint8Array | undefined;
|
|
1260
1266
|
args?: Uint8Array[] | undefined;
|
|
1261
1267
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1262
|
-
|
|
1268
|
+
lease?: string | Uint8Array | undefined;
|
|
1269
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1263
1270
|
staticFee?: AlgoAmount | undefined;
|
|
1264
1271
|
extraFee?: AlgoAmount | undefined;
|
|
1265
|
-
validityWindow?: number | undefined;
|
|
1272
|
+
validityWindow?: number | bigint | undefined;
|
|
1266
1273
|
firstValidRound?: bigint | undefined;
|
|
1267
1274
|
lastValidRound?: bigint | undefined;
|
|
1268
|
-
accountReferences?: string[] | undefined;
|
|
1275
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1269
1276
|
appReferences?: bigint[] | undefined;
|
|
1270
1277
|
assetReferences?: bigint[] | undefined;
|
|
1271
1278
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1272
|
-
sender?: string | undefined;
|
|
1279
|
+
sender?: string | algosdk.Address | undefined;
|
|
1273
1280
|
} & SendParams) | undefined) => Promise<{
|
|
1274
1281
|
groupId: string;
|
|
1275
1282
|
txIds: string[];
|
|
@@ -1282,22 +1289,22 @@ export declare class AppClient {
|
|
|
1282
1289
|
}>;
|
|
1283
1290
|
/** Signs and sends a close out call */
|
|
1284
1291
|
closeOut: (params?: ({
|
|
1285
|
-
lease?: string | Uint8Array | undefined;
|
|
1286
|
-
note?: string | Uint8Array | undefined;
|
|
1287
1292
|
maxFee?: AlgoAmount | undefined;
|
|
1293
|
+
note?: string | Uint8Array | undefined;
|
|
1288
1294
|
args?: Uint8Array[] | undefined;
|
|
1289
1295
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1290
|
-
|
|
1296
|
+
lease?: string | Uint8Array | undefined;
|
|
1297
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1291
1298
|
staticFee?: AlgoAmount | undefined;
|
|
1292
1299
|
extraFee?: AlgoAmount | undefined;
|
|
1293
|
-
validityWindow?: number | undefined;
|
|
1300
|
+
validityWindow?: number | bigint | undefined;
|
|
1294
1301
|
firstValidRound?: bigint | undefined;
|
|
1295
1302
|
lastValidRound?: bigint | undefined;
|
|
1296
|
-
accountReferences?: string[] | undefined;
|
|
1303
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1297
1304
|
appReferences?: bigint[] | undefined;
|
|
1298
1305
|
assetReferences?: bigint[] | undefined;
|
|
1299
1306
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1300
|
-
sender?: string | undefined;
|
|
1307
|
+
sender?: string | algosdk.Address | undefined;
|
|
1301
1308
|
} & SendParams) | undefined) => Promise<{
|
|
1302
1309
|
groupId: string;
|
|
1303
1310
|
txIds: string[];
|
|
@@ -1310,22 +1317,22 @@ export declare class AppClient {
|
|
|
1310
1317
|
}>;
|
|
1311
1318
|
/** Signs and sends a call (defaults to no-op) */
|
|
1312
1319
|
call: (params?: ({
|
|
1313
|
-
lease?: string | Uint8Array | undefined;
|
|
1314
|
-
note?: string | Uint8Array | undefined;
|
|
1315
1320
|
maxFee?: AlgoAmount | undefined;
|
|
1321
|
+
note?: string | Uint8Array | undefined;
|
|
1316
1322
|
args?: Uint8Array[] | undefined;
|
|
1317
1323
|
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1318
|
-
|
|
1324
|
+
lease?: string | Uint8Array | undefined;
|
|
1325
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1319
1326
|
staticFee?: AlgoAmount | undefined;
|
|
1320
1327
|
extraFee?: AlgoAmount | undefined;
|
|
1321
|
-
validityWindow?: number | undefined;
|
|
1328
|
+
validityWindow?: number | bigint | undefined;
|
|
1322
1329
|
firstValidRound?: bigint | undefined;
|
|
1323
1330
|
lastValidRound?: bigint | undefined;
|
|
1324
|
-
accountReferences?: string[] | undefined;
|
|
1331
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1325
1332
|
appReferences?: bigint[] | undefined;
|
|
1326
1333
|
assetReferences?: bigint[] | undefined;
|
|
1327
1334
|
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1328
|
-
sender?: string | undefined;
|
|
1335
|
+
sender?: string | algosdk.Address | undefined;
|
|
1329
1336
|
} & CallOnComplete & SendParams) | undefined) => Promise<{
|
|
1330
1337
|
groupId: string;
|
|
1331
1338
|
txIds: string[];
|
|
@@ -1344,7 +1351,7 @@ export declare class AppClient {
|
|
|
1344
1351
|
* Methods to access local state for the current app
|
|
1345
1352
|
* @param address The address of the account to get the local state for
|
|
1346
1353
|
*/
|
|
1347
|
-
local: (address: string) => {
|
|
1354
|
+
local: (address: string | algosdk.Address) => {
|
|
1348
1355
|
/**
|
|
1349
1356
|
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1350
1357
|
*/
|
|
@@ -1464,7 +1471,7 @@ export declare class AppClient {
|
|
|
1464
1471
|
* @param address The address of the account to get the local state for
|
|
1465
1472
|
* @returns The local state
|
|
1466
1473
|
*/
|
|
1467
|
-
getLocalState(address: string): Promise<AppState>;
|
|
1474
|
+
getLocalState(address: Address | string): Promise<AppState>;
|
|
1468
1475
|
/**
|
|
1469
1476
|
* Returns the names of all current boxes for the current app.
|
|
1470
1477
|
* @returns The names of the boxes
|
|
@@ -1511,7 +1518,7 @@ export declare class AppClient {
|
|
|
1511
1518
|
* @param isClearStateProgram Whether or not the code was running the clear state program (defaults to approval program)
|
|
1512
1519
|
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
1513
1520
|
*/
|
|
1514
|
-
exposeLogicError(e: Error, isClearStateProgram?: boolean): Error
|
|
1521
|
+
exposeLogicError(e: Error, isClearStateProgram?: boolean): Promise<Error>;
|
|
1515
1522
|
/**
|
|
1516
1523
|
* Export the current source maps for the app.
|
|
1517
1524
|
* @returns The source maps
|
|
@@ -1562,6 +1569,9 @@ export declare class AppClient {
|
|
|
1562
1569
|
/** Whether or not the code was running the clear state program (defaults to approval program) */ isClearStateProgram?: boolean;
|
|
1563
1570
|
/** Approval program source map */ approvalSourceMap?: SourceMap;
|
|
1564
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;
|
|
1565
1575
|
}): Error;
|
|
1566
1576
|
/**
|
|
1567
1577
|
* Compiles the approval and clear state programs (if TEAL templates provided),
|
|
@@ -1686,6 +1696,7 @@ export declare class ApplicationClient {
|
|
|
1686
1696
|
deleted: boolean;
|
|
1687
1697
|
appId: number | bigint;
|
|
1688
1698
|
appAddress: string;
|
|
1699
|
+
/** Any deploy-time parameters to replace in the TEAL code */
|
|
1689
1700
|
name: string;
|
|
1690
1701
|
version: string;
|
|
1691
1702
|
deletable?: boolean | undefined;
|
|
@@ -1705,13 +1716,14 @@ export declare class ApplicationClient {
|
|
|
1705
1716
|
deleted: boolean;
|
|
1706
1717
|
appId: number | bigint;
|
|
1707
1718
|
appAddress: string;
|
|
1719
|
+
/** Any deploy-time parameters to replace in the TEAL code */
|
|
1708
1720
|
name: string;
|
|
1709
1721
|
version: string;
|
|
1710
1722
|
deletable?: boolean | undefined;
|
|
1711
1723
|
updatable?: boolean | undefined;
|
|
1712
1724
|
return?: ABIReturn | undefined;
|
|
1713
1725
|
deleteReturn?: ABIReturn | undefined;
|
|
1714
|
-
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
1726
|
+
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
1715
1727
|
operationPerformed: "replace";
|
|
1716
1728
|
}>;
|
|
1717
1729
|
/**
|