@algorandfoundation/algokit-utils 10.0.0-alpha.13 → 10.0.0-alpha.14
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/package.json +1 -1
- package/packages/transact/src/transactions/app-call.d.ts +1 -6
- package/packages/transact/src/transactions/asset-config.d.ts +1 -6
- package/packages/transact/src/transactions/asset-config.js.map +1 -1
- package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
- package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
- package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
- package/packages/transact/src/transactions/key-registration.d.ts +1 -8
- package/packages/transact/src/transactions/signed-transaction.d.ts +5 -1
- package/packages/transact/src/transactions/signed-transaction.js +1 -1
- package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
- package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
- package/packages/transact/src/transactions/transaction.d.ts +5 -1
- package/packages/transact/src/transactions/transaction.js +0 -1
- package/packages/transact/src/transactions/transaction.js.map +1 -1
- package/packages/transact/src/transactions/transaction.mjs +0 -1
- package/packages/transact/src/transactions/transaction.mjs.map +1 -1
- package/transact/index.d.ts +9 -9
- package/transact/index.js +3 -10
- package/transact/index.mjs +5 -9
- package/transactions/key-registration.d.ts +1 -1
- package/transactions/key-registration.js.map +1 -1
- package/transactions/key-registration.mjs.map +1 -1
- package/types/account-manager.js +1 -1
- package/types/account-manager.mjs +1 -1
- package/types/algorand-client-transaction-creator.d.ts +79 -79
- package/types/algorand-client-transaction-sender.d.ts +80 -80
- package/types/app-client.d.ts +152 -152
- package/types/app-factory.d.ts +78 -78
- package/types/composer.js +9 -2
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +11 -4
- package/types/composer.mjs.map +1 -1
- package/packages/transact/src/transactions/common.d.ts +0 -37
package/transact/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AppCallTransactionFields, BoxReference, HoldingReference, LocalsReference, OnApplicationComplete, ResourceReference, StateSchema
|
|
2
|
-
import { AssetConfigTransactionFields
|
|
3
|
-
import { AssetFreezeTransactionFields
|
|
4
|
-
import { AssetTransferTransactionFields
|
|
1
|
+
import { AppCallTransactionFields, BoxReference, HoldingReference, LocalsReference, OnApplicationComplete, ResourceReference, StateSchema } from "../packages/transact/src/transactions/app-call.js";
|
|
2
|
+
import { AssetConfigTransactionFields } from "../packages/transact/src/transactions/asset-config.js";
|
|
3
|
+
import { AssetFreezeTransactionFields } from "../packages/transact/src/transactions/asset-freeze.js";
|
|
4
|
+
import { AssetTransferTransactionFields } from "../packages/transact/src/transactions/asset-transfer.js";
|
|
5
5
|
import { HeartbeatProof, HeartbeatTransactionFields } from "../packages/transact/src/transactions/heartbeat.js";
|
|
6
|
-
import { KeyRegistrationTransactionFields
|
|
6
|
+
import { KeyRegistrationTransactionFields } from "../packages/transact/src/transactions/key-registration.js";
|
|
7
7
|
import { PaymentTransactionFields } from "../packages/transact/src/transactions/payment.js";
|
|
8
8
|
import { FalconSignatureStruct, FalconVerifier, HashFactory, MerkleArrayProof, MerkleSignatureVerifier, Participant, Reveal, SigslotCommit, StateProof, StateProofMessage, StateProofTransactionFields } from "../packages/transact/src/transactions/state-proof.js";
|
|
9
9
|
import { TransactionType } from "../packages/transact/src/transactions/transaction-type.js";
|
|
10
|
-
import { Transaction, TransactionParams, assignFee, calculateFee, decodeTransaction, decodeTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, getEncodedTransactionType, groupTransactions, transactionCodec } from "../packages/transact/src/transactions/transaction.js";
|
|
11
|
-
import { LogicSignature, MultisigSignature, MultisigSubsignature, SignedTransaction, decodeSignedTransaction, decodeSignedTransactions, encodeSignedTransaction, encodeSignedTransactions } from "../packages/transact/src/transactions/signed-transaction.js";
|
|
12
|
-
import { SignedTransactionMeta } from "../packages/transact/src/transactions/signed-transaction-meta.js";
|
|
10
|
+
import { Transaction, TransactionParams, assignFee, calculateFee, decodeTransaction, decodeTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, getEncodedTransactionType, groupTransactions, transactionCodec, validateTransaction } from "../packages/transact/src/transactions/transaction.js";
|
|
11
|
+
import { LogicSignature, MultisigSignature, MultisigSubsignature, SignedTransaction, decodeSignedTransaction, decodeSignedTransactions, encodeSignedTransaction, encodeSignedTransactions, validateSignedTransaction } from "../packages/transact/src/transactions/signed-transaction.js";
|
|
13
12
|
import { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta } from "../packages/transact/src/transactions/reference-types-meta.js";
|
|
13
|
+
import { SignedTransactionMeta } from "../packages/transact/src/transactions/signed-transaction-meta.js";
|
|
14
14
|
import { TransactionParamsMeta, transactionParamsCodec } from "../packages/transact/src/transactions/transaction-meta.js";
|
|
15
15
|
import { MultisigAccount, MultisigMetadata } from "../packages/transact/src/multisig.js";
|
|
16
16
|
import { DelegatedLsigSigner, LogicSigAccount, ProgramDataSigner } from "../packages/transact/src/logicsig.js";
|
|
17
17
|
import { AddressWithDelegatedLsigSigner, AddressWithMxBytesSigner, AddressWithProgramDataSigner, AddressWithSigners, AddressWithTransactionSigner, MxBytesSigner, SendingAddress, TransactionSigner, generateAddressWithSigners, makeEmptyTransactionSigner } from "../packages/transact/src/signer.js";
|
|
18
|
-
export { AddressWithDelegatedLsigSigner, AddressWithMxBytesSigner, AddressWithProgramDataSigner, AddressWithSigners, AddressWithTransactionSigner, AppCallTransactionFields, AssetConfigTransactionFields, AssetFreezeTransactionFields, AssetTransferTransactionFields, BoxReference, BoxReferenceMeta, DelegatedLsigSigner, FalconSignatureStruct, FalconVerifier, HashFactory, HeartbeatProof, HeartbeatTransactionFields, HoldingReference, HoldingReferenceMeta, KeyRegistrationTransactionFields, LocalsReference, LocalsReferenceMeta, LogicSigAccount, LogicSignature, MerkleArrayProof, MerkleSignatureVerifier, MultisigAccount, MultisigMetadata, MultisigSignature, MultisigSubsignature, MxBytesSigner, OnApplicationComplete, Participant, PaymentTransactionFields, ProgramDataSigner, ResourceReference, Reveal, SendingAddress, SignedTransaction, SignedTransactionMeta, SigslotCommit, StateProof, StateProofMessage, StateProofTransactionFields, StateSchema, Transaction, TransactionParams, TransactionParamsMeta, TransactionSigner, TransactionType, assignFee, calculateFee, decodeSignedTransaction, decodeSignedTransactions, decodeTransaction, decodeTransactions, encodeSignedTransaction, encodeSignedTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, generateAddressWithSigners, getEncodedTransactionType, groupTransactions, makeEmptyTransactionSigner, transactionCodec, transactionParamsCodec,
|
|
18
|
+
export { AddressWithDelegatedLsigSigner, AddressWithMxBytesSigner, AddressWithProgramDataSigner, AddressWithSigners, AddressWithTransactionSigner, AppCallTransactionFields, AssetConfigTransactionFields, AssetFreezeTransactionFields, AssetTransferTransactionFields, BoxReference, BoxReferenceMeta, DelegatedLsigSigner, FalconSignatureStruct, FalconVerifier, HashFactory, HeartbeatProof, HeartbeatTransactionFields, HoldingReference, HoldingReferenceMeta, KeyRegistrationTransactionFields, LocalsReference, LocalsReferenceMeta, LogicSigAccount, LogicSignature, MerkleArrayProof, MerkleSignatureVerifier, MultisigAccount, MultisigMetadata, MultisigSignature, MultisigSubsignature, MxBytesSigner, OnApplicationComplete, Participant, PaymentTransactionFields, ProgramDataSigner, ResourceReference, Reveal, SendingAddress, SignedTransaction, SignedTransactionMeta, SigslotCommit, StateProof, StateProofMessage, StateProofTransactionFields, StateSchema, Transaction, TransactionParams, TransactionParamsMeta, TransactionSigner, TransactionType, assignFee, calculateFee, decodeSignedTransaction, decodeSignedTransactions, decodeTransaction, decodeTransactions, encodeSignedTransaction, encodeSignedTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, generateAddressWithSigners, getEncodedTransactionType, groupTransactions, makeEmptyTransactionSigner, transactionCodec, transactionParamsCodec, validateSignedTransaction, validateTransaction };
|
package/transact/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
const require_app_call = require('../packages/transact/src/transactions/app-call.js');
|
|
2
|
-
const require_asset_config = require('../packages/transact/src/transactions/asset-config.js');
|
|
3
|
-
const require_asset_freeze = require('../packages/transact/src/transactions/asset-freeze.js');
|
|
4
|
-
const require_asset_transfer = require('../packages/transact/src/transactions/asset-transfer.js');
|
|
5
|
-
const require_key_registration = require('../packages/transact/src/transactions/key-registration.js');
|
|
6
2
|
const require_transaction_type = require('../packages/transact/src/transactions/transaction-type.js');
|
|
7
3
|
const require_transaction_meta = require('../packages/transact/src/transactions/transaction-meta.js');
|
|
8
4
|
const require_transaction = require('../packages/transact/src/transactions/transaction.js');
|
|
@@ -10,8 +6,8 @@ const require_signed_transaction_meta = require('../packages/transact/src/transa
|
|
|
10
6
|
const require_signed_transaction = require('../packages/transact/src/transactions/signed-transaction.js');
|
|
11
7
|
const require_reference_types_meta = require('../packages/transact/src/transactions/reference-types-meta.js');
|
|
12
8
|
const require_signer = require('../packages/transact/src/signer.js');
|
|
13
|
-
const require_multisig = require('../packages/transact/src/multisig.js');
|
|
14
9
|
const require_logicsig = require('../packages/transact/src/logicsig.js');
|
|
10
|
+
const require_multisig = require('../packages/transact/src/multisig.js');
|
|
15
11
|
|
|
16
12
|
exports.BoxReferenceMeta = require_reference_types_meta.BoxReferenceMeta;
|
|
17
13
|
exports.HoldingReferenceMeta = require_reference_types_meta.HoldingReferenceMeta;
|
|
@@ -41,8 +37,5 @@ exports.groupTransactions = require_transaction.groupTransactions;
|
|
|
41
37
|
exports.makeEmptyTransactionSigner = require_signer.makeEmptyTransactionSigner;
|
|
42
38
|
exports.transactionCodec = require_transaction.transactionCodec;
|
|
43
39
|
exports.transactionParamsCodec = require_transaction_meta.transactionParamsCodec;
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.validateAssetFreezeTransaction = require_asset_freeze.validateAssetFreezeTransaction;
|
|
47
|
-
exports.validateAssetTransferTransaction = require_asset_transfer.validateAssetTransferTransaction;
|
|
48
|
-
exports.validateKeyRegistrationTransaction = require_key_registration.validateKeyRegistrationTransaction;
|
|
40
|
+
exports.validateSignedTransaction = require_signed_transaction.validateSignedTransaction;
|
|
41
|
+
exports.validateTransaction = require_transaction.validateTransaction;
|
package/transact/index.mjs
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { OnApplicationComplete
|
|
2
|
-
import { validateAssetConfigTransaction } from "../packages/transact/src/transactions/asset-config.mjs";
|
|
3
|
-
import { validateAssetFreezeTransaction } from "../packages/transact/src/transactions/asset-freeze.mjs";
|
|
4
|
-
import { validateAssetTransferTransaction } from "../packages/transact/src/transactions/asset-transfer.mjs";
|
|
5
|
-
import { validateKeyRegistrationTransaction } from "../packages/transact/src/transactions/key-registration.mjs";
|
|
1
|
+
import { OnApplicationComplete } from "../packages/transact/src/transactions/app-call.mjs";
|
|
6
2
|
import { TransactionType } from "../packages/transact/src/transactions/transaction-type.mjs";
|
|
7
3
|
import { TransactionParamsMeta, transactionParamsCodec } from "../packages/transact/src/transactions/transaction-meta.mjs";
|
|
8
|
-
import { Transaction, assignFee, calculateFee, decodeTransaction, decodeTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, getEncodedTransactionType, groupTransactions, transactionCodec } from "../packages/transact/src/transactions/transaction.mjs";
|
|
4
|
+
import { Transaction, assignFee, calculateFee, decodeTransaction, decodeTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, getEncodedTransactionType, groupTransactions, transactionCodec, validateTransaction } from "../packages/transact/src/transactions/transaction.mjs";
|
|
9
5
|
import { SignedTransactionMeta } from "../packages/transact/src/transactions/signed-transaction-meta.mjs";
|
|
10
|
-
import { decodeSignedTransaction, decodeSignedTransactions, encodeSignedTransaction, encodeSignedTransactions } from "../packages/transact/src/transactions/signed-transaction.mjs";
|
|
6
|
+
import { decodeSignedTransaction, decodeSignedTransactions, encodeSignedTransaction, encodeSignedTransactions, validateSignedTransaction } from "../packages/transact/src/transactions/signed-transaction.mjs";
|
|
11
7
|
import { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta } from "../packages/transact/src/transactions/reference-types-meta.mjs";
|
|
12
8
|
import { generateAddressWithSigners, makeEmptyTransactionSigner } from "../packages/transact/src/signer.mjs";
|
|
13
|
-
import { MultisigAccount } from "../packages/transact/src/multisig.mjs";
|
|
14
9
|
import { LogicSigAccount } from "../packages/transact/src/logicsig.mjs";
|
|
10
|
+
import { MultisigAccount } from "../packages/transact/src/multisig.mjs";
|
|
15
11
|
|
|
16
|
-
export { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta, LogicSigAccount, MultisigAccount, OnApplicationComplete, SignedTransactionMeta, Transaction, TransactionParamsMeta, TransactionType, assignFee, calculateFee, decodeSignedTransaction, decodeSignedTransactions, decodeTransaction, decodeTransactions, encodeSignedTransaction, encodeSignedTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, generateAddressWithSigners, getEncodedTransactionType, groupTransactions, makeEmptyTransactionSigner, transactionCodec, transactionParamsCodec,
|
|
12
|
+
export { BoxReferenceMeta, HoldingReferenceMeta, LocalsReferenceMeta, LogicSigAccount, MultisigAccount, OnApplicationComplete, SignedTransactionMeta, Transaction, TransactionParamsMeta, TransactionType, assignFee, calculateFee, decodeSignedTransaction, decodeSignedTransactions, decodeTransaction, decodeTransactions, encodeSignedTransaction, encodeSignedTransactions, encodeTransaction, encodeTransactionRaw, encodeTransactions, estimateTransactionSize, generateAddressWithSigners, getEncodedTransactionType, groupTransactions, makeEmptyTransactionSigner, transactionCodec, transactionParamsCodec, validateSignedTransaction, validateTransaction };
|
|
@@ -15,7 +15,7 @@ type OnlineKeyRegistrationParams = CommonTransactionParams & {
|
|
|
15
15
|
/** This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys */
|
|
16
16
|
voteKeyDilution: bigint;
|
|
17
17
|
/** The 64 byte state proof public key commitment */
|
|
18
|
-
stateProofKey
|
|
18
|
+
stateProofKey: Uint8Array;
|
|
19
19
|
};
|
|
20
20
|
/** Parameters to define an offline key registration transaction. */
|
|
21
21
|
type OfflineKeyRegistrationParams = CommonTransactionParams & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-registration.js","names":["buildTransactionCommonData","Transaction","TransactionType"],"sources":["../../src/transactions/key-registration.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData } from './common'\n\n/** Parameters to define an online key registration transaction. */\nexport type OnlineKeyRegistrationParams = CommonTransactionParams & {\n /** The root participation public key */\n voteKey: Uint8Array\n /** The VRF public key */\n selectionKey: Uint8Array\n /** The first round that the participation key is valid. Not to be confused with the `firstValid` round of the keyreg transaction */\n voteFirst: bigint\n /** The last round that the participation key is valid. Not to be confused with the `lastValid` round of the keyreg transaction */\n voteLast: bigint\n /** This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys */\n voteKeyDilution: bigint\n /** The 64 byte state proof public key commitment */\n stateProofKey
|
|
1
|
+
{"version":3,"file":"key-registration.js","names":["buildTransactionCommonData","Transaction","TransactionType"],"sources":["../../src/transactions/key-registration.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData } from './common'\n\n/** Parameters to define an online key registration transaction. */\nexport type OnlineKeyRegistrationParams = CommonTransactionParams & {\n /** The root participation public key */\n voteKey: Uint8Array\n /** The VRF public key */\n selectionKey: Uint8Array\n /** The first round that the participation key is valid. Not to be confused with the `firstValid` round of the keyreg transaction */\n voteFirst: bigint\n /** The last round that the participation key is valid. Not to be confused with the `lastValid` round of the keyreg transaction */\n voteLast: bigint\n /** This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys */\n voteKeyDilution: bigint\n /** The 64 byte state proof public key commitment */\n stateProofKey: Uint8Array\n}\n\n/** Parameters to define an offline key registration transaction. */\nexport type OfflineKeyRegistrationParams = CommonTransactionParams & {\n /** Prevent this account from ever participating again. The account will also no longer earn rewards */\n preventAccountFromEverParticipatingAgain?: boolean\n}\n\nexport const buildKeyReg = (\n params: OnlineKeyRegistrationParams | OfflineKeyRegistrationParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n if ('voteKey' in params) {\n return new Transaction({\n ...commonData,\n type: TransactionType.KeyRegistration,\n keyRegistration: {\n voteKey: params.voteKey,\n selectionKey: params.selectionKey,\n voteFirst: params.voteFirst,\n voteLast: params.voteLast,\n voteKeyDilution: params.voteKeyDilution,\n nonParticipation: false,\n stateProofKey: params.stateProofKey,\n },\n })\n } else {\n return new Transaction({\n ...commonData,\n type: TransactionType.KeyRegistration,\n keyRegistration: {\n nonParticipation: params.preventAccountFromEverParticipatingAgain,\n },\n })\n }\n}\n"],"mappings":";;;;;AA0BA,MAAa,eACX,QACA,iBACA,0BACgB;CAChB,MAAM,aAAaA,0CAA2B,QAAQ,iBAAiB,sBAAsB;AAC7F,KAAI,aAAa,OACf,QAAO,IAAIC,gCAAY;EACrB,GAAG;EACH,MAAMC,yCAAgB;EACtB,iBAAiB;GACf,SAAS,OAAO;GAChB,cAAc,OAAO;GACrB,WAAW,OAAO;GAClB,UAAU,OAAO;GACjB,iBAAiB,OAAO;GACxB,kBAAkB;GAClB,eAAe,OAAO;GACvB;EACF,CAAC;KAEF,QAAO,IAAID,gCAAY;EACrB,GAAG;EACH,MAAMC,yCAAgB;EACtB,iBAAiB,EACf,kBAAkB,OAAO,0CAC1B;EACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-registration.mjs","names":[],"sources":["../../src/transactions/key-registration.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData } from './common'\n\n/** Parameters to define an online key registration transaction. */\nexport type OnlineKeyRegistrationParams = CommonTransactionParams & {\n /** The root participation public key */\n voteKey: Uint8Array\n /** The VRF public key */\n selectionKey: Uint8Array\n /** The first round that the participation key is valid. Not to be confused with the `firstValid` round of the keyreg transaction */\n voteFirst: bigint\n /** The last round that the participation key is valid. Not to be confused with the `lastValid` round of the keyreg transaction */\n voteLast: bigint\n /** This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys */\n voteKeyDilution: bigint\n /** The 64 byte state proof public key commitment */\n stateProofKey
|
|
1
|
+
{"version":3,"file":"key-registration.mjs","names":[],"sources":["../../src/transactions/key-registration.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData } from './common'\n\n/** Parameters to define an online key registration transaction. */\nexport type OnlineKeyRegistrationParams = CommonTransactionParams & {\n /** The root participation public key */\n voteKey: Uint8Array\n /** The VRF public key */\n selectionKey: Uint8Array\n /** The first round that the participation key is valid. Not to be confused with the `firstValid` round of the keyreg transaction */\n voteFirst: bigint\n /** The last round that the participation key is valid. Not to be confused with the `lastValid` round of the keyreg transaction */\n voteLast: bigint\n /** This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys */\n voteKeyDilution: bigint\n /** The 64 byte state proof public key commitment */\n stateProofKey: Uint8Array\n}\n\n/** Parameters to define an offline key registration transaction. */\nexport type OfflineKeyRegistrationParams = CommonTransactionParams & {\n /** Prevent this account from ever participating again. The account will also no longer earn rewards */\n preventAccountFromEverParticipatingAgain?: boolean\n}\n\nexport const buildKeyReg = (\n params: OnlineKeyRegistrationParams | OfflineKeyRegistrationParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n if ('voteKey' in params) {\n return new Transaction({\n ...commonData,\n type: TransactionType.KeyRegistration,\n keyRegistration: {\n voteKey: params.voteKey,\n selectionKey: params.selectionKey,\n voteFirst: params.voteFirst,\n voteLast: params.voteLast,\n voteKeyDilution: params.voteKeyDilution,\n nonParticipation: false,\n stateProofKey: params.stateProofKey,\n },\n })\n } else {\n return new Transaction({\n ...commonData,\n type: TransactionType.KeyRegistration,\n keyRegistration: {\n nonParticipation: params.preventAccountFromEverParticipatingAgain,\n },\n })\n }\n}\n"],"mappings":";;;;;AA0BA,MAAa,eACX,QACA,iBACA,0BACgB;CAChB,MAAM,aAAa,2BAA2B,QAAQ,iBAAiB,sBAAsB;AAC7F,KAAI,aAAa,OACf,QAAO,IAAI,YAAY;EACrB,GAAG;EACH,MAAM,gBAAgB;EACtB,iBAAiB;GACf,SAAS,OAAO;GAChB,cAAc,OAAO;GACrB,WAAW,OAAO;GAClB,UAAU,OAAO;GACjB,iBAAiB,OAAO;GACxB,kBAAkB;GAClB,eAAe,OAAO;GACvB;EACF,CAAC;KAEF,QAAO,IAAI,YAAY;EACrB,GAAG;EACH,MAAM,gBAAgB;EACtB,iBAAiB,EACf,kBAAkB,OAAO,0CAC1B;EACF,CAAC"}
|
package/types/account-manager.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_address = require('../packages/common/src/address.js');
|
|
3
3
|
const require_signer = require('../packages/transact/src/signer.js');
|
|
4
|
-
const require_multisig = require('../packages/transact/src/multisig.js');
|
|
5
4
|
const require_logicsig = require('../packages/transact/src/logicsig.js');
|
|
5
|
+
const require_multisig = require('../packages/transact/src/multisig.js');
|
|
6
6
|
const require_amount = require('./amount.js');
|
|
7
7
|
const require_config = require('../config.js');
|
|
8
8
|
const require_util = require('../util.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address, getAddress, getOptionalAddress } from "../packages/common/src/address.mjs";
|
|
2
2
|
import { generateAddressWithSigners } from "../packages/transact/src/signer.mjs";
|
|
3
|
-
import { MultisigAccount } from "../packages/transact/src/multisig.mjs";
|
|
4
3
|
import { LogicSigAccount } from "../packages/transact/src/logicsig.mjs";
|
|
4
|
+
import { MultisigAccount } from "../packages/transact/src/multisig.mjs";
|
|
5
5
|
import { AlgoAmount } from "./amount.mjs";
|
|
6
6
|
import { Config } from "../config.mjs";
|
|
7
7
|
import { calculateFundAmount, memoize } from "../util.mjs";
|
|
@@ -348,8 +348,9 @@ declare class AlgorandClientTransactionCreator {
|
|
|
348
348
|
* @returns The application create transaction
|
|
349
349
|
*/
|
|
350
350
|
appCreate: (params: {
|
|
351
|
+
args?: Uint8Array[] | undefined;
|
|
352
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
351
353
|
sender: SendingAddress;
|
|
352
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
353
354
|
rekeyTo?: ReadableAddress | undefined;
|
|
354
355
|
note?: string | Uint8Array | undefined;
|
|
355
356
|
lease?: string | Uint8Array | undefined;
|
|
@@ -360,7 +361,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
360
361
|
firstValidRound?: bigint | undefined;
|
|
361
362
|
lastValidRound?: bigint | undefined;
|
|
362
363
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
363
|
-
args?: Uint8Array[] | undefined;
|
|
364
364
|
accountReferences?: ReadableAddress[] | undefined;
|
|
365
365
|
appReferences?: bigint[] | undefined;
|
|
366
366
|
assetReferences?: bigint[] | undefined;
|
|
@@ -417,7 +417,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
417
417
|
*/
|
|
418
418
|
appUpdate: (params: {
|
|
419
419
|
sender: SendingAddress;
|
|
420
|
-
signer?:
|
|
420
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
421
421
|
rekeyTo?: ReadableAddress | undefined;
|
|
422
422
|
note?: string | Uint8Array | undefined;
|
|
423
423
|
lease?: string | Uint8Array | undefined;
|
|
@@ -568,9 +568,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
568
568
|
* @returns The application ABI method create transaction
|
|
569
569
|
*/
|
|
570
570
|
appCreateMethodCall: (params: {
|
|
571
|
-
|
|
571
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
572
572
|
sender: SendingAddress;
|
|
573
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
574
573
|
rekeyTo?: ReadableAddress | undefined;
|
|
575
574
|
note?: string | Uint8Array | undefined;
|
|
576
575
|
lease?: string | Uint8Array | undefined;
|
|
@@ -580,6 +579,9 @@ declare class AlgorandClientTransactionCreator {
|
|
|
580
579
|
validityWindow?: number | bigint | undefined;
|
|
581
580
|
firstValidRound?: bigint | undefined;
|
|
582
581
|
lastValidRound?: bigint | undefined;
|
|
582
|
+
appId?: 0 | undefined;
|
|
583
|
+
approvalProgram: string | Uint8Array;
|
|
584
|
+
clearStateProgram: string | Uint8Array;
|
|
583
585
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
584
586
|
accountReferences?: ReadableAddress[] | undefined;
|
|
585
587
|
appReferences?: bigint[] | undefined;
|
|
@@ -587,8 +589,6 @@ declare class AlgorandClientTransactionCreator {
|
|
|
587
589
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
588
590
|
accessReferences?: ResourceReference[] | undefined;
|
|
589
591
|
rejectVersion?: number | undefined;
|
|
590
|
-
approvalProgram: string | Uint8Array;
|
|
591
|
-
clearStateProgram: string | Uint8Array;
|
|
592
592
|
schema?: {
|
|
593
593
|
globalInts: number;
|
|
594
594
|
globalByteSlices: number;
|
|
@@ -597,9 +597,9 @@ declare class AlgorandClientTransactionCreator {
|
|
|
597
597
|
} | undefined;
|
|
598
598
|
extraProgramPages?: number | undefined;
|
|
599
599
|
method: ABIMethod;
|
|
600
|
-
args?: (
|
|
600
|
+
args?: (ABIValue | Transaction | TransactionWithSigner | AppMethodCall<{
|
|
601
601
|
sender: SendingAddress;
|
|
602
|
-
signer?:
|
|
602
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
603
603
|
rekeyTo?: ReadableAddress | undefined;
|
|
604
604
|
note?: string | Uint8Array | undefined;
|
|
605
605
|
lease?: string | Uint8Array | undefined;
|
|
@@ -609,7 +609,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
609
609
|
validityWindow?: number | bigint | undefined;
|
|
610
610
|
firstValidRound?: bigint | undefined;
|
|
611
611
|
lastValidRound?: bigint | undefined;
|
|
612
|
-
|
|
612
|
+
appId: bigint;
|
|
613
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
613
614
|
args?: Uint8Array[] | undefined;
|
|
614
615
|
accountReferences?: ReadableAddress[] | undefined;
|
|
615
616
|
appReferences?: bigint[] | undefined;
|
|
@@ -617,19 +618,12 @@ declare class AlgorandClientTransactionCreator {
|
|
|
617
618
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
618
619
|
accessReferences?: ResourceReference[] | undefined;
|
|
619
620
|
rejectVersion?: number | undefined;
|
|
620
|
-
appId?: 0 | undefined;
|
|
621
621
|
approvalProgram: string | Uint8Array;
|
|
622
622
|
clearStateProgram: string | Uint8Array;
|
|
623
|
-
schema?: {
|
|
624
|
-
globalInts: number;
|
|
625
|
-
globalByteSlices: number;
|
|
626
|
-
localInts: number;
|
|
627
|
-
localByteSlices: number;
|
|
628
|
-
} | undefined;
|
|
629
|
-
extraProgramPages?: number | undefined;
|
|
630
623
|
}> | AppMethodCall<{
|
|
624
|
+
args?: Uint8Array[] | undefined;
|
|
625
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
631
626
|
sender: SendingAddress;
|
|
632
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
633
627
|
rekeyTo?: ReadableAddress | undefined;
|
|
634
628
|
note?: string | Uint8Array | undefined;
|
|
635
629
|
lease?: string | Uint8Array | undefined;
|
|
@@ -639,18 +633,24 @@ declare class AlgorandClientTransactionCreator {
|
|
|
639
633
|
validityWindow?: number | bigint | undefined;
|
|
640
634
|
firstValidRound?: bigint | undefined;
|
|
641
635
|
lastValidRound?: bigint | undefined;
|
|
642
|
-
|
|
643
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
644
|
-
args?: Uint8Array[] | undefined;
|
|
636
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
645
637
|
accountReferences?: ReadableAddress[] | undefined;
|
|
646
638
|
appReferences?: bigint[] | undefined;
|
|
647
639
|
assetReferences?: bigint[] | undefined;
|
|
648
640
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
649
641
|
accessReferences?: ResourceReference[] | undefined;
|
|
650
642
|
rejectVersion?: number | undefined;
|
|
643
|
+
appId?: 0 | undefined;
|
|
651
644
|
approvalProgram: string | Uint8Array;
|
|
652
645
|
clearStateProgram: string | Uint8Array;
|
|
653
|
-
|
|
646
|
+
schema?: {
|
|
647
|
+
globalInts: number;
|
|
648
|
+
globalByteSlices: number;
|
|
649
|
+
localInts: number;
|
|
650
|
+
localByteSlices: number;
|
|
651
|
+
} | undefined;
|
|
652
|
+
extraProgramPages?: number | undefined;
|
|
653
|
+
}> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
654
654
|
}) => Promise<Expand<BuiltTransactions>>;
|
|
655
655
|
/** Create an application update call with ABI method call transaction.
|
|
656
656
|
*
|
|
@@ -702,9 +702,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
702
702
|
* @returns The application ABI method update transaction
|
|
703
703
|
*/
|
|
704
704
|
appUpdateMethodCall: (params: {
|
|
705
|
-
|
|
705
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
706
706
|
sender: SendingAddress;
|
|
707
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
708
707
|
rekeyTo?: ReadableAddress | undefined;
|
|
709
708
|
note?: string | Uint8Array | undefined;
|
|
710
709
|
lease?: string | Uint8Array | undefined;
|
|
@@ -714,6 +713,9 @@ declare class AlgorandClientTransactionCreator {
|
|
|
714
713
|
validityWindow?: number | bigint | undefined;
|
|
715
714
|
firstValidRound?: bigint | undefined;
|
|
716
715
|
lastValidRound?: bigint | undefined;
|
|
716
|
+
appId: bigint;
|
|
717
|
+
approvalProgram: string | Uint8Array;
|
|
718
|
+
clearStateProgram: string | Uint8Array;
|
|
717
719
|
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
718
720
|
accountReferences?: ReadableAddress[] | undefined;
|
|
719
721
|
appReferences?: bigint[] | undefined;
|
|
@@ -721,12 +723,10 @@ declare class AlgorandClientTransactionCreator {
|
|
|
721
723
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
722
724
|
accessReferences?: ResourceReference[] | undefined;
|
|
723
725
|
rejectVersion?: number | undefined;
|
|
724
|
-
approvalProgram: string | Uint8Array;
|
|
725
|
-
clearStateProgram: string | Uint8Array;
|
|
726
726
|
method: ABIMethod;
|
|
727
|
-
args?: (
|
|
727
|
+
args?: (ABIValue | Transaction | TransactionWithSigner | AppMethodCall<{
|
|
728
728
|
sender: SendingAddress;
|
|
729
|
-
signer?:
|
|
729
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
730
730
|
rekeyTo?: ReadableAddress | undefined;
|
|
731
731
|
note?: string | Uint8Array | undefined;
|
|
732
732
|
lease?: string | Uint8Array | undefined;
|
|
@@ -736,7 +736,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
736
736
|
validityWindow?: number | bigint | undefined;
|
|
737
737
|
firstValidRound?: bigint | undefined;
|
|
738
738
|
lastValidRound?: bigint | undefined;
|
|
739
|
-
|
|
739
|
+
appId: bigint;
|
|
740
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
740
741
|
args?: Uint8Array[] | undefined;
|
|
741
742
|
accountReferences?: ReadableAddress[] | undefined;
|
|
742
743
|
appReferences?: bigint[] | undefined;
|
|
@@ -744,19 +745,12 @@ declare class AlgorandClientTransactionCreator {
|
|
|
744
745
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
745
746
|
accessReferences?: ResourceReference[] | undefined;
|
|
746
747
|
rejectVersion?: number | undefined;
|
|
747
|
-
appId?: 0 | undefined;
|
|
748
748
|
approvalProgram: string | Uint8Array;
|
|
749
749
|
clearStateProgram: string | Uint8Array;
|
|
750
|
-
schema?: {
|
|
751
|
-
globalInts: number;
|
|
752
|
-
globalByteSlices: number;
|
|
753
|
-
localInts: number;
|
|
754
|
-
localByteSlices: number;
|
|
755
|
-
} | undefined;
|
|
756
|
-
extraProgramPages?: number | undefined;
|
|
757
750
|
}> | AppMethodCall<{
|
|
751
|
+
args?: Uint8Array[] | undefined;
|
|
752
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
758
753
|
sender: SendingAddress;
|
|
759
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
760
754
|
rekeyTo?: ReadableAddress | undefined;
|
|
761
755
|
note?: string | Uint8Array | undefined;
|
|
762
756
|
lease?: string | Uint8Array | undefined;
|
|
@@ -766,18 +760,24 @@ declare class AlgorandClientTransactionCreator {
|
|
|
766
760
|
validityWindow?: number | bigint | undefined;
|
|
767
761
|
firstValidRound?: bigint | undefined;
|
|
768
762
|
lastValidRound?: bigint | undefined;
|
|
769
|
-
|
|
770
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
771
|
-
args?: Uint8Array[] | undefined;
|
|
763
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
772
764
|
accountReferences?: ReadableAddress[] | undefined;
|
|
773
765
|
appReferences?: bigint[] | undefined;
|
|
774
766
|
assetReferences?: bigint[] | undefined;
|
|
775
767
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
776
768
|
accessReferences?: ResourceReference[] | undefined;
|
|
777
769
|
rejectVersion?: number | undefined;
|
|
770
|
+
appId?: 0 | undefined;
|
|
778
771
|
approvalProgram: string | Uint8Array;
|
|
779
772
|
clearStateProgram: string | Uint8Array;
|
|
780
|
-
|
|
773
|
+
schema?: {
|
|
774
|
+
globalInts: number;
|
|
775
|
+
globalByteSlices: number;
|
|
776
|
+
localInts: number;
|
|
777
|
+
localByteSlices: number;
|
|
778
|
+
} | undefined;
|
|
779
|
+
extraProgramPages?: number | undefined;
|
|
780
|
+
}> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
781
781
|
}) => Promise<Expand<BuiltTransactions>>;
|
|
782
782
|
/** Create an application delete call with ABI method call transaction.
|
|
783
783
|
*
|
|
@@ -827,9 +827,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
827
827
|
* @returns The application ABI method delete transaction
|
|
828
828
|
*/
|
|
829
829
|
appDeleteMethodCall: (params: {
|
|
830
|
-
|
|
830
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
831
831
|
sender: SendingAddress;
|
|
832
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
833
832
|
rekeyTo?: ReadableAddress | undefined;
|
|
834
833
|
note?: string | Uint8Array | undefined;
|
|
835
834
|
lease?: string | Uint8Array | undefined;
|
|
@@ -839,6 +838,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
839
838
|
validityWindow?: number | bigint | undefined;
|
|
840
839
|
firstValidRound?: bigint | undefined;
|
|
841
840
|
lastValidRound?: bigint | undefined;
|
|
841
|
+
appId: bigint;
|
|
842
842
|
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
843
843
|
accountReferences?: ReadableAddress[] | undefined;
|
|
844
844
|
appReferences?: bigint[] | undefined;
|
|
@@ -847,9 +847,9 @@ declare class AlgorandClientTransactionCreator {
|
|
|
847
847
|
accessReferences?: ResourceReference[] | undefined;
|
|
848
848
|
rejectVersion?: number | undefined;
|
|
849
849
|
method: ABIMethod;
|
|
850
|
-
args?: (
|
|
850
|
+
args?: (ABIValue | Transaction | TransactionWithSigner | AppMethodCall<{
|
|
851
851
|
sender: SendingAddress;
|
|
852
|
-
signer?:
|
|
852
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
853
853
|
rekeyTo?: ReadableAddress | undefined;
|
|
854
854
|
note?: string | Uint8Array | undefined;
|
|
855
855
|
lease?: string | Uint8Array | undefined;
|
|
@@ -859,7 +859,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
859
859
|
validityWindow?: number | bigint | undefined;
|
|
860
860
|
firstValidRound?: bigint | undefined;
|
|
861
861
|
lastValidRound?: bigint | undefined;
|
|
862
|
-
|
|
862
|
+
appId: bigint;
|
|
863
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
863
864
|
args?: Uint8Array[] | undefined;
|
|
864
865
|
accountReferences?: ReadableAddress[] | undefined;
|
|
865
866
|
appReferences?: bigint[] | undefined;
|
|
@@ -867,19 +868,12 @@ declare class AlgorandClientTransactionCreator {
|
|
|
867
868
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
868
869
|
accessReferences?: ResourceReference[] | undefined;
|
|
869
870
|
rejectVersion?: number | undefined;
|
|
870
|
-
appId?: 0 | undefined;
|
|
871
871
|
approvalProgram: string | Uint8Array;
|
|
872
872
|
clearStateProgram: string | Uint8Array;
|
|
873
|
-
schema?: {
|
|
874
|
-
globalInts: number;
|
|
875
|
-
globalByteSlices: number;
|
|
876
|
-
localInts: number;
|
|
877
|
-
localByteSlices: number;
|
|
878
|
-
} | undefined;
|
|
879
|
-
extraProgramPages?: number | undefined;
|
|
880
873
|
}> | AppMethodCall<{
|
|
874
|
+
args?: Uint8Array[] | undefined;
|
|
875
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
881
876
|
sender: SendingAddress;
|
|
882
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
883
877
|
rekeyTo?: ReadableAddress | undefined;
|
|
884
878
|
note?: string | Uint8Array | undefined;
|
|
885
879
|
lease?: string | Uint8Array | undefined;
|
|
@@ -889,18 +883,24 @@ declare class AlgorandClientTransactionCreator {
|
|
|
889
883
|
validityWindow?: number | bigint | undefined;
|
|
890
884
|
firstValidRound?: bigint | undefined;
|
|
891
885
|
lastValidRound?: bigint | undefined;
|
|
892
|
-
|
|
893
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
894
|
-
args?: Uint8Array[] | undefined;
|
|
886
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
895
887
|
accountReferences?: ReadableAddress[] | undefined;
|
|
896
888
|
appReferences?: bigint[] | undefined;
|
|
897
889
|
assetReferences?: bigint[] | undefined;
|
|
898
890
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
899
891
|
accessReferences?: ResourceReference[] | undefined;
|
|
900
892
|
rejectVersion?: number | undefined;
|
|
893
|
+
appId?: 0 | undefined;
|
|
901
894
|
approvalProgram: string | Uint8Array;
|
|
902
895
|
clearStateProgram: string | Uint8Array;
|
|
903
|
-
|
|
896
|
+
schema?: {
|
|
897
|
+
globalInts: number;
|
|
898
|
+
globalByteSlices: number;
|
|
899
|
+
localInts: number;
|
|
900
|
+
localByteSlices: number;
|
|
901
|
+
} | undefined;
|
|
902
|
+
extraProgramPages?: number | undefined;
|
|
903
|
+
}> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
904
904
|
}) => Promise<Expand<BuiltTransactions>>;
|
|
905
905
|
/** Create an application call with ABI method call transaction.
|
|
906
906
|
*
|
|
@@ -950,9 +950,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
950
950
|
* @returns The application ABI method call transaction
|
|
951
951
|
*/
|
|
952
952
|
appCallMethodCall: (params: {
|
|
953
|
-
|
|
953
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
954
954
|
sender: SendingAddress;
|
|
955
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
956
955
|
rekeyTo?: ReadableAddress | undefined;
|
|
957
956
|
note?: string | Uint8Array | undefined;
|
|
958
957
|
lease?: string | Uint8Array | undefined;
|
|
@@ -962,6 +961,7 @@ declare class AlgorandClientTransactionCreator {
|
|
|
962
961
|
validityWindow?: number | bigint | undefined;
|
|
963
962
|
firstValidRound?: bigint | undefined;
|
|
964
963
|
lastValidRound?: bigint | undefined;
|
|
964
|
+
appId: bigint;
|
|
965
965
|
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
966
966
|
accountReferences?: ReadableAddress[] | undefined;
|
|
967
967
|
appReferences?: bigint[] | undefined;
|
|
@@ -970,9 +970,9 @@ declare class AlgorandClientTransactionCreator {
|
|
|
970
970
|
accessReferences?: ResourceReference[] | undefined;
|
|
971
971
|
rejectVersion?: number | undefined;
|
|
972
972
|
method: ABIMethod;
|
|
973
|
-
args?: (
|
|
973
|
+
args?: (ABIValue | Transaction | TransactionWithSigner | AppMethodCall<{
|
|
974
974
|
sender: SendingAddress;
|
|
975
|
-
signer?:
|
|
975
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
976
976
|
rekeyTo?: ReadableAddress | undefined;
|
|
977
977
|
note?: string | Uint8Array | undefined;
|
|
978
978
|
lease?: string | Uint8Array | undefined;
|
|
@@ -982,7 +982,8 @@ declare class AlgorandClientTransactionCreator {
|
|
|
982
982
|
validityWindow?: number | bigint | undefined;
|
|
983
983
|
firstValidRound?: bigint | undefined;
|
|
984
984
|
lastValidRound?: bigint | undefined;
|
|
985
|
-
|
|
985
|
+
appId: bigint;
|
|
986
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
986
987
|
args?: Uint8Array[] | undefined;
|
|
987
988
|
accountReferences?: ReadableAddress[] | undefined;
|
|
988
989
|
appReferences?: bigint[] | undefined;
|
|
@@ -990,19 +991,12 @@ declare class AlgorandClientTransactionCreator {
|
|
|
990
991
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
991
992
|
accessReferences?: ResourceReference[] | undefined;
|
|
992
993
|
rejectVersion?: number | undefined;
|
|
993
|
-
appId?: 0 | undefined;
|
|
994
994
|
approvalProgram: string | Uint8Array;
|
|
995
995
|
clearStateProgram: string | Uint8Array;
|
|
996
|
-
schema?: {
|
|
997
|
-
globalInts: number;
|
|
998
|
-
globalByteSlices: number;
|
|
999
|
-
localInts: number;
|
|
1000
|
-
localByteSlices: number;
|
|
1001
|
-
} | undefined;
|
|
1002
|
-
extraProgramPages?: number | undefined;
|
|
1003
996
|
}> | AppMethodCall<{
|
|
997
|
+
args?: Uint8Array[] | undefined;
|
|
998
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1004
999
|
sender: SendingAddress;
|
|
1005
|
-
signer?: TransactionSigner | AddressWithTransactionSigner | undefined;
|
|
1006
1000
|
rekeyTo?: ReadableAddress | undefined;
|
|
1007
1001
|
note?: string | Uint8Array | undefined;
|
|
1008
1002
|
lease?: string | Uint8Array | undefined;
|
|
@@ -1012,18 +1006,24 @@ declare class AlgorandClientTransactionCreator {
|
|
|
1012
1006
|
validityWindow?: number | bigint | undefined;
|
|
1013
1007
|
firstValidRound?: bigint | undefined;
|
|
1014
1008
|
lastValidRound?: bigint | undefined;
|
|
1015
|
-
|
|
1016
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
1017
|
-
args?: Uint8Array[] | undefined;
|
|
1009
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
1018
1010
|
accountReferences?: ReadableAddress[] | undefined;
|
|
1019
1011
|
appReferences?: bigint[] | undefined;
|
|
1020
1012
|
assetReferences?: bigint[] | undefined;
|
|
1021
1013
|
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1022
1014
|
accessReferences?: ResourceReference[] | undefined;
|
|
1023
1015
|
rejectVersion?: number | undefined;
|
|
1016
|
+
appId?: 0 | undefined;
|
|
1024
1017
|
approvalProgram: string | Uint8Array;
|
|
1025
1018
|
clearStateProgram: string | Uint8Array;
|
|
1026
|
-
|
|
1019
|
+
schema?: {
|
|
1020
|
+
globalInts: number;
|
|
1021
|
+
globalByteSlices: number;
|
|
1022
|
+
localInts: number;
|
|
1023
|
+
localByteSlices: number;
|
|
1024
|
+
} | undefined;
|
|
1025
|
+
extraProgramPages?: number | undefined;
|
|
1026
|
+
}> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
1027
1027
|
}) => Promise<Expand<BuiltTransactions>>;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Create an online key registration transaction.
|