@aztec/aztec.js 3.0.0-nightly.20251112 → 3.0.0-nightly.20251114
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/dest/account/account.d.ts +1 -2
- package/dest/account/account.d.ts.map +1 -1
- package/dest/account/signerless_account.d.ts +1 -2
- package/dest/account/signerless_account.d.ts.map +1 -1
- package/dest/api/contract.d.ts +1 -1
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/tx.d.ts +1 -1
- package/dest/api/tx.d.ts.map +1 -1
- package/dest/api/tx.js +1 -1
- package/dest/api/wallet.d.ts +1 -1
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +1 -1
- package/dest/contract/base_contract_interaction.d.ts +1 -2
- package/dest/contract/base_contract_interaction.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.js +1 -1
- package/dest/contract/batch_call.d.ts +7 -8
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +53 -34
- package/dest/contract/contract_function_interaction.d.ts +1 -1
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +9 -6
- package/dest/contract/deploy_method.d.ts +1 -1
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +4 -4
- package/dest/contract/interaction_options.d.ts +3 -3
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/interaction_options.js +4 -10
- package/dest/fee/fee_juice_payment_method_with_claim.d.ts +1 -1
- package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +1 -1
- package/dest/fee/fee_juice_payment_method_with_claim.js +2 -2
- package/dest/fee/fee_payment_method.d.ts +1 -1
- package/dest/fee/fee_payment_method.d.ts.map +1 -1
- package/dest/fee/private_fee_payment_method.d.ts +1 -1
- package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
- package/dest/fee/private_fee_payment_method.js +3 -3
- package/dest/fee/public_fee_payment_method.d.ts +1 -1
- package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
- package/dest/fee/public_fee_payment_method.js +3 -3
- package/dest/fee/sponsored_fee_payment.d.ts +1 -1
- package/dest/fee/sponsored_fee_payment.d.ts.map +1 -1
- package/dest/fee/sponsored_fee_payment.js +2 -2
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +20 -4
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +1 -1
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
- package/dest/wallet/account_entrypoint_meta_payment_method.js +2 -2
- package/dest/wallet/base_wallet.d.ts +16 -14
- package/dest/wallet/base_wallet.d.ts.map +1 -1
- package/dest/wallet/base_wallet.js +27 -26
- package/dest/wallet/deploy_account_method.d.ts +1 -1
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +1 -1
- package/dest/wallet/wallet.d.ts +540 -916
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +19 -10
- package/package.json +8 -8
- package/src/account/account.ts +1 -2
- package/src/account/signerless_account.ts +1 -2
- package/src/api/contract.ts +1 -0
- package/src/api/tx.ts +1 -0
- package/src/api/wallet.ts +1 -2
- package/src/contract/base_contract_interaction.ts +2 -3
- package/src/contract/batch_call.ts +65 -48
- package/src/contract/contract_function_interaction.ts +10 -11
- package/src/contract/deploy_method.ts +4 -4
- package/src/contract/interaction_options.ts +4 -10
- package/src/fee/fee_juice_payment_method_with_claim.ts +3 -1
- package/src/fee/fee_payment_method.ts +1 -1
- package/src/fee/private_fee_payment_method.ts +4 -2
- package/src/fee/public_fee_payment_method.ts +4 -2
- package/src/fee/sponsored_fee_payment.ts +3 -1
- package/src/utils/authwit.ts +15 -4
- package/src/wallet/account_entrypoint_meta_payment_method.ts +2 -1
- package/src/wallet/base_wallet.ts +43 -32
- package/src/wallet/deploy_account_method.ts +1 -1
- package/src/wallet/wallet.ts +21 -25
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { DefaultAccountEntrypointOptions } from '@aztec/entrypoints/account';
|
|
2
|
-
import type { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
3
2
|
import { Fr } from '@aztec/foundation/fields';
|
|
4
3
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
5
4
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
6
|
-
import type { TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
5
|
+
import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
7
6
|
import { type CallIntent, type IntentInnerHash } from '../utils/authwit.js';
|
|
8
7
|
import type { AccountInterface } from './interface.js';
|
|
9
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAA6B,MAAM,qBAAqB,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,UAAU,yBAAyB;IACjC;;;;OAIG;IACH,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,UAAU,GAAG,MAAM,GAAG,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACzF;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,gBAAgB,GAAG,yBAAyB,CAAC;AAEnE;;;GAGG;AACH,qBAAa,WAAY,YAAW,OAAO;IAC7B,SAAS,CAAC,OAAO,EAAE,gBAAgB;gBAAzB,OAAO,EAAE,gBAAgB;IAE/C,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAI9B,UAAU,IAAI,EAAE;IAIhB,UAAU,IAAI,EAAE;IAIhB,+EAA+E;IACxE,kBAAkB;IAIzB,sEAAsE;IAC/D,UAAU;IAIjB;;;;;;;;;OASG;IACG,aAAa,CAAC,mBAAmB,EAAE,EAAE,GAAG,MAAM,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAa1G;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAKvB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { ChainInfo } from '@aztec/entrypoints/interfaces';
|
|
2
|
-
import type { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
3
2
|
import type { Fr } from '@aztec/foundation/fields';
|
|
4
3
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
5
4
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
6
5
|
import type { CompleteAddress } from '@aztec/stdlib/contract';
|
|
7
6
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
8
|
-
import type { TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
7
|
+
import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
9
8
|
import type { CallIntent, IntentInnerHash } from '../utils/authwit.js';
|
|
10
9
|
import type { Account } from './account.js';
|
|
11
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerless_account.d.ts","sourceRoot":"","sources":["../../src/account/signerless_account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,+BAA+B,CAAC;AAEpF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"signerless_account.d.ts","sourceRoot":"","sources":["../../src/account/signerless_account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,+BAA+B,CAAC;AAEpF,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,qBAAa,iBAAkB,YAAW,OAAO;IAC/C,OAAO,CAAC,UAAU,CAAsB;gBAC5B,SAAS,EAAE,SAAS;IAIhC,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIvG,UAAU,IAAI,EAAE;IAIhB,UAAU,IAAI,EAAE;IAIhB,kBAAkB,IAAI,eAAe;IAIrC,UAAU,IAAI,YAAY;IAI1B,aAAa,CAAC,OAAO,EAAE,EAAE,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;CAGzF"}
|
package/dest/api/contract.d.ts
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
*/
|
|
38
38
|
export { Contract } from '../contract/contract.js';
|
|
39
39
|
export { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
40
|
-
export { type RequestInteractionOptions, type SendInteractionOptions, type ProfileInteractionOptions, type SimulateInteractionOptions, type InteractionFeeOptions, toProfileOptions, toSendOptions, toSimulateOptions, } from '../contract/interaction_options.js';
|
|
40
|
+
export { type RequestInteractionOptions, type SendInteractionOptions, type ProfileInteractionOptions, type SimulateInteractionOptions, type InteractionFeeOptions, type GasSettingsOption, toProfileOptions, toSendOptions, toSimulateOptions, } from '../contract/interaction_options.js';
|
|
41
41
|
export { DefaultWaitOpts, SentTx, type WaitOpts } from '../contract/sent_tx.js';
|
|
42
42
|
export { ContractBase, type ContractMethod, type ContractStorageLayout } from '../contract/contract_base.js';
|
|
43
43
|
export { BatchCall } from '../contract/batch_call.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/api/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,gBAAgB,EAChB,aAAa,EACb,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,KA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E,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,4BAA4B,EAC5B,0CAA0C,EAC1C,KAAK,QAAQ,GACd,MAAM,wBAAwB,CAAC"}
|
package/dest/api/tx.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, TxProfileResult, } from '@aztec/stdlib/tx';
|
|
1
|
+
export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, TxProfileResult, ExecutionPayload, } from '@aztec/stdlib/tx';
|
|
2
2
|
//# sourceMappingURL=tx.d.ts.map
|
package/dest/api/tx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../../src/api/tx.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,eAAe,EACf,eAAe,
|
|
1
|
+
{"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../../src/api/tx.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC"}
|
package/dest/api/tx.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, TxProfileResult } from '@aztec/stdlib/tx';
|
|
1
|
+
export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, TxProfileResult, ExecutionPayload } from '@aztec/stdlib/tx';
|
package/dest/api/wallet.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type Aliased, type ContractInstanceAndArtifact, type
|
|
1
|
+
export { type Aliased, type ContractInstanceAndArtifact, type SimulateOptions, type ProfileOptions, type SendOptions, type BatchableMethods, type BatchedMethod, type BatchedMethodResult, type BatchedMethodResultWrapper, type BatchResults, type Wallet, ContractInstantiationDataSchema, FunctionCallSchema, ExecutionPayloadSchema, GasSettingsOptionSchema, WalletSimulationFeeOptionSchema, SendOptionsSchema, SimulateOptionsSchema, ProfileOptionsSchema, InstanceDataSchema, MessageHashOrIntentSchema, BatchedMethodSchema, ContractMetadataSchema, ContractClassMetadataSchema, EventMetadataDefinitionSchema, WalletSchema, } from '../wallet/wallet.js';
|
|
2
2
|
export { type FeeOptions, BaseWallet } from '../wallet/base_wallet.js';
|
|
3
3
|
export { AccountManager } from '../wallet/account_manager.js';
|
|
4
4
|
export { type DeployAccountOptions, DeployAccountMethod } from '../wallet/deploy_account_method.js';
|
package/dest/api/wallet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/api/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,2BAA2B,EAChC,KAAK,
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/api/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,KAAK,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC"}
|
package/dest/api/wallet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ContractInstantiationDataSchema, FunctionCallSchema, ExecutionPayloadSchema,
|
|
1
|
+
export { ContractInstantiationDataSchema, FunctionCallSchema, ExecutionPayloadSchema, GasSettingsOptionSchema, WalletSimulationFeeOptionSchema, SendOptionsSchema, SimulateOptionsSchema, ProfileOptionsSchema, InstanceDataSchema, MessageHashOrIntentSchema, BatchedMethodSchema, ContractMetadataSchema, ContractClassMetadataSchema, EventMetadataDefinitionSchema, WalletSchema } from '../wallet/wallet.js';
|
|
2
2
|
export { BaseWallet } from '../wallet/base_wallet.js';
|
|
3
3
|
export { AccountManager } from '../wallet/account_manager.js';
|
|
4
4
|
export { DeployAccountMethod } from '../wallet/deploy_account_method.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
3
|
-
import type { Capsule } from '@aztec/stdlib/tx';
|
|
2
|
+
import type { Capsule, ExecutionPayload } from '@aztec/stdlib/tx';
|
|
4
3
|
import type { Wallet } from '../wallet/wallet.js';
|
|
5
4
|
import { type RequestInteractionOptions, type SendInteractionOptions } from './interaction_options.js';
|
|
6
5
|
import { SentTx } from './sent_tx.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_contract_interaction.d.ts","sourceRoot":"","sources":["../../src/contract/base_contract_interaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base_contract_interaction.d.ts","sourceRoot":"","sources":["../../src/contract/base_contract_interaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAiB,MAAM,0BAA0B,CAAC;AACtH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;;GAGG;AACH,8BAAsB,uBAAuB;IAIzC,SAAS,CAAC,MAAM,EAAE,MAAM;IACxB,SAAS,CAAC,aAAa,EAAE,WAAW,EAAE;IACtC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE;IAL/B,SAAS,CAAC,GAAG,yCAAgD;gBAGjD,MAAM,EAAE,MAAM,EACd,aAAa,GAAE,WAAW,EAAO,EACjC,QAAQ,GAAE,OAAO,EAAO;IAGpC;;;;;OAKG;aACa,OAAO,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAGvF;;;;;;;;OAQG;IACI,IAAI,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM;CASrD"}
|
|
@@ -28,7 +28,7 @@ import { SentTx } from './sent_tx.js';
|
|
|
28
28
|
// docs:end:send
|
|
29
29
|
const sendTx = async ()=>{
|
|
30
30
|
const executionPayload = await this.request(options);
|
|
31
|
-
const sendOptions =
|
|
31
|
+
const sendOptions = toSendOptions(options);
|
|
32
32
|
return this.wallet.sendTx(executionPayload, sendOptions);
|
|
33
33
|
};
|
|
34
34
|
return new SentTx(this.wallet, sendTx);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/
|
|
1
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
2
2
|
import type { Wallet } from '../wallet/wallet.js';
|
|
3
3
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
4
4
|
import { type RequestInteractionOptions, type SimulateInteractionOptions } from './interaction_options.js';
|
|
@@ -13,13 +13,12 @@ export declare class BatchCall extends BaseContractInteraction {
|
|
|
13
13
|
*/
|
|
14
14
|
request(options?: RequestInteractionOptions): Promise<ExecutionPayload>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @
|
|
22
|
-
* @returns The result of the transaction as returned by the contract function.
|
|
16
|
+
* Simulates the batch, supporting private, public and utility functions. Although this is a single
|
|
17
|
+
* interaction with the wallet, private and public functions will be grouped into a single ExecutionPayload
|
|
18
|
+
* that the wallet will simulate as a single transaction. Utility function calls will simply be executed
|
|
19
|
+
* one by one.
|
|
20
|
+
* @param options - An optional object containing additional configuration for the interaction.
|
|
21
|
+
* @returns The results of all the interactions that make up the batch
|
|
23
22
|
*/
|
|
24
23
|
simulate(options: SimulateInteractionOptions): Promise<any>;
|
|
25
24
|
protected getExecutionPayloads(): Promise<ExecutionPayload[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch_call.d.ts","sourceRoot":"","sources":["../../src/contract/batch_call.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch_call.d.ts","sourceRoot":"","sources":["../../src/contract/batch_call.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAIjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAEhC,MAAM,0BAA0B,CAAC;AAElC,qFAAqF;AACrF,qBAAa,SAAU,SAAQ,uBAAuB;IAGlD,SAAS,CAAC,YAAY,EAAE,CAAC,uBAAuB,GAAG,gBAAgB,CAAC,EAAE;gBADtE,MAAM,EAAE,MAAM,EACJ,YAAY,EAAE,CAAC,uBAAuB,GAAG,gBAAgB,CAAC,EAAE;IAKxE;;;;OAIG;IACU,OAAO,CAAC,OAAO,GAAE,yBAA8B,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAWxF;;;;;;;OAOG;IACU,QAAQ,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,GAAG,CAAC;cA2FxD,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAGpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { FunctionType, decodeFromAbi } from '@aztec/stdlib/abi';
|
|
2
|
+
import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
3
3
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
4
4
|
import { toSimulateOptions } from './interaction_options.js';
|
|
5
5
|
/** A batch of function calls to be sent as a single transaction through a wallet. */ export class BatchCall extends BaseContractInteraction {
|
|
@@ -23,13 +23,12 @@ import { toSimulateOptions } from './interaction_options.js';
|
|
|
23
23
|
return finalExecutionPayload;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* @
|
|
32
|
-
* @returns The result of the transaction as returned by the contract function.
|
|
26
|
+
* Simulates the batch, supporting private, public and utility functions. Although this is a single
|
|
27
|
+
* interaction with the wallet, private and public functions will be grouped into a single ExecutionPayload
|
|
28
|
+
* that the wallet will simulate as a single transaction. Utility function calls will simply be executed
|
|
29
|
+
* one by one.
|
|
30
|
+
* @param options - An optional object containing additional configuration for the interaction.
|
|
31
|
+
* @returns The results of all the interactions that make up the batch
|
|
33
32
|
*/ async simulate(options) {
|
|
34
33
|
const { indexedExecutionPayloads, utility } = (await this.getExecutionPayloads()).reduce((acc, current, index)=>{
|
|
35
34
|
const call = current.calls[0];
|
|
@@ -52,37 +51,57 @@ import { toSimulateOptions } from './interaction_options.js';
|
|
|
52
51
|
publicIndex: 0,
|
|
53
52
|
privateIndex: 0
|
|
54
53
|
});
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
const batchRequests = [];
|
|
55
|
+
// Add utility calls to batch
|
|
56
|
+
for (const [call] of utility){
|
|
57
|
+
batchRequests.push({
|
|
59
58
|
name: 'simulateUtility',
|
|
60
59
|
args: [
|
|
61
|
-
call
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
options?.authWitnesses
|
|
60
|
+
call,
|
|
61
|
+
options?.authWitnesses,
|
|
62
|
+
undefined
|
|
65
63
|
]
|
|
66
|
-
}))) : Promise.resolve([]);
|
|
67
|
-
const [utilityBatchResults, simulatedTx] = await Promise.all([
|
|
68
|
-
utilityBatchPromise,
|
|
69
|
-
indexedExecutionPayloads.length > 0 ? this.wallet.simulateTx(executionPayload, await toSimulateOptions(options)) : Promise.resolve()
|
|
70
|
-
]);
|
|
71
|
-
const results = [];
|
|
72
|
-
utilityBatchResults.forEach((wrappedResult, utilityIndex)=>{
|
|
73
|
-
const [, originalIndex] = utility[utilityIndex];
|
|
74
|
-
results[originalIndex] = wrappedResult.result.result;
|
|
75
|
-
});
|
|
76
|
-
if (simulatedTx) {
|
|
77
|
-
indexedExecutionPayloads.forEach(([request, callIndex, resultIndex])=>{
|
|
78
|
-
const call = request.calls[0];
|
|
79
|
-
// As account entrypoints are private, for private functions we retrieve the return values from the first nested call
|
|
80
|
-
// since we're interested in the first set of values AFTER the account entrypoint
|
|
81
|
-
// For public functions we retrieve the first values directly from the public output.
|
|
82
|
-
const rawReturnValues = call.type == FunctionType.PRIVATE ? simulatedTx.getPrivateReturnValues()?.nested?.[resultIndex].values : simulatedTx.getPublicReturnValues()?.[resultIndex].values;
|
|
83
|
-
results[callIndex] = rawReturnValues ? decodeFromAbi(call.returnTypes, rawReturnValues) : [];
|
|
84
64
|
});
|
|
85
65
|
}
|
|
66
|
+
// Add tx simulation to batch if there are any private/public calls
|
|
67
|
+
if (indexedExecutionPayloads.length > 0) {
|
|
68
|
+
const payloads = indexedExecutionPayloads.map(([request])=>request);
|
|
69
|
+
const combinedPayload = mergeExecutionPayloads(payloads);
|
|
70
|
+
const executionPayload = new ExecutionPayload(combinedPayload.calls, combinedPayload.authWitnesses.concat(options.authWitnesses ?? []), combinedPayload.capsules.concat(options.capsules ?? []), combinedPayload.extraHashedArgs);
|
|
71
|
+
batchRequests.push({
|
|
72
|
+
name: 'simulateTx',
|
|
73
|
+
args: [
|
|
74
|
+
executionPayload,
|
|
75
|
+
toSimulateOptions(options)
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
const batchResults = batchRequests.length > 0 ? await this.wallet.batch(batchRequests) : [];
|
|
80
|
+
const results = [];
|
|
81
|
+
// Process utility results (they come first in batch results)
|
|
82
|
+
for(let i = 0; i < utility.length; i++){
|
|
83
|
+
const [call, resultIndex] = utility[i];
|
|
84
|
+
const wrappedResult = batchResults[i];
|
|
85
|
+
if (wrappedResult.name === 'simulateUtility') {
|
|
86
|
+
const rawReturnValues = wrappedResult.result.result;
|
|
87
|
+
results[resultIndex] = rawReturnValues ? decodeFromAbi(call.returnTypes, rawReturnValues) : [];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// Process tx simulation result (it comes last if present)
|
|
91
|
+
if (indexedExecutionPayloads.length > 0) {
|
|
92
|
+
const txResultWrapper = batchResults[utility.length];
|
|
93
|
+
if (txResultWrapper.name === 'simulateTx') {
|
|
94
|
+
const simulatedTx = txResultWrapper.result;
|
|
95
|
+
indexedExecutionPayloads.forEach(([request, callIndex, resultIndex])=>{
|
|
96
|
+
const call = request.calls[0];
|
|
97
|
+
// As account entrypoints are private, for private functions we retrieve the return values from the first nested call
|
|
98
|
+
// since we're interested in the first set of values AFTER the account entrypoint
|
|
99
|
+
// For public functions we retrieve the first values directly from the public output.
|
|
100
|
+
const rawReturnValues = call.type == FunctionType.PRIVATE ? simulatedTx.getPrivateReturnValues()?.nested?.[resultIndex].values : simulatedTx.getPublicReturnValues()?.[resultIndex].values;
|
|
101
|
+
results[callIndex] = rawReturnValues ? decodeFromAbi(call.returnTypes, rawReturnValues) : [];
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
86
105
|
return results;
|
|
87
106
|
}
|
|
88
107
|
async getExecutionPayloads() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { type FunctionAbi, FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
3
2
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
4
3
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
4
|
import { type Capsule, type HashedValues, type TxProfileResult } from '@aztec/stdlib/tx';
|
|
5
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
6
6
|
import type { Wallet } from '../wallet/wallet.js';
|
|
7
7
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
8
8
|
import { type ProfileInteractionOptions, type RequestInteractionOptions, type SimulateInteractionOptions, type SimulationReturn } from './interaction_options.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract_function_interaction.d.ts","sourceRoot":"","sources":["../../src/contract/contract_function_interaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"contract_function_interaction.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D,OAAO,EAAE,CAAC,GACT,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;IAE5D,QAAQ,CAAC,CAAC,SAAS,0BAA0B,EACxD,OAAO,EAAE,CAAC,GACT,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;IA2DlD;;;;;OAKG;IACU,OAAO,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC;IASlF;;;;;;OAMG;IACI,IAAI,CAAC,EACV,aAAkB,EAClB,QAAa,EACb,eAAoB,GACrB,EAAE;QACD,kDAAkD;QAClD,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;QAC9B,6CAA6C;QAC7C,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;QACrB,sDAAsD;QACtD,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;KAClC,GAAG,2BAA2B;CAWhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { FunctionSelector, FunctionType, decodeFromAbi, encodeArguments } from '@aztec/stdlib/abi';
|
|
3
2
|
import { collectOffchainEffects } from '@aztec/stdlib/tx';
|
|
3
|
+
import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
4
4
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
5
5
|
import { getGasLimits } from './get_gas_limits.js';
|
|
6
6
|
import { toProfileOptions, toSimulateOptions } from './interaction_options.js';
|
|
@@ -56,18 +56,21 @@ import { toProfileOptions, toSimulateOptions } from './interaction_options.js';
|
|
|
56
56
|
async simulate(options) {
|
|
57
57
|
// docs:end:simulate
|
|
58
58
|
if (this.functionDao.functionType == FunctionType.UTILITY) {
|
|
59
|
-
const
|
|
59
|
+
const call = await this.getFunctionCall();
|
|
60
|
+
const utilityResult = await this.wallet.simulateUtility(call, options.authWitnesses ?? []);
|
|
61
|
+
// Decode the raw field elements to the actual return type
|
|
62
|
+
const returnValue = utilityResult.result ? decodeFromAbi(this.functionDao.returnTypes, utilityResult.result) : [];
|
|
60
63
|
if (options.includeMetadata) {
|
|
61
64
|
return {
|
|
62
65
|
stats: utilityResult.stats,
|
|
63
|
-
result:
|
|
66
|
+
result: returnValue
|
|
64
67
|
};
|
|
65
68
|
} else {
|
|
66
|
-
return
|
|
69
|
+
return returnValue;
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
const executionPayload = await this.request(options);
|
|
70
|
-
const simulatedTx = await this.wallet.simulateTx(executionPayload,
|
|
73
|
+
const simulatedTx = await this.wallet.simulateTx(executionPayload, toSimulateOptions(options));
|
|
71
74
|
let rawReturnValues;
|
|
72
75
|
if (this.functionDao.functionType == FunctionType.PRIVATE) {
|
|
73
76
|
if (simulatedTx.getPrivateReturnValues().nested.length > 0) {
|
|
@@ -109,7 +112,7 @@ import { toProfileOptions, toSimulateOptions } from './interaction_options.js';
|
|
|
109
112
|
throw new Error("Can't profile a utility function.");
|
|
110
113
|
}
|
|
111
114
|
const executionPayload = await this.request(options);
|
|
112
|
-
return await this.wallet.profileTx(executionPayload,
|
|
115
|
+
return await this.wallet.profileTx(executionPayload, toProfileOptions(options));
|
|
113
116
|
}
|
|
114
117
|
/**
|
|
115
118
|
* Augments this ContractFunctionInteraction with additional metadata, such as authWitnesses, capsules, and extraHashedArgs.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { Fr } from '@aztec/foundation/fields';
|
|
3
2
|
import { type ContractArtifact, type FunctionArtifact } from '@aztec/stdlib/abi';
|
|
4
3
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
@@ -6,6 +5,7 @@ import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
|
6
5
|
import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
7
6
|
import type { PublicKeys } from '@aztec/stdlib/keys';
|
|
8
7
|
import { type Capsule, type TxProfileResult } from '@aztec/stdlib/tx';
|
|
8
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
9
9
|
import type { Wallet } from '../wallet/wallet.js';
|
|
10
10
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
11
11
|
import type { Contract } from './contract.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy_method.d.ts","sourceRoot":"","sources":["../../src/contract/deploy_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deploy_method.d.ts","sourceRoot":"","sources":["../../src/contract/deploy_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,KAAK,gBAAgB,EAAoB,KAAK,gBAAgB,EAAkB,MAAM,mBAAmB,CAAC;AACnH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,KAAK,2BAA2B,EAIjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAA0B,MAAM,kBAAkB,CAAC;AAI5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,YAA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CAAC,CAAC;IAgBtF;;;;;OAKG;IACU,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC;IASlG,sCAAsC;IACtC,IAAW,OAAO,6BAEjB;IAED,uDAAuD;IACvD,IAAW,cAAc,4BAExB;IAED;;;;OAIG;IACI,IAAI,CAAC,EACV,aAAkB,EAClB,QAAa,GACd,EAAE;QACD,iDAAiD;QACjD,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;QAC9B,4CAA4C;QAC5C,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;KACtB,GAAG,YAAY;CAYjB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { mergeExecutionPayloads } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { Fr } from '@aztec/foundation/fields';
|
|
3
2
|
import { getInitializer } from '@aztec/stdlib/abi';
|
|
4
3
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
4
|
import { computePartialAddress, getContractClassFromArtifact, getContractInstanceFromInstantiationParams } from '@aztec/stdlib/contract';
|
|
6
5
|
import { collectOffchainEffects } from '@aztec/stdlib/tx';
|
|
6
|
+
import { mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
7
7
|
import { publishContractClass } from '../deployment/publish_class.js';
|
|
8
8
|
import { publishInstance } from '../deployment/publish_instance.js';
|
|
9
9
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
@@ -129,7 +129,7 @@ import { toProfileOptions, toSendOptions, toSimulateOptions } from './interactio
|
|
|
129
129
|
*/ send(options) {
|
|
130
130
|
const sendTx = async ()=>{
|
|
131
131
|
const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
|
|
132
|
-
const sendOptions =
|
|
132
|
+
const sendOptions = toSendOptions(options);
|
|
133
133
|
return this.wallet.sendTx(executionPayload, sendOptions);
|
|
134
134
|
};
|
|
135
135
|
this.log.debug(`Sent deployment tx of ${this.artifact.name} contract`);
|
|
@@ -160,7 +160,7 @@ import { toProfileOptions, toSendOptions, toSimulateOptions } from './interactio
|
|
|
160
160
|
* estimations (if requested via options), execution statistics and emitted offchain effects
|
|
161
161
|
*/ async simulate(options) {
|
|
162
162
|
const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
|
|
163
|
-
const simulatedTx = await this.wallet.simulateTx(executionPayload,
|
|
163
|
+
const simulatedTx = await this.wallet.simulateTx(executionPayload, toSimulateOptions(options));
|
|
164
164
|
const { gasLimits, teardownGasLimits } = getGasLimits(simulatedTx, options.fee?.estimatedGasPadding);
|
|
165
165
|
this.log.verbose(`Estimated gas limits for tx: DA=${gasLimits.daGas} L2=${gasLimits.l2Gas} teardownDA=${teardownGasLimits.daGas} teardownL2=${teardownGasLimits.l2Gas}`);
|
|
166
166
|
return {
|
|
@@ -181,7 +181,7 @@ import { toProfileOptions, toSendOptions, toSimulateOptions } from './interactio
|
|
|
181
181
|
*/ async profile(options) {
|
|
182
182
|
const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
|
|
183
183
|
return await this.wallet.profileTx(executionPayload, {
|
|
184
|
-
...
|
|
184
|
+
...toProfileOptions(options),
|
|
185
185
|
profileMode: options.profileMode,
|
|
186
186
|
skipProofGeneration: options.skipProofGeneration
|
|
187
187
|
});
|
|
@@ -100,15 +100,15 @@ export type SimulationReturn<T extends boolean | undefined> = T extends true ? {
|
|
|
100
100
|
* Transforms and cleans up the higher level SendInteractionOptions defined by the interaction into
|
|
101
101
|
* SendOptions, which are the ones that can be serialized and forwarded to the wallet
|
|
102
102
|
*/
|
|
103
|
-
export declare function toSendOptions(options: SendInteractionOptions):
|
|
103
|
+
export declare function toSendOptions(options: SendInteractionOptions): SendOptions;
|
|
104
104
|
/**
|
|
105
105
|
* Transforms and cleans up the higher level SimulateInteractionOptions defined by the interaction into
|
|
106
106
|
* SimulateOptions, which are the ones that can be serialized and forwarded to the wallet
|
|
107
107
|
*/
|
|
108
|
-
export declare function toSimulateOptions(options: SimulateInteractionOptions):
|
|
108
|
+
export declare function toSimulateOptions(options: SimulateInteractionOptions): SimulateOptions;
|
|
109
109
|
/**
|
|
110
110
|
* Transforms and cleans up the higher level ProfileInteractionOptions defined by the interaction into
|
|
111
111
|
* ProfileOptions, which are the ones that can be serialized and forwarded to the wallet
|
|
112
112
|
*/
|
|
113
|
-
export declare function toProfileOptions(options: ProfileInteractionOptions):
|
|
113
|
+
export declare function toProfileOptions(options: ProfileInteractionOptions): ProfileOptions;
|
|
114
114
|
//# sourceMappingURL=interaction_options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction_options.d.ts","sourceRoot":"","sources":["../../src/contract/interaction_options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,kHAAkH;IAClH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qHAAqH;IACrH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,qDAAqD;IACrD,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uBAAuB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AAG,SAAS,IAAI,CAAC,SAAS,IAAI,GACxE;IACE,4CAA4C;IAC5C,KAAK,EAAE,eAAe,CAAC;IACvB,uDAAuD;IACvD,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,oCAAoC;IACpC,MAAM,EAAE,GAAG,CAAC;IACZ,6BAA6B;IAC7B,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,mBAAmB,CAAC,CAAC;CACpE,GACD,GAAG,CAAC;AAER;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"interaction_options.d.ts","sourceRoot":"","sources":["../../src/contract/interaction_options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,kHAAkH;IAClH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qHAAqH;IACrH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,qDAAqD;IACrD,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC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A4C;IAC5C,KAAK,EAAE,eAAe,CAAC;IACvB,uDAAuD;IACvD,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,oCAAoC;IACpC,MAAM,EAAE,GAAG,CAAC;IACZ,6BAA6B;IAC7B,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,mBAAmB,CAAC,CAAC;CACpE,GACD,GAAG,CAAC;AAER;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,WAAW,CAa1E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,0BAA0B,GAAG,eAAe,CAetF;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,yBAAyB,GAAG,cAAc,CAMnF"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Transforms and cleans up the higher level SendInteractionOptions defined by the interaction into
|
|
3
3
|
* SendOptions, which are the ones that can be serialized and forwarded to the wallet
|
|
4
|
-
*/ export
|
|
4
|
+
*/ export function toSendOptions(options) {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
7
7
|
fee: {
|
|
8
|
-
// If this interaction includes a fee payment method, pass the fee payer
|
|
9
|
-
// as a hint to the wallet
|
|
10
|
-
embeddedPaymentMethodFeePayer: await options.fee?.paymentMethod?.getFeePayer(),
|
|
11
8
|
// If a payment method that includes gas settings was used,
|
|
12
9
|
// try to reuse as much as possible while still allowing
|
|
13
10
|
// manual override. CAREFUL: this can cause mismatches during proving
|
|
@@ -21,13 +18,10 @@
|
|
|
21
18
|
/**
|
|
22
19
|
* Transforms and cleans up the higher level SimulateInteractionOptions defined by the interaction into
|
|
23
20
|
* SimulateOptions, which are the ones that can be serialized and forwarded to the wallet
|
|
24
|
-
*/ export
|
|
21
|
+
*/ export function toSimulateOptions(options) {
|
|
25
22
|
return {
|
|
26
23
|
...options,
|
|
27
24
|
fee: {
|
|
28
|
-
// If this interaction includes a fee payment method, pass the fee payer
|
|
29
|
-
// as a hint to the wallet
|
|
30
|
-
embeddedPaymentMethodFeePayer: await options.fee?.paymentMethod?.getFeePayer(),
|
|
31
25
|
// If a payment method that includes gas settings was used,
|
|
32
26
|
// try to reuse as much as possible while still allowing
|
|
33
27
|
// manual override. CAREFUL: this can cause mismatches during proving
|
|
@@ -43,9 +37,9 @@
|
|
|
43
37
|
/**
|
|
44
38
|
* Transforms and cleans up the higher level ProfileInteractionOptions defined by the interaction into
|
|
45
39
|
* ProfileOptions, which are the ones that can be serialized and forwarded to the wallet
|
|
46
|
-
*/ export
|
|
40
|
+
*/ export function toProfileOptions(options) {
|
|
47
41
|
return {
|
|
48
|
-
...
|
|
42
|
+
...toSimulateOptions(options),
|
|
49
43
|
profileMode: options.profileMode,
|
|
50
44
|
skipProofGeneration: options.skipProofGeneration
|
|
51
45
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
3
2
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
3
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
4
4
|
import type { L2AmountClaim } from '../ethereum/portal_manager.js';
|
|
5
5
|
import type { FeePaymentMethod } from './fee_payment_method.js';
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fee_juice_payment_method_with_claim.d.ts","sourceRoot":"","sources":["../../src/fee/fee_juice_payment_method_with_claim.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fee_juice_payment_method_with_claim.d.ts","sourceRoot":"","sources":["../../src/fee/fee_juice_payment_method_with_claim.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AACH,qBAAa,8BAA+B,YAAW,gBAAgB;IAEnE,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,KAAK;gBADL,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAGxF;;;OAGG;IACG,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IA4BtD,QAAQ;IAIR,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;IAIpC,cAAc,IAAI,WAAW,GAAG,SAAS;CAG1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { Fr } from '@aztec/foundation/fields';
|
|
3
2
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
4
3
|
import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
4
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
5
5
|
/**
|
|
6
6
|
* Pay fee directly with Fee Juice claimed in the same tx. Claiming consumes an L1 to L2 message that "contains"
|
|
7
7
|
* the fee juice bridged from L1.
|
|
@@ -33,7 +33,7 @@ import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
|
33
33
|
returnTypes: [],
|
|
34
34
|
type: FunctionType.PRIVATE
|
|
35
35
|
}
|
|
36
|
-
], [], []);
|
|
36
|
+
], [], [], [], this.sender);
|
|
37
37
|
}
|
|
38
38
|
getAsset() {
|
|
39
39
|
return Promise.resolve(ProtocolContractAddress.FeeJuice);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
3
2
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
3
|
+
import type { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
4
4
|
/**
|
|
5
5
|
* Holds information about how the fee for a transaction is to be paid.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/fee_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/fee_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACjD;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC;;;OAGG;IACH,cAAc,IAAI,WAAW,GAAG,SAAS,CAAC;CAC3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
3
2
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
3
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
4
4
|
import type { Wallet } from '../wallet/wallet.js';
|
|
5
5
|
import type { FeePaymentMethod } from './fee_payment_method.js';
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private_fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/private_fee_payment_method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private_fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/private_fee_payment_method.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAI5D;;OAEG;IACH,OAAO,CAAC,eAAe;IAEvB;;OAEG;IACH,OAAO,CAAC,MAAM;IAEd;;OAEG;IACH,OAAO,CAAC,MAAM;IACd;;OAEG;IACH,SAAS,CAAC,WAAW,EAAE,WAAW;IAClC;;;OAGG;IACH,OAAO,CAAC,cAAc;IAzBxB,OAAO,CAAC,YAAY,CAAsC;;IAGxD;;OAEG;IACK,eAAe,EAAE,YAAY;IAErC;;OAEG;IACK,MAAM,EAAE,YAAY;IAE5B;;OAEG;IACK,MAAM,EAAE,MAAM;IACtB;;OAEG;IACO,WAAW,EAAE,WAAW;IAClC;;;OAGG;IACK,cAAc,UAAQ;IAGhC;;;OAGG;IACG,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC;IAyCvC,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;IAIpC;;;;OAIG;IACG,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAwCtD,cAAc,IAAI,WAAW,GAAG,SAAS;CAG1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { Fr } from '@aztec/foundation/fields';
|
|
3
2
|
import { FunctionSelector, FunctionType, decodeFromAbi } from '@aztec/stdlib/abi';
|
|
4
3
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
5
5
|
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
6
6
|
/**
|
|
7
7
|
* Holds information about how the fee for a transaction is to be paid.
|
|
@@ -39,7 +39,7 @@ import { ContractFunctionInteraction } from '../contract/contract_function_inter
|
|
|
39
39
|
const abi = {
|
|
40
40
|
name: 'get_accepted_asset',
|
|
41
41
|
functionType: FunctionType.PRIVATE,
|
|
42
|
-
|
|
42
|
+
isOnlySelf: false,
|
|
43
43
|
isStatic: false,
|
|
44
44
|
parameters: [],
|
|
45
45
|
returnTypes: [
|
|
@@ -117,7 +117,7 @@ import { ContractFunctionInteraction } from '../contract/contract_function_inter
|
|
|
117
117
|
}
|
|
118
118
|
], [
|
|
119
119
|
witness
|
|
120
|
-
], []);
|
|
120
|
+
], [], [], this.paymentContract);
|
|
121
121
|
}
|
|
122
122
|
getGasSettings() {
|
|
123
123
|
return this.gasSettings;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExecutionPayload } from '@aztec/entrypoints/payload';
|
|
2
1
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
3
2
|
import { GasSettings } from '@aztec/stdlib/gas';
|
|
3
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
4
4
|
import type { Wallet } from '../wallet/wallet.js';
|
|
5
5
|
import type { FeePaymentMethod } from './fee_payment_method.js';
|
|
6
6
|
/**
|