@aztec/aztec.js 0.32.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/account/contract.d.ts +4 -4
- package/dest/account/contract.d.ts.map +1 -1
- package/dest/account/index.d.ts +1 -1
- package/dest/account/index.d.ts.map +1 -1
- package/dest/account/interface.d.ts +5 -5
- package/dest/account/interface.d.ts.map +1 -1
- package/dest/account/wallet.d.ts +2 -2
- package/dest/account/wallet.d.ts.map +1 -1
- package/dest/account_manager/deploy_account_sent_tx.d.ts +4 -4
- package/dest/account_manager/deploy_account_sent_tx.d.ts.map +1 -1
- package/dest/account_manager/deploy_account_sent_tx.js +1 -1
- package/dest/account_manager/index.d.ts +7 -7
- package/dest/account_manager/index.d.ts.map +1 -1
- package/dest/account_manager/index.js +1 -1
- package/dest/contract/base_contract_interaction.d.ts +2 -2
- package/dest/contract/base_contract_interaction.d.ts.map +1 -1
- package/dest/contract/batch_call.d.ts +3 -3
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +1 -1
- package/dest/contract/checker.d.ts +1 -1
- package/dest/contract/checker.d.ts.map +1 -1
- package/dest/contract/contract.d.ts +4 -4
- package/dest/contract/contract.d.ts.map +1 -1
- package/dest/contract/contract_base.d.ts +3 -3
- package/dest/contract/contract_base.d.ts.map +1 -1
- package/dest/contract/contract_base.js +1 -1
- package/dest/contract/contract_function_interaction.d.ts +4 -4
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +1 -1
- package/dest/contract/deploy_method.d.ts +8 -8
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +1 -1
- package/dest/contract/deploy_sent_tx.d.ts +7 -7
- package/dest/contract/deploy_sent_tx.d.ts.map +1 -1
- package/dest/contract/deploy_sent_tx.js +1 -1
- package/dest/contract/sent_tx.d.ts +2 -2
- package/dest/contract/sent_tx.d.ts.map +1 -1
- package/dest/contract/sent_tx.js +2 -2
- package/dest/contract/unsafe_contract.d.ts +3 -3
- package/dest/contract/unsafe_contract.d.ts.map +1 -1
- package/dest/deployment/broadcast_function.d.ts +3 -3
- package/dest/deployment/broadcast_function.d.ts.map +1 -1
- package/dest/deployment/broadcast_function.js +1 -1
- package/dest/deployment/contract_deployer.d.ts +2 -2
- package/dest/deployment/contract_deployer.d.ts.map +1 -1
- package/dest/deployment/deploy_instance.d.ts +3 -3
- package/dest/deployment/deploy_instance.d.ts.map +1 -1
- package/dest/deployment/protocol_contracts.d.ts +1 -1
- package/dest/deployment/protocol_contracts.d.ts.map +1 -1
- package/dest/deployment/register_class.d.ts +3 -3
- package/dest/deployment/register_class.d.ts.map +1 -1
- package/dest/deployment/register_class.js +1 -1
- package/dest/entrypoint/default_entrypoint.d.ts +2 -2
- package/dest/entrypoint/default_entrypoint.d.ts.map +1 -1
- package/dest/entrypoint/default_entrypoint.js +1 -1
- package/dest/entrypoint/entrypoint.d.ts +3 -3
- package/dest/entrypoint/entrypoint.d.ts.map +1 -1
- package/dest/fee/fee_payment_method.d.ts +3 -3
- package/dest/fee/fee_payment_method.d.ts.map +1 -1
- package/dest/fee/native_fee_payment_method.d.ts +5 -5
- package/dest/fee/native_fee_payment_method.d.ts.map +1 -1
- package/dest/fee/native_fee_payment_method.js +1 -1
- package/dest/fee/private_fee_payment_method.d.ts +4 -4
- package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
- package/dest/fee/public_fee_payment_method.d.ts +4 -4
- package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
- package/dest/rpc_clients/pxe_client.d.ts +1 -1
- package/dest/rpc_clients/pxe_client.d.ts.map +1 -1
- package/dest/utils/abi_types.d.ts +1 -1
- package/dest/utils/abi_types.d.ts.map +1 -1
- package/dest/utils/account.d.ts +2 -2
- package/dest/utils/account.d.ts.map +1 -1
- package/dest/utils/account.js +1 -1
- package/dest/utils/authwit.d.ts +2 -2
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +1 -1
- package/dest/utils/cheat_codes.d.ts +2 -2
- package/dest/utils/cheat_codes.d.ts.map +1 -1
- package/dest/utils/cheat_codes.js +1 -1
- package/dest/utils/l1_contracts.d.ts +1 -1
- package/dest/utils/l1_contracts.d.ts.map +1 -1
- package/dest/utils/pub_key.d.ts +1 -1
- package/dest/utils/pub_key.d.ts.map +1 -1
- package/dest/utils/pxe.d.ts +2 -2
- package/dest/utils/pxe.d.ts.map +1 -1
- package/dest/wallet/account_wallet.d.ts +4 -4
- package/dest/wallet/account_wallet.d.ts.map +1 -1
- package/dest/wallet/account_wallet.js +1 -1
- package/dest/wallet/account_wallet_with_private_key.d.ts +4 -4
- package/dest/wallet/account_wallet_with_private_key.d.ts.map +1 -1
- package/dest/wallet/base_wallet.d.ts +8 -8
- package/dest/wallet/base_wallet.d.ts.map +1 -1
- package/dest/wallet/base_wallet.js +1 -1
- package/dest/wallet/create_recipient.d.ts +1 -1
- package/dest/wallet/create_recipient.d.ts.map +1 -1
- package/dest/wallet/index.d.ts +3 -3
- package/dest/wallet/index.d.ts.map +1 -1
- package/dest/wallet/signerless_wallet.d.ts +3 -3
- package/dest/wallet/signerless_wallet.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/account/contract.ts +4 -4
- package/src/account/index.ts +1 -1
- package/src/account/interface.ts +5 -5
- package/src/account/wallet.ts +2 -2
- package/src/account_manager/deploy_account_sent_tx.ts +4 -4
- package/src/account_manager/index.ts +8 -8
- package/src/contract/base_contract_interaction.ts +2 -2
- package/src/contract/batch_call.ts +3 -3
- package/src/contract/checker.ts +1 -1
- package/src/contract/contract.ts +4 -4
- package/src/contract/contract_base.ts +3 -3
- package/src/contract/contract_function_interaction.ts +4 -4
- package/src/contract/deploy_method.ts +8 -8
- package/src/contract/deploy_sent_tx.ts +7 -7
- package/src/contract/sent_tx.ts +9 -2
- package/src/contract/unsafe_contract.ts +3 -3
- package/src/deployment/broadcast_function.ts +3 -3
- package/src/deployment/contract_deployer.ts +4 -4
- package/src/deployment/deploy_instance.ts +3 -3
- package/src/deployment/protocol_contracts.ts +1 -1
- package/src/deployment/register_class.ts +3 -3
- package/src/entrypoint/default_entrypoint.ts +2 -2
- package/src/entrypoint/entrypoint.ts +3 -3
- package/src/fee/fee_payment_method.ts +3 -3
- package/src/fee/native_fee_payment_method.ts +5 -5
- package/src/fee/private_fee_payment_method.ts +4 -4
- package/src/fee/public_fee_payment_method.ts +4 -4
- package/src/rpc_clients/pxe_client.ts +1 -1
- package/src/utils/abi_types.ts +1 -1
- package/src/utils/account.ts +2 -2
- package/src/utils/authwit.ts +2 -2
- package/src/utils/cheat_codes.ts +2 -2
- package/src/utils/l1_contracts.ts +1 -1
- package/src/utils/pub_key.ts +1 -1
- package/src/utils/pxe.ts +2 -2
- package/src/wallet/account_wallet.ts +5 -5
- package/src/wallet/account_wallet_with_private_key.ts +4 -4
- package/src/wallet/base_wallet.ts +27 -21
- package/src/wallet/create_recipient.ts +1 -1
- package/src/wallet/index.ts +3 -3
- package/src/wallet/signerless_wallet.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerless_wallet.d.ts","sourceRoot":"","sources":["../../src/wallet/signerless_wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"signerless_wallet.d.ts","sourceRoot":"","sources":["../../src/wallet/signerless_wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9G,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAGnE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IACxB,OAAO,CAAC,UAAU,CAAC;gBAA7B,GAAG,EAAE,GAAG,EAAU,UAAU,CAAC,iCAAqB;IAIxD,wBAAwB,CAAC,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAUvF,UAAU,IAAI,EAAE;IAIhB,UAAU,IAAI,EAAE;IAIhB,kBAAkB,IAAI,eAAe;IAIrC,aAAa,CAAC,YAAY,EAAE,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;CAGtD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec.js",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
|
|
4
|
-
"version": "0.32.
|
|
4
|
+
"version": "0.32.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dest/index.js",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"rootDir": "./src"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aztec/circuit-types": "0.32.
|
|
54
|
-
"@aztec/circuits.js": "0.32.
|
|
55
|
-
"@aztec/ethereum": "0.32.
|
|
56
|
-
"@aztec/foundation": "0.32.
|
|
57
|
-
"@aztec/protocol-contracts": "0.32.
|
|
58
|
-
"@aztec/types": "0.32.
|
|
53
|
+
"@aztec/circuit-types": "0.32.1",
|
|
54
|
+
"@aztec/circuits.js": "0.32.1",
|
|
55
|
+
"@aztec/ethereum": "0.32.1",
|
|
56
|
+
"@aztec/foundation": "0.32.1",
|
|
57
|
+
"@aztec/protocol-contracts": "0.32.1",
|
|
58
|
+
"@aztec/types": "0.32.1",
|
|
59
59
|
"tslib": "^2.4.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
package/src/account/contract.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CompleteAddress } from '@aztec/circuit-types';
|
|
2
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
3
|
-
import { NodeInfo } from '@aztec/types/interfaces';
|
|
1
|
+
import { type CompleteAddress } from '@aztec/circuit-types';
|
|
2
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
3
|
+
import { type NodeInfo } from '@aztec/types/interfaces';
|
|
4
4
|
|
|
5
|
-
import { AccountInterface } from './interface.js';
|
|
5
|
+
import { type AccountInterface } from './interface.js';
|
|
6
6
|
|
|
7
7
|
// docs:start:account-contract-interface
|
|
8
8
|
/**
|
package/src/account/index.ts
CHANGED
package/src/account/interface.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AuthWitness, CompleteAddress, FunctionCall } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
3
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
1
|
+
import { type AuthWitness, type CompleteAddress, type FunctionCall } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
3
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
4
4
|
|
|
5
|
-
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
6
|
-
import { EntrypointInterface } from '../entrypoint/entrypoint.js';
|
|
5
|
+
import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
6
|
+
import { type EntrypointInterface } from '../entrypoint/entrypoint.js';
|
|
7
7
|
|
|
8
8
|
// docs:start:account-interface
|
|
9
9
|
/** Creates authorization witnesses. */
|
package/src/account/wallet.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TxHash, TxReceipt } from '@aztec/circuit-types';
|
|
2
|
-
import { FieldsOf } from '@aztec/foundation/types';
|
|
1
|
+
import { type TxHash, type TxReceipt } from '@aztec/circuit-types';
|
|
2
|
+
import { type FieldsOf } from '@aztec/foundation/types';
|
|
3
3
|
|
|
4
|
-
import { Wallet } from '../account/index.js';
|
|
5
|
-
import { DefaultWaitOpts, SentTx, WaitOpts } from '../contract/index.js';
|
|
4
|
+
import { type Wallet } from '../account/index.js';
|
|
5
|
+
import { DefaultWaitOpts, SentTx, type WaitOpts } from '../contract/index.js';
|
|
6
6
|
import { waitForAccountSynch } from '../utils/account.js';
|
|
7
7
|
|
|
8
8
|
/** Extends a transaction receipt with a wallet instance for the newly deployed contract. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CompleteAddress, GrumpkinPrivateKey, PXE } from '@aztec/circuit-types';
|
|
2
|
-
import { PublicKey, getContractInstanceFromDeployParams } from '@aztec/circuits.js';
|
|
1
|
+
import { CompleteAddress, type GrumpkinPrivateKey, type PXE } from '@aztec/circuit-types';
|
|
2
|
+
import { type PublicKey, getContractInstanceFromDeployParams } from '@aztec/circuits.js';
|
|
3
3
|
import { Fr } from '@aztec/foundation/fields';
|
|
4
|
-
import { ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
4
|
+
import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
5
5
|
|
|
6
|
-
import { AccountContract } from '../account/contract.js';
|
|
7
|
-
import { Salt } from '../account/index.js';
|
|
8
|
-
import { AccountInterface } from '../account/interface.js';
|
|
9
|
-
import { DeployMethod } from '../contract/deploy_method.js';
|
|
10
|
-
import { DefaultWaitOpts, WaitOpts } from '../contract/sent_tx.js';
|
|
6
|
+
import { type AccountContract } from '../account/contract.js';
|
|
7
|
+
import { type Salt } from '../account/index.js';
|
|
8
|
+
import { type AccountInterface } from '../account/interface.js';
|
|
9
|
+
import { type DeployMethod } from '../contract/deploy_method.js';
|
|
10
|
+
import { DefaultWaitOpts, type WaitOpts } from '../contract/sent_tx.js';
|
|
11
11
|
import { ContractDeployer } from '../deployment/contract_deployer.js';
|
|
12
12
|
import { waitForAccountSynch } from '../utils/account.js';
|
|
13
13
|
import { generatePublicKey } from '../utils/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PXE, Tx, TxExecutionRequest } from '@aztec/circuit-types';
|
|
1
|
+
import { type PXE, type Tx, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
2
|
|
|
3
|
-
import { FeeOptions } from '../entrypoint/entrypoint.js';
|
|
3
|
+
import { type FeeOptions } from '../entrypoint/entrypoint.js';
|
|
4
4
|
import { SentTx } from './sent_tx.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FunctionCall, TxExecutionRequest } from '@aztec/circuit-types';
|
|
1
|
+
import { type FunctionCall, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
2
|
|
|
3
|
-
import { Wallet } from '../account/index.js';
|
|
4
|
-
import { BaseContractInteraction, SendMethodOptions } from './base_contract_interaction.js';
|
|
3
|
+
import { type Wallet } from '../account/index.js';
|
|
4
|
+
import { BaseContractInteraction, type SendMethodOptions } from './base_contract_interaction.js';
|
|
5
5
|
|
|
6
6
|
/** A batch of function calls to be sent as a single transaction through a wallet. */
|
|
7
7
|
export class BatchCall extends BaseContractInteraction {
|
package/src/contract/checker.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ABIType, BasicType, ContractArtifact, StructType } from '@aztec/foundation/abi';
|
|
1
|
+
import { type ABIType, type BasicType, type ContractArtifact, type StructType } from '@aztec/foundation/abi';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents a type derived from input type T with the 'kind' property removed.
|
package/src/contract/contract.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PublicKey } from '@aztec/circuit-types';
|
|
2
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
3
|
-
import { AztecAddress } from '@aztec/foundation/aztec-address';
|
|
1
|
+
import { type PublicKey } from '@aztec/circuit-types';
|
|
2
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
3
|
+
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
4
4
|
import { Point } from '@aztec/foundation/fields';
|
|
5
5
|
|
|
6
|
-
import { Wallet } from '../account/index.js';
|
|
6
|
+
import { type Wallet } from '../account/index.js';
|
|
7
7
|
import { ContractBase } from './contract_base.js';
|
|
8
8
|
import { DeployMethod } from './deploy_method.js';
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computePartialAddress } from '@aztec/circuits.js';
|
|
2
|
-
import { ContractArtifact, FunctionArtifact, FunctionSelector } from '@aztec/foundation/abi';
|
|
3
|
-
import { ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
2
|
+
import { type ContractArtifact, type FunctionArtifact, FunctionSelector } from '@aztec/foundation/abi';
|
|
3
|
+
import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
4
4
|
|
|
5
|
-
import { Wallet } from '../account/index.js';
|
|
5
|
+
import { type Wallet } from '../account/index.js';
|
|
6
6
|
import { ContractFunctionInteraction } from './contract_function_interaction.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FunctionCall, TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress, FunctionData } from '@aztec/circuits.js';
|
|
3
|
-
import { FunctionAbi, FunctionType, encodeArguments } from '@aztec/foundation/abi';
|
|
1
|
+
import { type FunctionCall, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress, FunctionData } from '@aztec/circuits.js';
|
|
3
|
+
import { type FunctionAbi, FunctionType, encodeArguments } from '@aztec/foundation/abi';
|
|
4
4
|
|
|
5
|
-
import { Wallet } from '../account/wallet.js';
|
|
5
|
+
import { type Wallet } from '../account/wallet.js';
|
|
6
6
|
import { BaseContractInteraction, SendMethodOptions } from './base_contract_interaction.js';
|
|
7
7
|
|
|
8
8
|
export { SendMethodOptions };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { FunctionCall, PublicKey, Tx, TxExecutionRequest } from '@aztec/circuit-types';
|
|
1
|
+
import { type FunctionCall, type PublicKey, type Tx, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
2
|
import {
|
|
3
3
|
AztecAddress,
|
|
4
4
|
computePartialAddress,
|
|
5
5
|
getContractClassFromArtifact,
|
|
6
6
|
getContractInstanceFromDeployParams,
|
|
7
7
|
} from '@aztec/circuits.js';
|
|
8
|
-
import { ContractArtifact, FunctionArtifact, getInitializer } from '@aztec/foundation/abi';
|
|
9
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
10
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
8
|
+
import { type ContractArtifact, type FunctionArtifact, getInitializer } from '@aztec/foundation/abi';
|
|
9
|
+
import { type EthAddress } from '@aztec/foundation/eth-address';
|
|
10
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
11
11
|
import { createDebugLogger } from '@aztec/foundation/log';
|
|
12
|
-
import { ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
12
|
+
import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
13
13
|
|
|
14
|
-
import { Wallet } from '../account/index.js';
|
|
14
|
+
import { type Wallet } from '../account/index.js';
|
|
15
15
|
import { deployInstance } from '../deployment/deploy_instance.js';
|
|
16
16
|
import { registerContractClass } from '../deployment/register_class.js';
|
|
17
|
-
import { BaseContractInteraction, SendMethodOptions } from './base_contract_interaction.js';
|
|
17
|
+
import { BaseContractInteraction, type SendMethodOptions } from './base_contract_interaction.js';
|
|
18
18
|
import { type Contract } from './contract.js';
|
|
19
|
-
import { ContractBase } from './contract_base.js';
|
|
19
|
+
import { type ContractBase } from './contract_base.js';
|
|
20
20
|
import { ContractFunctionInteraction } from './contract_function_interaction.js';
|
|
21
21
|
import { DeploySentTx } from './deploy_sent_tx.js';
|
|
22
22
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PXE, TxHash, TxReceipt } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
3
|
-
import { FieldsOf } from '@aztec/foundation/types';
|
|
4
|
-
import { ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
1
|
+
import { type PXE, type TxHash, type TxReceipt } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
3
|
+
import { type FieldsOf } from '@aztec/foundation/types';
|
|
4
|
+
import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
5
5
|
|
|
6
|
-
import { Wallet } from '../account/index.js';
|
|
6
|
+
import { type Wallet } from '../account/index.js';
|
|
7
7
|
import { type Contract } from './contract.js';
|
|
8
|
-
import { ContractBase } from './contract_base.js';
|
|
9
|
-
import { SentTx, WaitOpts } from './sent_tx.js';
|
|
8
|
+
import { type ContractBase } from './contract_base.js';
|
|
9
|
+
import { SentTx, type WaitOpts } from './sent_tx.js';
|
|
10
10
|
|
|
11
11
|
/** Options related to waiting for a deployment tx. */
|
|
12
12
|
export type DeployedWaitOpts = WaitOpts & {
|
package/src/contract/sent_tx.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type ExtendedNote,
|
|
3
|
+
type GetUnencryptedLogsResponse,
|
|
4
|
+
type PXE,
|
|
5
|
+
type TxHash,
|
|
6
|
+
type TxReceipt,
|
|
7
|
+
TxStatus,
|
|
8
|
+
} from '@aztec/circuit-types';
|
|
2
9
|
import { retryUntil } from '@aztec/foundation/retry';
|
|
3
|
-
import { FieldsOf } from '@aztec/foundation/types';
|
|
10
|
+
import { type FieldsOf } from '@aztec/foundation/types';
|
|
4
11
|
|
|
5
12
|
/** Options related to waiting for a tx. */
|
|
6
13
|
export type WaitOpts = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
2
|
-
import { ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
1
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
2
|
+
import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
3
3
|
|
|
4
|
-
import { Wallet } from '../wallet/index.js';
|
|
4
|
+
import { type Wallet } from '../wallet/index.js';
|
|
5
5
|
import { ContractBase } from './contract_base.js';
|
|
6
6
|
|
|
7
7
|
/** Unsafe constructor for ContractBase that bypasses the check that the instance is registered in the wallet. */
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
createUnconstrainedFunctionMembershipProof,
|
|
7
7
|
getContractClassFromArtifact,
|
|
8
8
|
} from '@aztec/circuits.js';
|
|
9
|
-
import { ContractArtifact, FunctionSelector, FunctionType, bufferAsFields } from '@aztec/foundation/abi';
|
|
9
|
+
import { type ContractArtifact, type FunctionSelector, FunctionType, bufferAsFields } from '@aztec/foundation/abi';
|
|
10
10
|
import { padArrayEnd } from '@aztec/foundation/collection';
|
|
11
11
|
import { Fr } from '@aztec/foundation/fields';
|
|
12
12
|
|
|
13
|
-
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
14
|
-
import { Wallet } from '../wallet/index.js';
|
|
13
|
+
import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
14
|
+
import { type Wallet } from '../wallet/index.js';
|
|
15
15
|
import { getRegistererContract } from './protocol_contracts.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PublicKey } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
3
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
1
|
+
import { type PublicKey } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
3
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
4
4
|
import { Point } from '@aztec/foundation/fields';
|
|
5
5
|
|
|
6
|
-
import { Wallet } from '../account/wallet.js';
|
|
6
|
+
import { type Wallet } from '../account/wallet.js';
|
|
7
7
|
import { DeployMethod } from '../contract/deploy_method.js';
|
|
8
8
|
import { Contract } from '../contract/index.js';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
1
|
+
import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
2
2
|
|
|
3
|
-
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
4
|
-
import { Wallet } from '../wallet/index.js';
|
|
3
|
+
import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
4
|
+
import { type Wallet } from '../wallet/index.js';
|
|
5
5
|
import { getDeployerContract } from './protocol_contracts.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -2,7 +2,7 @@ import { getCanonicalClassRegisterer } from '@aztec/protocol-contracts/class-reg
|
|
|
2
2
|
import { getCanonicalInstanceDeployer } from '@aztec/protocol-contracts/instance-deployer';
|
|
3
3
|
|
|
4
4
|
import { UnsafeContract } from '../contract/unsafe_contract.js';
|
|
5
|
-
import { Wallet } from '../wallet/index.js';
|
|
5
|
+
import { type Wallet } from '../wallet/index.js';
|
|
6
6
|
|
|
7
7
|
/** Returns a Contract wrapper for the class registerer. */
|
|
8
8
|
export function getRegistererContract(wallet: Wallet) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS, getContractClassFromArtifact } from '@aztec/circuits.js';
|
|
2
|
-
import { ContractArtifact, bufferAsFields } from '@aztec/foundation/abi';
|
|
2
|
+
import { type ContractArtifact, bufferAsFields } from '@aztec/foundation/abi';
|
|
3
3
|
|
|
4
|
-
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
5
|
-
import { Wallet } from '../wallet/index.js';
|
|
4
|
+
import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
5
|
+
import { type Wallet } from '../wallet/index.js';
|
|
6
6
|
import { getRegistererContract } from './protocol_contracts.js';
|
|
7
7
|
|
|
8
8
|
/** Sets up a call to register a contract class given its artifact. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FunctionCall, PackedArguments, TxExecutionRequest } from '@aztec/circuit-types';
|
|
1
|
+
import { type FunctionCall, PackedArguments, TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
2
|
import { TxContext } from '@aztec/circuits.js';
|
|
3
3
|
|
|
4
|
-
import { EntrypointInterface } from './entrypoint.js';
|
|
4
|
+
import { type EntrypointInterface } from './entrypoint.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Default implementation of the entrypoint interface. It calls a function on a contract directly
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FunctionCall, TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
1
|
+
import { type FunctionCall, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
3
3
|
|
|
4
|
-
import { FeePaymentMethod } from '../fee/fee_payment_method.js';
|
|
4
|
+
import { type FeePaymentMethod } from '../fee/fee_payment_method.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Fee payment options for a transaction.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionCall } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress } from '@aztec/foundation/aztec-address';
|
|
3
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
1
|
+
import { type FunctionCall } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
3
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Holds information about how the fee for a transaction is to be paid.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FunctionCall } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress, FunctionData } from '@aztec/circuits.js';
|
|
1
|
+
import { type FunctionCall } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress, FunctionData } from '@aztec/circuits.js';
|
|
3
3
|
import { FunctionSelector } from '@aztec/foundation/abi';
|
|
4
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
4
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
5
5
|
import { getCanonicalGasTokenAddress } from '@aztec/protocol-contracts/gas-token';
|
|
6
6
|
|
|
7
|
-
import { Wallet } from '../account/wallet.js';
|
|
8
|
-
import { FeePaymentMethod } from './fee_payment_method.js';
|
|
7
|
+
import { type Wallet } from '../account/wallet.js';
|
|
8
|
+
import { type FeePaymentMethod } from './fee_payment_method.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Pay fee directly in the native gas token.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FunctionCall } from '@aztec/circuit-types';
|
|
1
|
+
import { type FunctionCall } from '@aztec/circuit-types';
|
|
2
2
|
import { FunctionData } from '@aztec/circuits.js';
|
|
3
3
|
import { computeMessageSecretHash } from '@aztec/circuits.js/hash';
|
|
4
4
|
import { FunctionSelector } from '@aztec/foundation/abi';
|
|
5
|
-
import { AztecAddress } from '@aztec/foundation/aztec-address';
|
|
5
|
+
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
6
6
|
import { Fr } from '@aztec/foundation/fields';
|
|
7
7
|
|
|
8
|
-
import { Wallet } from '../account/wallet.js';
|
|
8
|
+
import { type Wallet } from '../account/wallet.js';
|
|
9
9
|
import { computeAuthWitMessageHash } from '../utils/authwit.js';
|
|
10
|
-
import { FeePaymentMethod } from './fee_payment_method.js';
|
|
10
|
+
import { type FeePaymentMethod } from './fee_payment_method.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Holds information about how the fee for a transaction is to be paid.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FunctionCall } from '@aztec/circuit-types';
|
|
1
|
+
import { type FunctionCall } from '@aztec/circuit-types';
|
|
2
2
|
import { FunctionData } from '@aztec/circuits.js';
|
|
3
3
|
import { FunctionSelector } from '@aztec/foundation/abi';
|
|
4
|
-
import { AztecAddress } from '@aztec/foundation/aztec-address';
|
|
4
|
+
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
5
5
|
import { Fr } from '@aztec/foundation/fields';
|
|
6
6
|
|
|
7
7
|
import { computeAuthWitMessageHash } from '../utils/authwit.js';
|
|
8
|
-
import { AccountWallet } from '../wallet/account_wallet.js';
|
|
9
|
-
import { FeePaymentMethod } from './fee_payment_method.js';
|
|
8
|
+
import { type AccountWallet } from '../wallet/account_wallet.js';
|
|
9
|
+
import { type FeePaymentMethod } from './fee_payment_method.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Holds information about how the fee for a transaction is to be paid.
|
package/src/utils/abi_types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AztecAddress, EthAddress, Fr, FunctionSelector } from '@aztec/circuits.js';
|
|
1
|
+
import { type AztecAddress, type EthAddress, type Fr, type FunctionSelector } from '@aztec/circuits.js';
|
|
2
2
|
|
|
3
3
|
/** Any type that can be converted into a field for a contract call. */
|
|
4
4
|
export type FieldLike = Fr | Buffer | bigint | number | { /** Converts to field */ toField: () => Fr };
|
package/src/utils/account.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CompleteAddress, PXE } from '@aztec/circuit-types';
|
|
1
|
+
import { type CompleteAddress, type PXE } from '@aztec/circuit-types';
|
|
2
2
|
import { retryUntil } from '@aztec/foundation/retry';
|
|
3
3
|
|
|
4
|
-
import { DefaultWaitOpts, WaitOpts } from '../contract/index.js';
|
|
4
|
+
import { DefaultWaitOpts, type WaitOpts } from '../contract/index.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Waits for the account to finish synchronizing with the PXE Service.
|
package/src/utils/authwit.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionCall, PackedArguments } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress, Fr, GeneratorIndex } from '@aztec/circuits.js';
|
|
1
|
+
import { type FunctionCall, PackedArguments } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress, type Fr, GeneratorIndex } from '@aztec/circuits.js';
|
|
3
3
|
import { pedersenHash } from '@aztec/foundation/crypto';
|
|
4
4
|
|
|
5
5
|
// docs:start:authwit_computeAuthWitMessageHash
|
package/src/utils/cheat_codes.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Note, PXE } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress, EthAddress, Fr } from '@aztec/circuits.js';
|
|
1
|
+
import { type Note, type PXE } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress, type EthAddress, Fr } from '@aztec/circuits.js';
|
|
3
3
|
import { toBigIntBE, toHex } from '@aztec/foundation/bigint-buffer';
|
|
4
4
|
import { keccak, pedersenHash } from '@aztec/foundation/crypto';
|
|
5
5
|
import { createDebugLogger } from '@aztec/foundation/log';
|
package/src/utils/pub_key.ts
CHANGED
package/src/utils/pxe.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PXE } from '@aztec/circuit-types';
|
|
2
|
-
import { DebugLogger } from '@aztec/foundation/log';
|
|
1
|
+
import { type PXE } from '@aztec/circuit-types';
|
|
2
|
+
import { type DebugLogger } from '@aztec/foundation/log';
|
|
3
3
|
import { retryUntil } from '@aztec/foundation/retry';
|
|
4
4
|
|
|
5
5
|
export const waitForPXE = async (pxe: PXE, logger?: DebugLogger) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AuthWitness, FunctionCall, PXE, TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress, Fr } from '@aztec/circuits.js';
|
|
3
|
-
import { ABIParameterVisibility, FunctionAbi, FunctionType } from '@aztec/foundation/abi';
|
|
1
|
+
import { type AuthWitness, type FunctionCall, type PXE, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress, Fr } from '@aztec/circuits.js';
|
|
3
|
+
import { type ABIParameterVisibility, type FunctionAbi, FunctionType } from '@aztec/foundation/abi';
|
|
4
4
|
|
|
5
|
-
import { AccountInterface } from '../account/interface.js';
|
|
5
|
+
import { type AccountInterface } from '../account/interface.js';
|
|
6
6
|
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
7
|
-
import { FeeOptions } from '../entrypoint/entrypoint.js';
|
|
7
|
+
import { type FeeOptions } from '../entrypoint/entrypoint.js';
|
|
8
8
|
import { computeAuthWitMessageHash } from '../utils/authwit.js';
|
|
9
9
|
import { BaseWallet } from './base_wallet.js';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PXE } from '@aztec/circuit-types';
|
|
2
|
-
import { GrumpkinPrivateKey } from '@aztec/circuits.js';
|
|
1
|
+
import { type PXE } from '@aztec/circuit-types';
|
|
2
|
+
import { type GrumpkinPrivateKey } from '@aztec/circuits.js';
|
|
3
3
|
|
|
4
|
-
import { Salt } from '../account/index.js';
|
|
5
|
-
import { AccountInterface } from '../account/interface.js';
|
|
4
|
+
import { type Salt } from '../account/index.js';
|
|
5
|
+
import { type AccountInterface } from '../account/interface.js';
|
|
6
6
|
import { AccountWallet } from './account_wallet.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AuthWitness,
|
|
3
|
-
ExtendedNote,
|
|
4
|
-
FunctionCall,
|
|
5
|
-
GetUnencryptedLogsResponse,
|
|
6
|
-
L2Block,
|
|
7
|
-
LogFilter,
|
|
8
|
-
NoteFilter,
|
|
9
|
-
PXE,
|
|
10
|
-
SyncStatus,
|
|
11
|
-
Tx,
|
|
12
|
-
TxEffect,
|
|
13
|
-
TxExecutionRequest,
|
|
14
|
-
TxHash,
|
|
15
|
-
TxReceipt,
|
|
2
|
+
type AuthWitness,
|
|
3
|
+
type ExtendedNote,
|
|
4
|
+
type FunctionCall,
|
|
5
|
+
type GetUnencryptedLogsResponse,
|
|
6
|
+
type L2Block,
|
|
7
|
+
type LogFilter,
|
|
8
|
+
type NoteFilter,
|
|
9
|
+
type PXE,
|
|
10
|
+
type SyncStatus,
|
|
11
|
+
type Tx,
|
|
12
|
+
type TxEffect,
|
|
13
|
+
type TxExecutionRequest,
|
|
14
|
+
type TxHash,
|
|
15
|
+
type TxReceipt,
|
|
16
16
|
} from '@aztec/circuit-types';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
import {
|
|
18
|
+
type AztecAddress,
|
|
19
|
+
type CompleteAddress,
|
|
20
|
+
type Fr,
|
|
21
|
+
type GrumpkinPrivateKey,
|
|
22
|
+
type PartialAddress,
|
|
23
|
+
} from '@aztec/circuits.js';
|
|
24
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
25
|
+
import { type ContractClassWithId, type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
26
|
+
import { type NodeInfo } from '@aztec/types/interfaces';
|
|
21
27
|
|
|
22
|
-
import { Wallet } from '../account/wallet.js';
|
|
23
|
-
import { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
24
|
-
import { FeeOptions } from '../entrypoint/entrypoint.js';
|
|
28
|
+
import { type Wallet } from '../account/wallet.js';
|
|
29
|
+
import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
|
|
30
|
+
import { type FeeOptions } from '../entrypoint/entrypoint.js';
|
|
25
31
|
|
|
26
32
|
/**
|
|
27
33
|
* A base class for Wallet implementations
|
package/src/wallet/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PXE } from '@aztec/circuit-types';
|
|
2
|
-
import { AztecAddress } from '@aztec/foundation/aztec-address';
|
|
1
|
+
import { type PXE } from '@aztec/circuit-types';
|
|
2
|
+
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
3
3
|
|
|
4
|
-
import { AccountContract } from '../account/contract.js';
|
|
4
|
+
import { type AccountContract } from '../account/contract.js';
|
|
5
5
|
import { AccountWallet } from './account_wallet.js';
|
|
6
6
|
|
|
7
7
|
export * from '../account/wallet.js';
|