@aztec/ethereum 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.
@@ -1,3 +1,3 @@
1
- import { Hex } from 'viem';
1
+ import { type Hex } from 'viem';
2
2
  export declare const NULL_KEY: Hex;
3
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,eAAO,MAAM,QAAQ,EAAE,GAA+E,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,eAAO,MAAM,QAAQ,EAAE,GAA+E,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { EthAddress } from '@aztec/foundation/eth-address';
2
- import { DebugLogger } from '@aztec/foundation/log';
2
+ import { type DebugLogger } from '@aztec/foundation/log';
3
3
  import type { Abi, Narrow } from 'abitype';
4
- import { Account, Chain, Hex, HttpTransport, PublicClient, WalletClient } from 'viem';
5
- import { HDAccount, PrivateKeyAccount } from 'viem/accounts';
6
- import { L1ContractAddresses } from './l1_contract_addresses.js';
4
+ import { type Account, type Chain, type Hex, type HttpTransport, type PublicClient, type WalletClient } from 'viem';
5
+ import { type HDAccount, type PrivateKeyAccount } from 'viem/accounts';
6
+ import { type L1ContractAddresses } from './l1_contract_addresses.js';
7
7
  /**
8
8
  * Return type of the deployL1Contract function.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"deploy_l1_contracts.d.ts","sourceRoot":"","sources":["../src/deploy_l1_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB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,CAAC,GAAG,GAAG,SAAS,OAAO,EAAE,CAAC,CAAC;IAC9C;;OAEG;IACH,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,KAAK,EAAE,iBAAiB,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;OAEG;IACH,kBAAkB,EAAE,iBAAiB,CAAC;IACtC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,iBAAiB,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,WACpB,MAAM,WACL,SAAS,GAAG,iBAAiB,SAC/B,KAAK,UACJ,WAAW,qBACA,gCAAgC,KAClD,QAAQ,iBAAiB,CA2G3B,CAAC;AAGF;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,CAAC,EACzD,YAAY,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,EAChD,GAAG,EAAE,MAAM,CAAC,GAAG,GAAG,SAAS,OAAO,EAAE,CAAC,EACrC,QAAQ,EAAE,GAAG,EACb,IAAI,GAAE,SAAS,OAAO,EAAO,GAC5B,OAAO,CAAC,UAAU,CAAC,CAcrB"}
@@ -1,4 +1,4 @@
1
- import { Chain } from 'viem';
1
+ import { type Chain } from 'viem';
2
2
  /**
3
3
  * Interface containing the connection and chain properties to interact with a blockchain.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ethereum_chain.d.ts","sourceRoot":"","sources":["../src/ethereum_chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"ethereum_chain.d.ts","sourceRoot":"","sources":["../src/ethereum_chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB"}
package/dest/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { EthereumChain } from './ethereum_chain.js';
1
+ import { type EthereumChain } from './ethereum_chain.js';
2
2
  export * from './testnet.js';
3
3
  export * from './deploy_l1_contracts.js';
4
4
  export * from './l1_contract_addresses.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAE/B;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,iBAWlE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAE/B;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,iBAWlE"}
@@ -1,4 +1,4 @@
1
- import { EthAddress } from '@aztec/foundation/eth-address';
1
+ import { type EthAddress } from '@aztec/foundation/eth-address';
2
2
  export declare const l1ContractsNames: readonly ["availabilityOracleAddress", "rollupAddress", "registryAddress", "inboxAddress", "outboxAddress", "gasTokenAddress", "gasPortalAddress"];
3
3
  /**
4
4
  * Provides the directory of current L1 contract addresses
@@ -1 +1 @@
1
- {"version":3,"file":"l1_contract_addresses.d.ts","sourceRoot":"","sources":["../src/l1_contract_addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,eAAO,MAAM,gBAAgB,oJAQnB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;KAC/B,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU;CACrD,CAAC"}
1
+ {"version":3,"file":"l1_contract_addresses.d.ts","sourceRoot":"","sources":["../src/l1_contract_addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,gBAAgB,oJAQnB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;KAC/B,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU;CACrD,CAAC"}
package/dest/testnet.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { EthereumChain } from './ethereum_chain.js';
1
+ import { type EthereumChain } from './ethereum_chain.js';
2
2
  export declare const createTestnetChain: (apiKey: string) => EthereumChain;
3
3
  //# sourceMappingURL=testnet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testnet.d.ts","sourceRoot":"","sources":["../src/testnet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIpD,eAAO,MAAM,kBAAkB,WAAY,MAAM,kBAuBhD,CAAC"}
1
+ {"version":3,"file":"testnet.d.ts","sourceRoot":"","sources":["../src/testnet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,eAAO,MAAM,kBAAkB,WAAY,MAAM,kBAuBhD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/ethereum",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "type": "module",
5
5
  "exports": "./dest/index.js",
6
6
  "typedocOptions": {
@@ -24,7 +24,7 @@
24
24
  "../package.common.json"
25
25
  ],
26
26
  "dependencies": {
27
- "@aztec/foundation": "0.32.0",
27
+ "@aztec/foundation": "0.32.1",
28
28
  "dotenv": "^16.0.3",
29
29
  "tslib": "^2.4.0",
30
30
  "viem": "^2.7.15"
package/src/constants.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Hex } from 'viem';
1
+ import { type Hex } from 'viem';
2
2
 
3
3
  export const NULL_KEY: Hex = `0x${'0000000000000000000000000000000000000000000000000000000000000000'}`;
@@ -1,23 +1,23 @@
1
1
  import { EthAddress } from '@aztec/foundation/eth-address';
2
- import { DebugLogger } from '@aztec/foundation/log';
2
+ import { type DebugLogger } from '@aztec/foundation/log';
3
3
 
4
4
  import type { Abi, Narrow } from 'abitype';
5
5
  import {
6
- Account,
7
- Chain,
8
- Hex,
9
- HttpTransport,
10
- PublicClient,
11
- WalletClient,
6
+ type Account,
7
+ type Chain,
8
+ type Hex,
9
+ type HttpTransport,
10
+ type PublicClient,
11
+ type WalletClient,
12
12
  createPublicClient,
13
13
  createWalletClient,
14
14
  getAddress,
15
15
  getContract,
16
16
  http,
17
17
  } from 'viem';
18
- import { HDAccount, PrivateKeyAccount } from 'viem/accounts';
18
+ import { type HDAccount, type PrivateKeyAccount } from 'viem/accounts';
19
19
 
20
- import { L1ContractAddresses } from './l1_contract_addresses.js';
20
+ import { type L1ContractAddresses } from './l1_contract_addresses.js';
21
21
 
22
22
  /**
23
23
  * Return type of the deployL1Contract function.
@@ -1,4 +1,4 @@
1
- import { Chain } from 'viem';
1
+ import { type Chain } from 'viem';
2
2
 
3
3
  /**
4
4
  * Interface containing the connection and chain properties to interact with a blockchain.
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { foundry } from 'viem/chains';
2
2
 
3
- import { EthereumChain } from './ethereum_chain.js';
3
+ import { type EthereumChain } from './ethereum_chain.js';
4
4
  import { createTestnetChain } from './testnet.js';
5
5
 
6
6
  export * from './testnet.js';
@@ -1,4 +1,4 @@
1
- import { EthAddress } from '@aztec/foundation/eth-address';
1
+ import { type EthAddress } from '@aztec/foundation/eth-address';
2
2
 
3
3
  export const l1ContractsNames = [
4
4
  'availabilityOracleAddress',
package/src/testnet.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Chain } from 'viem';
1
+ import { type Chain } from 'viem';
2
2
 
3
- import { EthereumChain } from './ethereum_chain.js';
3
+ import { type EthereumChain } from './ethereum_chain.js';
4
4
 
5
5
  const { DEPLOY_TAG = 'aztec-dev', CHAIN_ID = 31337 } = process.env;
6
6