@aztec/protocol-contracts 0.0.1-commit.24de95ac → 0.0.1-commit.29c6b1a3
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/artifacts/AuthRegistry.json +1382 -1404
- package/artifacts/ContractClassRegistry.json +3264 -4823
- package/artifacts/ContractInstanceRegistry.json +1457 -1384
- package/artifacts/FeeJuice.json +2182 -2026
- package/artifacts/MultiCallEntrypoint.json +1113 -1057
- package/artifacts/PublicChecks.json +966 -0
- package/dest/auth-registry/index.d.ts +1 -1
- package/dest/auth-registry/lazy.d.ts +1 -1
- package/dest/class-registry/contract_class_published_event.d.ts +3 -2
- package/dest/class-registry/contract_class_published_event.d.ts.map +1 -1
- package/dest/class-registry/contract_class_published_event.js +3 -0
- package/dest/class-registry/index.d.ts +1 -1
- package/dest/class-registry/lazy.d.ts +1 -1
- package/dest/class-registry/private_function_broadcasted_event.d.ts +2 -2
- package/dest/class-registry/private_function_broadcasted_event.d.ts.map +1 -1
- package/dest/class-registry/utility_function_broadcasted_event.d.ts +2 -2
- package/dest/class-registry/utility_function_broadcasted_event.d.ts.map +1 -1
- package/dest/class-registry/utility_function_broadcasted_event.js +1 -1
- package/dest/fee-juice/index.d.ts +2 -2
- package/dest/fee-juice/index.d.ts.map +1 -1
- package/dest/fee-juice/lazy.d.ts +1 -1
- package/dest/index.d.ts +1 -1
- package/dest/instance-registry/contract_instance_published_event.d.ts +3 -2
- package/dest/instance-registry/contract_instance_published_event.d.ts.map +1 -1
- package/dest/instance-registry/contract_instance_published_event.js +4 -1
- package/dest/instance-registry/contract_instance_updated_event.d.ts +2 -2
- package/dest/instance-registry/contract_instance_updated_event.d.ts.map +1 -1
- package/dest/instance-registry/index.d.ts +1 -1
- package/dest/instance-registry/lazy.d.ts +1 -1
- package/dest/make_protocol_contract.d.ts +1 -1
- package/dest/multi-call-entrypoint/index.d.ts +1 -1
- package/dest/multi-call-entrypoint/lazy.d.ts +1 -1
- package/dest/protocol_contract.d.ts +1 -1
- package/dest/protocol_contract_data.d.ts +4 -4
- package/dest/protocol_contract_data.d.ts.map +1 -1
- package/dest/protocol_contract_data.js +17 -17
- package/dest/provider/bundle.d.ts +1 -1
- package/dest/provider/bundle.d.ts.map +1 -1
- package/dest/provider/bundle.js +2 -2
- package/dest/provider/lazy.d.ts +1 -1
- package/dest/provider/lazy.d.ts.map +1 -1
- package/dest/provider/lazy.js +3 -3
- package/dest/provider/protocol_contracts_provider.d.ts +1 -1
- package/dest/public-checks/index.d.ts +5 -0
- package/dest/public-checks/index.d.ts.map +1 -0
- package/dest/{router → public-checks}/index.js +4 -4
- package/dest/public-checks/lazy.d.ts +6 -0
- package/dest/public-checks/lazy.d.ts.map +1 -0
- package/dest/{router → public-checks}/lazy.js +6 -6
- package/dest/scripts/generate_data.js +5 -5
- package/dest/tests/fixtures.d.ts +1 -1
- package/package.json +9 -8
- package/src/class-registry/contract_class_published_event.ts +7 -1
- package/src/class-registry/private_function_broadcasted_event.ts +1 -1
- package/src/class-registry/utility_function_broadcasted_event.ts +1 -1
- package/src/fee-juice/index.ts +1 -1
- package/src/instance-registry/contract_instance_published_event.ts +7 -1
- package/src/instance-registry/contract_instance_updated_event.ts +1 -1
- package/src/protocol_contract_data.ts +17 -17
- package/src/provider/bundle.ts +2 -2
- package/src/provider/lazy.ts +3 -3
- package/src/{router → public-checks}/index.ts +4 -4
- package/src/{router → public-checks}/lazy.ts +7 -7
- package/artifacts/Router.json +0 -976
- package/dest/router/index.d.ts +0 -5
- package/dest/router/index.d.ts.map +0 -1
- package/dest/router/lazy.d.ts +0 -6
- package/dest/router/lazy.d.ts.map +0 -1
- /package/artifacts/{Router.d.json.ts → PublicChecks.d.json.ts} +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aztec/protocol-contracts",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/protocol-contracts",
|
|
4
4
|
"description": "Canonical Noir contracts for the Aztec Network",
|
|
5
|
-
"version": "0.0.1-commit.
|
|
5
|
+
"version": "0.0.1-commit.29c6b1a3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dest/index.js",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"tsconfig": "./tsconfig.json"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "yarn clean && yarn generate && yarn generate:cleanup-artifacts && tsc
|
|
25
|
-
"build:keep-debug-symbols": "yarn clean && yarn generate && tsc
|
|
24
|
+
"build": "yarn clean && yarn generate && yarn generate:cleanup-artifacts && ../scripts/tsc.sh",
|
|
25
|
+
"build:keep-debug-symbols": "yarn clean && yarn generate && ../scripts/tsc.sh",
|
|
26
26
|
"generate": "yarn generate:data",
|
|
27
27
|
"generate:cleanup-artifacts": "node --no-warnings --loader @swc-node/register/esm src/scripts/cleanup_artifacts.ts",
|
|
28
28
|
"generate:data": "node --no-warnings --loader @swc-node/register/esm src/scripts/generate_data.ts",
|
|
29
|
-
"build:dev": "tsc
|
|
30
|
-
"build:ts": "tsc
|
|
29
|
+
"build:dev": "../scripts/tsc.sh --watch",
|
|
30
|
+
"build:ts": "../scripts/tsc.sh",
|
|
31
31
|
"clean": "rm -rf ./dest .tsbuildinfo ./artifacts",
|
|
32
32
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
33
33
|
},
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@aztec/constants": "0.0.1-commit.
|
|
77
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
78
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
76
|
+
"@aztec/constants": "0.0.1-commit.29c6b1a3",
|
|
77
|
+
"@aztec/foundation": "0.0.1-commit.29c6b1a3",
|
|
78
|
+
"@aztec/stdlib": "0.0.1-commit.29c6b1a3",
|
|
79
79
|
"lodash.chunk": "^4.2.0",
|
|
80
80
|
"lodash.omit": "^4.5.0",
|
|
81
81
|
"tslib": "^2.4.0"
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"@types/lodash.chunk": "^4.2.9",
|
|
87
87
|
"@types/lodash.omit": "^4.5.9",
|
|
88
88
|
"@types/node": "^22.15.17",
|
|
89
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
89
90
|
"jest": "^30.0.0",
|
|
90
91
|
"jest-mock-extended": "^4.0.0",
|
|
91
92
|
"ts-loader": "^9.5.4",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CONTRACT_CLASS_PUBLISHED_MAGIC_VALUE } from '@aztec/constants';
|
|
2
|
-
import { Fr } from '@aztec/foundation/
|
|
2
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import { FieldReader } from '@aztec/foundation/serialize';
|
|
4
4
|
import { bufferFromFields } from '@aztec/stdlib/abi';
|
|
5
5
|
import {
|
|
@@ -74,4 +74,10 @@ export class ContractClassPublishedEvent {
|
|
|
74
74
|
utilityFunctions: [],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
public static extractContractClassEvents(logs: ContractClassLog[]): ContractClassPublishedEvent[] {
|
|
79
|
+
return logs
|
|
80
|
+
.filter((log: ContractClassLog) => ContractClassPublishedEvent.isContractClassPublishedEvent(log))
|
|
81
|
+
.map((log: ContractClassLog) => ContractClassPublishedEvent.fromLog(log));
|
|
82
|
+
}
|
|
77
83
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
FUNCTION_TREE_HEIGHT,
|
|
5
5
|
MAX_PACKED_BYTECODE_SIZE_PER_PRIVATE_FUNCTION_IN_FIELDS,
|
|
6
6
|
} from '@aztec/constants';
|
|
7
|
-
import { Fr } from '@aztec/foundation/
|
|
7
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
8
8
|
import type { Tuple } from '@aztec/foundation/serialize';
|
|
9
9
|
import { FieldReader } from '@aztec/foundation/serialize';
|
|
10
10
|
import { FunctionSelector, bufferFromFields } from '@aztec/stdlib/abi';
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_PACKED_BYTECODE_SIZE_PER_UTILITY_FUNCTION_IN_FIELDS,
|
|
5
5
|
} from '@aztec/constants';
|
|
6
6
|
import { removeArrayPaddingEnd } from '@aztec/foundation/collection';
|
|
7
|
-
import { Fr } from '@aztec/foundation/
|
|
7
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
8
8
|
import type { Tuple } from '@aztec/foundation/serialize';
|
|
9
9
|
import { FieldReader } from '@aztec/foundation/serialize';
|
|
10
10
|
import { FunctionSelector, bufferFromFields } from '@aztec/stdlib/abi';
|
package/src/fee-juice/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fr } from '@aztec/foundation/
|
|
1
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
3
3
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
4
|
import { computePublicDataTreeLeafSlot, deriveStorageSlotInMap } from '@aztec/stdlib/hash';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fr } from '@aztec/foundation/
|
|
1
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import { BufferReader } from '@aztec/foundation/serialize';
|
|
3
3
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
4
|
import type { ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
@@ -61,4 +61,10 @@ export class ContractInstancePublishedEvent {
|
|
|
61
61
|
deployer: this.deployer,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
+
|
|
65
|
+
public static extractContractInstanceEvents(logs: PrivateLog[]): ContractInstancePublishedEvent[] {
|
|
66
|
+
return logs
|
|
67
|
+
.filter(log => ContractInstancePublishedEvent.isContractInstancePublishedEvent(log))
|
|
68
|
+
.map(log => ContractInstancePublishedEvent.fromLog(log));
|
|
69
|
+
}
|
|
64
70
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CONTRACT_INSTANCE_UPDATED_MAGIC_VALUE } from '@aztec/constants';
|
|
2
|
-
import { Fr } from '@aztec/foundation/
|
|
2
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import { FieldReader } from '@aztec/foundation/serialize';
|
|
4
4
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
5
|
import type { ContractInstanceUpdateWithAddress } from '@aztec/stdlib/contract';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
// GENERATED FILE - DO NOT EDIT. RUN `yarn generate` or `yarn generate:data`
|
|
3
|
-
import { Fr } from '@aztec/foundation/
|
|
3
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
4
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
5
|
import { ProtocolContracts } from '@aztec/stdlib/tx';
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
'ContractClassRegistry',
|
|
12
12
|
'MultiCallEntrypoint',
|
|
13
13
|
'FeeJuice',
|
|
14
|
-
'
|
|
14
|
+
'PublicChecks'
|
|
15
15
|
] as const;
|
|
16
16
|
|
|
17
17
|
export type ProtocolContractName = typeof protocolContractNames[number];
|
|
@@ -24,7 +24,7 @@ ContractInstanceRegistry: new Fr(1),
|
|
|
24
24
|
ContractClassRegistry: new Fr(1),
|
|
25
25
|
MultiCallEntrypoint: new Fr(1),
|
|
26
26
|
FeeJuice: new Fr(1),
|
|
27
|
-
|
|
27
|
+
PublicChecks: new Fr(1)
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
|
|
@@ -35,29 +35,29 @@ ContractInstanceRegistry: AztecAddress.fromBigInt(2n),
|
|
|
35
35
|
ContractClassRegistry: AztecAddress.fromBigInt(3n),
|
|
36
36
|
MultiCallEntrypoint: AztecAddress.fromBigInt(4n),
|
|
37
37
|
FeeJuice: AztecAddress.fromBigInt(5n),
|
|
38
|
-
|
|
38
|
+
PublicChecks: AztecAddress.fromBigInt(6n)
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
export const ProtocolContractDerivedAddress = {
|
|
44
|
-
AuthRegistry: AztecAddress.fromString('
|
|
45
|
-
ContractInstanceRegistry: AztecAddress.fromString('
|
|
46
|
-
ContractClassRegistry: AztecAddress.fromString('
|
|
47
|
-
MultiCallEntrypoint: AztecAddress.fromString('
|
|
48
|
-
FeeJuice: AztecAddress.fromString('
|
|
49
|
-
|
|
44
|
+
AuthRegistry: AztecAddress.fromString('0x16c5a89fcf030e4cc8bfaafc3031f47fbd0b7714a279637c95661c2df81a56b9'),
|
|
45
|
+
ContractInstanceRegistry: AztecAddress.fromString('0x16a2183ba346911a8dc2cc0446c6c7d5bd77dec3250d9587fe8b95fac325b869'),
|
|
46
|
+
ContractClassRegistry: AztecAddress.fromString('0x0741d4c81bdd9f73ec58c0443c72998c1ca66f731663bc73c8703df5afe192ce'),
|
|
47
|
+
MultiCallEntrypoint: AztecAddress.fromString('0x0c66aea9da793f5948b48efef72076cd814424114277feffd69ec13965b08f30'),
|
|
48
|
+
FeeJuice: AztecAddress.fromString('0x291fc82c5b0d819e7c68b99bad0e3f0a496b77820ecb9998e8ef05d79f50f82e'),
|
|
49
|
+
PublicChecks: AztecAddress.fromString('0x00690875a3d4e87002d8ce7b051fa0395b5cf3ccb34bbf777de20e32cdafa3ce')
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
export const ProtocolContractsList = new ProtocolContracts([
|
|
55
|
-
AztecAddress.fromString('
|
|
56
|
-
AztecAddress.fromString('
|
|
57
|
-
AztecAddress.fromString('
|
|
58
|
-
AztecAddress.fromString('
|
|
59
|
-
AztecAddress.fromString('
|
|
60
|
-
AztecAddress.fromString('
|
|
55
|
+
AztecAddress.fromString('0x16c5a89fcf030e4cc8bfaafc3031f47fbd0b7714a279637c95661c2df81a56b9'),
|
|
56
|
+
AztecAddress.fromString('0x16a2183ba346911a8dc2cc0446c6c7d5bd77dec3250d9587fe8b95fac325b869'),
|
|
57
|
+
AztecAddress.fromString('0x0741d4c81bdd9f73ec58c0443c72998c1ca66f731663bc73c8703df5afe192ce'),
|
|
58
|
+
AztecAddress.fromString('0x0c66aea9da793f5948b48efef72076cd814424114277feffd69ec13965b08f30'),
|
|
59
|
+
AztecAddress.fromString('0x291fc82c5b0d819e7c68b99bad0e3f0a496b77820ecb9998e8ef05d79f50f82e'),
|
|
60
|
+
AztecAddress.fromString('0x00690875a3d4e87002d8ce7b051fa0395b5cf3ccb34bbf777de20e32cdafa3ce'),
|
|
61
61
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
62
62
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
63
63
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
@@ -65,7 +65,7 @@ AztecAddress.fromString('0x00000000000000000000000000000000000000000000000000000
|
|
|
65
65
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000')
|
|
66
66
|
]);
|
|
67
67
|
|
|
68
|
-
export const protocolContractsHash = Fr.fromString('
|
|
68
|
+
export const protocolContractsHash = Fr.fromString('0x26baf415e808fa17e6a31486efce6a5fa4ecbf881c2c0eb214bd8b022c83d70e');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
package/src/provider/bundle.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { makeProtocolContract } from '../make_protocol_contract.js';
|
|
|
8
8
|
import { MultiCallEntrypointArtifact } from '../multi-call-entrypoint/index.js';
|
|
9
9
|
import type { ProtocolContract } from '../protocol_contract.js';
|
|
10
10
|
import type { ProtocolContractName } from '../protocol_contract_data.js';
|
|
11
|
-
import {
|
|
11
|
+
import { PublicChecksArtifact } from '../public-checks/index.js';
|
|
12
12
|
import type { ProtocolContractsProvider } from './protocol_contracts_provider.js';
|
|
13
13
|
|
|
14
14
|
export const ProtocolContractArtifact: Record<ProtocolContractName, ContractArtifact> = {
|
|
@@ -17,7 +17,7 @@ export const ProtocolContractArtifact: Record<ProtocolContractName, ContractArti
|
|
|
17
17
|
ContractClassRegistry: ContractClassRegistryArtifact,
|
|
18
18
|
MultiCallEntrypoint: MultiCallEntrypointArtifact,
|
|
19
19
|
FeeJuice: FeeJuiceArtifact,
|
|
20
|
-
|
|
20
|
+
PublicChecks: PublicChecksArtifact,
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export class BundledProtocolContractsProvider implements ProtocolContractsProvider {
|
package/src/provider/lazy.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { getCanonicalInstanceRegistry } from '../instance-registry/lazy.js';
|
|
|
5
5
|
import { getCanonicalMultiCallEntrypoint } from '../multi-call-entrypoint/lazy.js';
|
|
6
6
|
import type { ProtocolContract } from '../protocol_contract.js';
|
|
7
7
|
import type { ProtocolContractName } from '../protocol_contract_data.js';
|
|
8
|
-
import {
|
|
8
|
+
import { getCanonicalPublicChecks } from '../public-checks/lazy.js';
|
|
9
9
|
import type { ProtocolContractsProvider } from './protocol_contracts_provider.js';
|
|
10
10
|
|
|
11
11
|
export class LazyProtocolContractsProvider implements ProtocolContractsProvider {
|
|
@@ -21,8 +21,8 @@ export class LazyProtocolContractsProvider implements ProtocolContractsProvider
|
|
|
21
21
|
return getCanonicalMultiCallEntrypoint();
|
|
22
22
|
case 'FeeJuice':
|
|
23
23
|
return getCanonicalFeeJuice();
|
|
24
|
-
case '
|
|
25
|
-
return
|
|
24
|
+
case 'PublicChecks':
|
|
25
|
+
return getCanonicalPublicChecks();
|
|
26
26
|
default:
|
|
27
27
|
throw new Error(`Unknown protocol contract name: ${name}`);
|
|
28
28
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
2
2
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import PublicChecksJson from '../../artifacts/PublicChecks.json' with { type: 'json' };
|
|
5
5
|
import { makeProtocolContract } from '../make_protocol_contract.js';
|
|
6
6
|
import type { ProtocolContract } from '../protocol_contract.js';
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const PublicChecksArtifact = loadContractArtifact(PublicChecksJson as NoirCompiledContract);
|
|
9
9
|
|
|
10
10
|
let protocolContract: ProtocolContract;
|
|
11
11
|
|
|
12
12
|
/** Returns the canonical deployment of the contract. */
|
|
13
|
-
export async function
|
|
13
|
+
export async function getCanonicalPublicChecks(): Promise<ProtocolContract> {
|
|
14
14
|
if (!protocolContract) {
|
|
15
|
-
protocolContract = await makeProtocolContract('
|
|
15
|
+
protocolContract = await makeProtocolContract('PublicChecks', PublicChecksArtifact);
|
|
16
16
|
}
|
|
17
17
|
return protocolContract;
|
|
18
18
|
}
|
|
@@ -6,24 +6,24 @@ import type { ProtocolContract } from '../protocol_contract.js';
|
|
|
6
6
|
let protocolContract: ProtocolContract;
|
|
7
7
|
let protocolContractArtifact: ContractArtifact;
|
|
8
8
|
|
|
9
|
-
export async function
|
|
9
|
+
export async function getPublicChecksArtifact(): Promise<ContractArtifact> {
|
|
10
10
|
if (!protocolContractArtifact) {
|
|
11
11
|
// Cannot assert this import as it's incompatible with bundlers like vite
|
|
12
12
|
// https://github.com/vitejs/vite/issues/19095#issuecomment-2566074352
|
|
13
13
|
// Even if now supported by al major browsers, the MIME type is replaced with
|
|
14
14
|
// "text/javascript"
|
|
15
15
|
// In the meantime, this lazy import is INCOMPATIBLE WITH NODEJS
|
|
16
|
-
const { default:
|
|
17
|
-
protocolContractArtifact = loadContractArtifact(
|
|
16
|
+
const { default: publicChecksJson } = await import('../../artifacts/PublicChecks.json');
|
|
17
|
+
protocolContractArtifact = loadContractArtifact(publicChecksJson);
|
|
18
18
|
}
|
|
19
19
|
return protocolContractArtifact;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/** Returns the canonical deployment of the
|
|
23
|
-
export async function
|
|
22
|
+
/** Returns the canonical deployment of the public checks contract. */
|
|
23
|
+
export async function getCanonicalPublicChecks(): Promise<ProtocolContract> {
|
|
24
24
|
if (!protocolContract) {
|
|
25
|
-
const
|
|
26
|
-
protocolContract = await makeProtocolContract('
|
|
25
|
+
const publicChecksArtifact = await getPublicChecksArtifact();
|
|
26
|
+
protocolContract = await makeProtocolContract('PublicChecks', publicChecksArtifact);
|
|
27
27
|
}
|
|
28
28
|
return protocolContract;
|
|
29
29
|
}
|