@aztec/protocol-contracts 0.47.1 → 0.49.2

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,2 +0,0 @@
1
- export declare const GasTokenArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/gas-token/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,kDAA6D,CAAC"}
@@ -1,8 +0,0 @@
1
- import { AztecAddress } from '@aztec/circuits.js';
2
- import { type ProtocolContract } from '../protocol_contract.js';
3
- import { GasTokenArtifact } from './artifact.js';
4
- /** Returns the canonical deployment of the gas token. */
5
- export declare function getCanonicalGasToken(): ProtocolContract;
6
- export declare const GasTokenAddress: AztecAddress;
7
- export { GasTokenArtifact };
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +0,0 @@
1
- import { AztecAddress, GAS_TOKEN_ADDRESS } from '@aztec/circuits.js';
2
-
3
- import { type ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
4
- import { GasTokenArtifact } from './artifact.js';
5
-
6
- /** Returns the canonical deployment of the gas token. */
7
- export function getCanonicalGasToken(): ProtocolContract {
8
- const contract = getCanonicalProtocolContract(GasTokenArtifact, 1);
9
- if (!contract.address.equals(GasTokenAddress)) {
10
- throw new Error(
11
- `Incorrect address for gas token (got ${contract.address.toString()} but expected ${GasTokenAddress.toString()}).`,
12
- );
13
- }
14
- return contract;
15
- }
16
-
17
- export const GasTokenAddress = AztecAddress.fromBigInt(GAS_TOKEN_ADDRESS);
18
-
19
- export { GasTokenArtifact };