@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import algosdk from 'algosdk';
|
|
1
|
+
import algosdk, { Address } from 'algosdk';
|
|
2
2
|
import { SendAppCreateTransactionResult, SendAppTransactionResult, SendAppUpdateTransactionResult } from './app';
|
|
3
3
|
import { AppManager } from './app-manager';
|
|
4
4
|
import { AssetManager } from './asset-manager';
|
|
5
|
-
import
|
|
5
|
+
import { AssetCreateParams, AssetOptOutParams, TransactionComposer } from './composer';
|
|
6
6
|
import { SendParams, SendSingleTransactionResult } from './transaction';
|
|
7
7
|
/** Orchestrates sending transactions for `AlgorandClient`. */
|
|
8
8
|
export declare class AlgorandClientTransactionSender {
|
|
@@ -11,11 +11,11 @@ export declare class AlgorandClientTransactionSender {
|
|
|
11
11
|
private _appManager;
|
|
12
12
|
/**
|
|
13
13
|
* Creates a new `AlgorandClientSender`
|
|
14
|
-
* @param newGroup A lambda that starts a new `
|
|
14
|
+
* @param newGroup A lambda that starts a new `TransactionComposer` transaction group
|
|
15
15
|
* @param assetManager An `AssetManager` instance
|
|
16
16
|
*/
|
|
17
|
-
constructor(newGroup: () =>
|
|
18
|
-
newGroup():
|
|
17
|
+
constructor(newGroup: () => TransactionComposer, assetManager: AssetManager, appManager: AppManager);
|
|
18
|
+
newGroup(): TransactionComposer;
|
|
19
19
|
private _send;
|
|
20
20
|
private _sendAppCall;
|
|
21
21
|
private _sendAppUpdateCall;
|
|
@@ -62,9 +62,9 @@ export declare class AlgorandClientTransactionSender {
|
|
|
62
62
|
* @returns The result of the transaction and the transaction that was sent
|
|
63
63
|
*/
|
|
64
64
|
payment: (params: import("./composer").CommonTransactionParams & {
|
|
65
|
-
receiver: string;
|
|
65
|
+
receiver: string | algosdk.Address;
|
|
66
66
|
amount: import("./amount").AlgoAmount;
|
|
67
|
-
closeRemainderTo?: string | undefined;
|
|
67
|
+
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
68
68
|
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
69
69
|
/**
|
|
70
70
|
* Create a new Algorand Standard Asset.
|
|
@@ -167,10 +167,10 @@ export declare class AlgorandClientTransactionSender {
|
|
|
167
167
|
*/
|
|
168
168
|
assetConfig: (params: import("./composer").CommonTransactionParams & {
|
|
169
169
|
assetId: bigint;
|
|
170
|
-
manager: string | undefined;
|
|
171
|
-
reserve?: string | undefined;
|
|
172
|
-
freeze?: string | undefined;
|
|
173
|
-
clawback?: string | undefined;
|
|
170
|
+
manager: string | algosdk.Address | undefined;
|
|
171
|
+
reserve?: string | algosdk.Address | undefined;
|
|
172
|
+
freeze?: string | algosdk.Address | undefined;
|
|
173
|
+
clawback?: string | algosdk.Address | undefined;
|
|
174
174
|
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
175
175
|
/**
|
|
176
176
|
* Freeze or unfreeze an Algorand Standard Asset for an account.
|
|
@@ -210,7 +210,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
210
210
|
*/
|
|
211
211
|
assetFreeze: (params: import("./composer").CommonTransactionParams & {
|
|
212
212
|
assetId: bigint;
|
|
213
|
-
account: string;
|
|
213
|
+
account: string | algosdk.Address;
|
|
214
214
|
frozen: boolean;
|
|
215
215
|
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
216
216
|
/**
|
|
@@ -296,9 +296,9 @@ export declare class AlgorandClientTransactionSender {
|
|
|
296
296
|
assetTransfer: (params: import("./composer").CommonTransactionParams & {
|
|
297
297
|
assetId: bigint;
|
|
298
298
|
amount: bigint;
|
|
299
|
-
receiver: string;
|
|
300
|
-
clawbackTarget?: string | undefined;
|
|
301
|
-
closeAssetTo?: string | undefined;
|
|
299
|
+
receiver: string | algosdk.Address;
|
|
300
|
+
clawbackTarget?: string | algosdk.Address | undefined;
|
|
301
|
+
closeAssetTo?: string | algosdk.Address | undefined;
|
|
302
302
|
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
303
303
|
/**
|
|
304
304
|
* Opt an account into an Algorand Standard Asset.
|
|
@@ -383,7 +383,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
383
383
|
*/
|
|
384
384
|
assetOptOut: (params: Omit<AssetOptOutParams, 'creator'> & {
|
|
385
385
|
/** Optional asset creator account address; if not specified it will be retrieved from algod */
|
|
386
|
-
creator?: string;
|
|
386
|
+
creator?: string | Address;
|
|
387
387
|
/** Whether or not to check if the account has a zero balance first or not.
|
|
388
388
|
*
|
|
389
389
|
* If this is set to `true` and the account has an asset balance it will throw an error.
|
|
@@ -450,20 +450,20 @@ export declare class AlgorandClientTransactionSender {
|
|
|
450
450
|
* ```
|
|
451
451
|
*/
|
|
452
452
|
appCreate: (params: {
|
|
453
|
-
|
|
454
|
-
note?: string | Uint8Array | undefined;
|
|
453
|
+
sender: string | algosdk.Address;
|
|
455
454
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
455
|
+
note?: string | Uint8Array | undefined;
|
|
456
456
|
args?: Uint8Array[] | undefined;
|
|
457
457
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
459
|
+
lease?: string | Uint8Array | undefined;
|
|
460
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
460
461
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
461
462
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
462
|
-
validityWindow?: number | undefined;
|
|
463
|
+
validityWindow?: number | bigint | undefined;
|
|
463
464
|
firstValidRound?: bigint | undefined;
|
|
464
465
|
lastValidRound?: bigint | undefined;
|
|
465
|
-
|
|
466
|
-
accountReferences?: string[] | undefined;
|
|
466
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
467
467
|
appReferences?: bigint[] | undefined;
|
|
468
468
|
assetReferences?: bigint[] | undefined;
|
|
469
469
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -519,21 +519,21 @@ export declare class AlgorandClientTransactionSender {
|
|
|
519
519
|
* ```
|
|
520
520
|
*/
|
|
521
521
|
appUpdate: (params: {
|
|
522
|
-
sender: string;
|
|
522
|
+
sender: string | algosdk.Address;
|
|
523
523
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
524
|
-
rekeyTo?: string | undefined;
|
|
524
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
525
525
|
note?: string | Uint8Array | undefined;
|
|
526
526
|
lease?: string | Uint8Array | undefined;
|
|
527
527
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
528
528
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
529
529
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
530
|
-
validityWindow?: number | undefined;
|
|
530
|
+
validityWindow?: number | bigint | undefined;
|
|
531
531
|
firstValidRound?: bigint | undefined;
|
|
532
532
|
lastValidRound?: bigint | undefined;
|
|
533
533
|
appId: bigint;
|
|
534
534
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
535
535
|
args?: Uint8Array[] | undefined;
|
|
536
|
-
accountReferences?: string[] | undefined;
|
|
536
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
537
537
|
appReferences?: bigint[] | undefined;
|
|
538
538
|
assetReferences?: bigint[] | undefined;
|
|
539
539
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -583,7 +583,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
583
583
|
appId: bigint;
|
|
584
584
|
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
585
585
|
args?: Uint8Array[] | undefined;
|
|
586
|
-
accountReferences?: string[] | undefined;
|
|
586
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
587
587
|
appReferences?: bigint[] | undefined;
|
|
588
588
|
assetReferences?: bigint[] | undefined;
|
|
589
589
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -633,7 +633,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
633
633
|
appId: bigint;
|
|
634
634
|
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
635
635
|
args?: Uint8Array[] | undefined;
|
|
636
|
-
accountReferences?: string[] | undefined;
|
|
636
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
637
637
|
appReferences?: bigint[] | undefined;
|
|
638
638
|
assetReferences?: bigint[] | undefined;
|
|
639
639
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -702,11 +702,11 @@ export declare class AlgorandClientTransactionSender {
|
|
|
702
702
|
* ```
|
|
703
703
|
*/
|
|
704
704
|
appCreateMethodCall: (params: {
|
|
705
|
-
|
|
706
|
-
note?: string | Uint8Array | undefined;
|
|
705
|
+
sender: string | algosdk.Address;
|
|
707
706
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
708
707
|
approvalProgram: string | Uint8Array;
|
|
709
708
|
clearStateProgram: string | Uint8Array;
|
|
709
|
+
note?: string | Uint8Array | undefined;
|
|
710
710
|
schema?: {
|
|
711
711
|
globalInts: number;
|
|
712
712
|
globalByteSlices: number;
|
|
@@ -714,36 +714,36 @@ export declare class AlgorandClientTransactionSender {
|
|
|
714
714
|
localByteSlices: number;
|
|
715
715
|
} | undefined;
|
|
716
716
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
717
|
-
|
|
717
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
718
|
+
lease?: string | Uint8Array | undefined;
|
|
719
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
718
720
|
extraProgramPages?: number | undefined;
|
|
719
|
-
rekeyTo?: string | undefined;
|
|
720
721
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
721
722
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
722
|
-
validityWindow?: number | undefined;
|
|
723
|
+
validityWindow?: number | bigint | undefined;
|
|
723
724
|
firstValidRound?: bigint | undefined;
|
|
724
725
|
lastValidRound?: bigint | undefined;
|
|
725
|
-
|
|
726
|
-
accountReferences?: string[] | undefined;
|
|
726
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
727
727
|
appReferences?: bigint[] | undefined;
|
|
728
728
|
assetReferences?: bigint[] | undefined;
|
|
729
729
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
730
730
|
} & {
|
|
731
731
|
method: algosdk.ABIMethod;
|
|
732
732
|
args?: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
733
|
-
|
|
734
|
-
note?: string | Uint8Array | undefined;
|
|
733
|
+
sender: string | algosdk.Address;
|
|
735
734
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
735
|
+
note?: string | Uint8Array | undefined;
|
|
736
736
|
args?: Uint8Array[] | undefined;
|
|
737
737
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
739
|
+
lease?: string | Uint8Array | undefined;
|
|
740
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
740
741
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
741
742
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
742
|
-
validityWindow?: number | undefined;
|
|
743
|
+
validityWindow?: number | bigint | undefined;
|
|
743
744
|
firstValidRound?: bigint | undefined;
|
|
744
745
|
lastValidRound?: bigint | undefined;
|
|
745
|
-
|
|
746
|
-
accountReferences?: string[] | undefined;
|
|
746
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
747
747
|
appReferences?: bigint[] | undefined;
|
|
748
748
|
assetReferences?: bigint[] | undefined;
|
|
749
749
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -757,27 +757,27 @@ export declare class AlgorandClientTransactionSender {
|
|
|
757
757
|
} | undefined;
|
|
758
758
|
extraProgramPages?: number | undefined;
|
|
759
759
|
}> | import("./composer").AppMethodCall<{
|
|
760
|
-
sender: string;
|
|
760
|
+
sender: string | algosdk.Address;
|
|
761
761
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
762
|
-
rekeyTo?: string | undefined;
|
|
762
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
763
763
|
note?: string | Uint8Array | undefined;
|
|
764
764
|
lease?: string | Uint8Array | undefined;
|
|
765
765
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
766
766
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
767
767
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
768
|
-
validityWindow?: number | undefined;
|
|
768
|
+
validityWindow?: number | bigint | undefined;
|
|
769
769
|
firstValidRound?: bigint | undefined;
|
|
770
770
|
lastValidRound?: bigint | undefined;
|
|
771
771
|
appId: bigint;
|
|
772
772
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
773
773
|
args?: Uint8Array[] | undefined;
|
|
774
|
-
accountReferences?: string[] | undefined;
|
|
774
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
775
775
|
appReferences?: bigint[] | undefined;
|
|
776
776
|
assetReferences?: bigint[] | undefined;
|
|
777
777
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
778
778
|
approvalProgram: string | Uint8Array;
|
|
779
779
|
clearStateProgram: string | Uint8Array;
|
|
780
|
-
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
780
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
781
781
|
} & SendParams) => Promise<SendAppCreateTransactionResult>;
|
|
782
782
|
/**
|
|
783
783
|
* Update a smart contract via an ABI method.
|
|
@@ -833,42 +833,42 @@ export declare class AlgorandClientTransactionSender {
|
|
|
833
833
|
* ```
|
|
834
834
|
*/
|
|
835
835
|
appUpdateMethodCall: (params: {
|
|
836
|
-
|
|
837
|
-
note?: string | Uint8Array | undefined;
|
|
836
|
+
sender: string | algosdk.Address;
|
|
838
837
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
839
838
|
approvalProgram: string | Uint8Array;
|
|
840
839
|
clearStateProgram: string | Uint8Array;
|
|
840
|
+
note?: string | Uint8Array | undefined;
|
|
841
841
|
appId: bigint;
|
|
842
842
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
844
|
+
lease?: string | Uint8Array | undefined;
|
|
845
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
845
846
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
846
847
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
847
|
-
validityWindow?: number | undefined;
|
|
848
|
+
validityWindow?: number | bigint | undefined;
|
|
848
849
|
firstValidRound?: bigint | undefined;
|
|
849
850
|
lastValidRound?: bigint | undefined;
|
|
850
|
-
|
|
851
|
-
accountReferences?: string[] | undefined;
|
|
851
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
852
852
|
appReferences?: bigint[] | undefined;
|
|
853
853
|
assetReferences?: bigint[] | undefined;
|
|
854
854
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
855
855
|
} & {
|
|
856
856
|
method: algosdk.ABIMethod;
|
|
857
857
|
args?: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
858
|
-
|
|
859
|
-
note?: string | Uint8Array | undefined;
|
|
858
|
+
sender: string | algosdk.Address;
|
|
860
859
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
860
|
+
note?: string | Uint8Array | undefined;
|
|
861
861
|
args?: Uint8Array[] | undefined;
|
|
862
862
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
863
|
-
|
|
864
|
-
|
|
863
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
864
|
+
lease?: string | Uint8Array | undefined;
|
|
865
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
865
866
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
866
867
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
867
|
-
validityWindow?: number | undefined;
|
|
868
|
+
validityWindow?: number | bigint | undefined;
|
|
868
869
|
firstValidRound?: bigint | undefined;
|
|
869
870
|
lastValidRound?: bigint | undefined;
|
|
870
|
-
|
|
871
|
-
accountReferences?: string[] | undefined;
|
|
871
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
872
872
|
appReferences?: bigint[] | undefined;
|
|
873
873
|
assetReferences?: bigint[] | undefined;
|
|
874
874
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -882,27 +882,27 @@ export declare class AlgorandClientTransactionSender {
|
|
|
882
882
|
} | undefined;
|
|
883
883
|
extraProgramPages?: number | undefined;
|
|
884
884
|
}> | import("./composer").AppMethodCall<{
|
|
885
|
-
sender: string;
|
|
885
|
+
sender: string | algosdk.Address;
|
|
886
886
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
887
|
-
rekeyTo?: string | undefined;
|
|
887
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
888
888
|
note?: string | Uint8Array | undefined;
|
|
889
889
|
lease?: string | Uint8Array | undefined;
|
|
890
890
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
891
891
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
892
892
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
893
|
-
validityWindow?: number | undefined;
|
|
893
|
+
validityWindow?: number | bigint | undefined;
|
|
894
894
|
firstValidRound?: bigint | undefined;
|
|
895
895
|
lastValidRound?: bigint | undefined;
|
|
896
896
|
appId: bigint;
|
|
897
897
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
898
898
|
args?: Uint8Array[] | undefined;
|
|
899
|
-
accountReferences?: string[] | undefined;
|
|
899
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
900
900
|
appReferences?: bigint[] | undefined;
|
|
901
901
|
assetReferences?: bigint[] | undefined;
|
|
902
902
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
903
903
|
approvalProgram: string | Uint8Array;
|
|
904
904
|
clearStateProgram: string | Uint8Array;
|
|
905
|
-
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
905
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
906
906
|
} & SendParams) => Promise<SendAppUpdateTransactionResult>;
|
|
907
907
|
/**
|
|
908
908
|
* Delete a smart contract via an ABI method.
|
|
@@ -956,40 +956,40 @@ export declare class AlgorandClientTransactionSender {
|
|
|
956
956
|
* ```
|
|
957
957
|
*/
|
|
958
958
|
appDeleteMethodCall: (params: {
|
|
959
|
-
|
|
960
|
-
note?: string | Uint8Array | undefined;
|
|
959
|
+
sender: string | algosdk.Address;
|
|
961
960
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
961
|
+
note?: string | Uint8Array | undefined;
|
|
962
962
|
appId: bigint;
|
|
963
963
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
964
|
-
|
|
965
|
-
|
|
964
|
+
onComplete?: algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
965
|
+
lease?: string | Uint8Array | undefined;
|
|
966
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
966
967
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
967
968
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
968
|
-
validityWindow?: number | undefined;
|
|
969
|
+
validityWindow?: number | bigint | undefined;
|
|
969
970
|
firstValidRound?: bigint | undefined;
|
|
970
971
|
lastValidRound?: bigint | undefined;
|
|
971
|
-
|
|
972
|
-
accountReferences?: string[] | undefined;
|
|
972
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
973
973
|
appReferences?: bigint[] | undefined;
|
|
974
974
|
assetReferences?: bigint[] | undefined;
|
|
975
975
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
976
976
|
} & {
|
|
977
977
|
method: algosdk.ABIMethod;
|
|
978
978
|
args?: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
979
|
-
|
|
980
|
-
note?: string | Uint8Array | undefined;
|
|
979
|
+
sender: string | algosdk.Address;
|
|
981
980
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
981
|
+
note?: string | Uint8Array | undefined;
|
|
982
982
|
args?: Uint8Array[] | undefined;
|
|
983
983
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
984
|
-
|
|
985
|
-
|
|
984
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
985
|
+
lease?: string | Uint8Array | undefined;
|
|
986
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
986
987
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
987
988
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
988
|
-
validityWindow?: number | undefined;
|
|
989
|
+
validityWindow?: number | bigint | undefined;
|
|
989
990
|
firstValidRound?: bigint | undefined;
|
|
990
991
|
lastValidRound?: bigint | undefined;
|
|
991
|
-
|
|
992
|
-
accountReferences?: string[] | undefined;
|
|
992
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
993
993
|
appReferences?: bigint[] | undefined;
|
|
994
994
|
assetReferences?: bigint[] | undefined;
|
|
995
995
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -1003,27 +1003,27 @@ export declare class AlgorandClientTransactionSender {
|
|
|
1003
1003
|
} | undefined;
|
|
1004
1004
|
extraProgramPages?: number | undefined;
|
|
1005
1005
|
}> | import("./composer").AppMethodCall<{
|
|
1006
|
-
sender: string;
|
|
1006
|
+
sender: string | algosdk.Address;
|
|
1007
1007
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1008
|
-
rekeyTo?: string | undefined;
|
|
1008
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1009
1009
|
note?: string | Uint8Array | undefined;
|
|
1010
1010
|
lease?: string | Uint8Array | undefined;
|
|
1011
1011
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1012
1012
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1013
1013
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1014
|
-
validityWindow?: number | undefined;
|
|
1014
|
+
validityWindow?: number | bigint | undefined;
|
|
1015
1015
|
firstValidRound?: bigint | undefined;
|
|
1016
1016
|
lastValidRound?: bigint | undefined;
|
|
1017
1017
|
appId: bigint;
|
|
1018
1018
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
1019
1019
|
args?: Uint8Array[] | undefined;
|
|
1020
|
-
accountReferences?: string[] | undefined;
|
|
1020
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1021
1021
|
appReferences?: bigint[] | undefined;
|
|
1022
1022
|
assetReferences?: bigint[] | undefined;
|
|
1023
1023
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1024
1024
|
approvalProgram: string | Uint8Array;
|
|
1025
1025
|
clearStateProgram: string | Uint8Array;
|
|
1026
|
-
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
1026
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
1027
1027
|
} & SendParams) => Promise<SendAppTransactionResult>;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Call a smart contract via an ABI method.
|
|
@@ -1077,40 +1077,40 @@ export declare class AlgorandClientTransactionSender {
|
|
|
1077
1077
|
* ```
|
|
1078
1078
|
*/
|
|
1079
1079
|
appCallMethodCall: (params: {
|
|
1080
|
-
|
|
1081
|
-
note?: string | Uint8Array | undefined;
|
|
1080
|
+
sender: string | algosdk.Address;
|
|
1082
1081
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1082
|
+
note?: string | Uint8Array | undefined;
|
|
1083
1083
|
appId: bigint;
|
|
1084
1084
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1085
|
-
|
|
1086
|
-
|
|
1085
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
1086
|
+
lease?: string | Uint8Array | undefined;
|
|
1087
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1087
1088
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1088
1089
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1089
|
-
validityWindow?: number | undefined;
|
|
1090
|
+
validityWindow?: number | bigint | undefined;
|
|
1090
1091
|
firstValidRound?: bigint | undefined;
|
|
1091
1092
|
lastValidRound?: bigint | undefined;
|
|
1092
|
-
|
|
1093
|
-
accountReferences?: string[] | undefined;
|
|
1093
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1094
1094
|
appReferences?: bigint[] | undefined;
|
|
1095
1095
|
assetReferences?: bigint[] | undefined;
|
|
1096
1096
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1097
1097
|
} & {
|
|
1098
1098
|
method: algosdk.ABIMethod;
|
|
1099
1099
|
args?: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
1100
|
-
|
|
1101
|
-
note?: string | Uint8Array | undefined;
|
|
1100
|
+
sender: string | algosdk.Address;
|
|
1102
1101
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1102
|
+
note?: string | Uint8Array | undefined;
|
|
1103
1103
|
args?: Uint8Array[] | undefined;
|
|
1104
1104
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
1106
|
+
lease?: string | Uint8Array | undefined;
|
|
1107
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1107
1108
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1108
1109
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1109
|
-
validityWindow?: number | undefined;
|
|
1110
|
+
validityWindow?: number | bigint | undefined;
|
|
1110
1111
|
firstValidRound?: bigint | undefined;
|
|
1111
1112
|
lastValidRound?: bigint | undefined;
|
|
1112
|
-
|
|
1113
|
-
accountReferences?: string[] | undefined;
|
|
1113
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1114
1114
|
appReferences?: bigint[] | undefined;
|
|
1115
1115
|
assetReferences?: bigint[] | undefined;
|
|
1116
1116
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -1124,27 +1124,27 @@ export declare class AlgorandClientTransactionSender {
|
|
|
1124
1124
|
} | undefined;
|
|
1125
1125
|
extraProgramPages?: number | undefined;
|
|
1126
1126
|
}> | import("./composer").AppMethodCall<{
|
|
1127
|
-
sender: string;
|
|
1127
|
+
sender: string | algosdk.Address;
|
|
1128
1128
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1129
|
-
rekeyTo?: string | undefined;
|
|
1129
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1130
1130
|
note?: string | Uint8Array | undefined;
|
|
1131
1131
|
lease?: string | Uint8Array | undefined;
|
|
1132
1132
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1133
1133
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1134
1134
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1135
|
-
validityWindow?: number | undefined;
|
|
1135
|
+
validityWindow?: number | bigint | undefined;
|
|
1136
1136
|
firstValidRound?: bigint | undefined;
|
|
1137
1137
|
lastValidRound?: bigint | undefined;
|
|
1138
1138
|
appId: bigint;
|
|
1139
1139
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
1140
1140
|
args?: Uint8Array[] | undefined;
|
|
1141
|
-
accountReferences?: string[] | undefined;
|
|
1141
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1142
1142
|
appReferences?: bigint[] | undefined;
|
|
1143
1143
|
assetReferences?: bigint[] | undefined;
|
|
1144
1144
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1145
1145
|
approvalProgram: string | Uint8Array;
|
|
1146
1146
|
clearStateProgram: string | Uint8Array;
|
|
1147
|
-
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
1147
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
1148
1148
|
} & SendParams) => Promise<SendAppTransactionResult>;
|
|
1149
1149
|
/** Register an online key. */
|
|
1150
1150
|
onlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
|
|
@@ -1155,4 +1155,8 @@ export declare class AlgorandClientTransactionSender {
|
|
|
1155
1155
|
voteKeyDilution: bigint;
|
|
1156
1156
|
stateProofKey?: Uint8Array | undefined;
|
|
1157
1157
|
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
1158
|
+
/** Register an offline key. */
|
|
1159
|
+
offlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
|
|
1160
|
+
preventAccountFromEverParticipatingAgain?: boolean | undefined;
|
|
1161
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
1158
1162
|
}
|
|
@@ -6,13 +6,13 @@ var config = require('../config.js');
|
|
|
6
6
|
var types_appManager = require('./app-manager.js');
|
|
7
7
|
|
|
8
8
|
const getMethodCallForLog = ({ method, args }) => {
|
|
9
|
-
return `${method.name}(${(args ?? []).map((a) => (typeof a === 'object' ? JSON.stringify(a, (_, v) => (typeof v === 'bigint' ? Number(v) : v)) : a))})`;
|
|
9
|
+
return `${method.name}(${(args ?? []).map((a) => (typeof a === 'object' ? JSON.stringify(a, (_, v) => (typeof v === 'bigint' ? Number(v) : v instanceof Uint8Array ? buffer.Buffer.from(v).toString('base64') : v)) : a))})`;
|
|
10
10
|
};
|
|
11
11
|
/** Orchestrates sending transactions for `AlgorandClient`. */
|
|
12
12
|
class AlgorandClientTransactionSender {
|
|
13
13
|
/**
|
|
14
14
|
* Creates a new `AlgorandClientSender`
|
|
15
|
-
* @param newGroup A lambda that starts a new `
|
|
15
|
+
* @param newGroup A lambda that starts a new `TransactionComposer` transaction group
|
|
16
16
|
* @param assetManager An `AssetManager` instance
|
|
17
17
|
*/
|
|
18
18
|
constructor(newGroup, assetManager, appManager) {
|
|
@@ -792,6 +792,10 @@ class AlgorandClientTransactionSender {
|
|
|
792
792
|
this.onlineKeyRegistration = this._send((c) => c.addOnlineKeyRegistration, {
|
|
793
793
|
preLog: (params, transaction) => `Registering online key for ${params.sender} via transaction ${transaction.txID()}`,
|
|
794
794
|
});
|
|
795
|
+
/** Register an offline key. */
|
|
796
|
+
this.offlineKeyRegistration = this._send((c) => c.addOfflineKeyRegistration, {
|
|
797
|
+
preLog: (params, transaction) => `Registering offline key for ${params.sender} via transaction ${transaction.txID()}`,
|
|
798
|
+
});
|
|
795
799
|
this._newGroup = newGroup;
|
|
796
800
|
this._assetManager = assetManager;
|
|
797
801
|
this._appManager = appManager;
|