Skip to content

Commit 6f67600

Browse files
committed
chore: bump hardhat ignition to 0.15.8
Signed-off-by: Tomás Migone <[email protected]>
1 parent 4f0a479 commit 6f67600

File tree

7 files changed

+56
-20
lines changed

7 files changed

+56
-20
lines changed

packages/horizon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ npx hardhat ignition deploy ./ignition/modules/horizon.ts \
1616

1717
You can use any network defined in `hardhat.config.ts` by replacing `hardhat` with the network name.
1818

19-
Note that this will deploy a standalone version of Graph Horizon contracts, meaning the Subgraph Service will not be deployed. If you want to deploy both please refer to the [Subgraph Service README](../subgraph-service/README.md) for deploy instructions.
19+
Note that this will deploy a standalone version of Graph Horizon contracts, meaning the Subgraph Service or any other data service will not be deployed. If you want to deploy the Subgraph Service please refer to the [Subgraph Service README](../subgraph-service/README.md) for deploy instructions.

packages/horizon/ignition/configs/horizon.hardhat.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"governor": "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0",
44
"pauseGuardian": "0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC",
55
"subgraphAvailabilityOracle": "0xd03ea8624C8C5987235048901fB614fDcA89b117",
6-
// Placeholder address for a standalone Horizon deployment, see README.md for more detals
6+
// Placeholder address for a standalone Horizon deployment, see README.md for more details
77
"subgraphServiceAddress": "0x0000000000000000000000000000000000000000"
88
},
99
"RewardsManager": {

packages/horizon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
1818
"@nomicfoundation/hardhat-ethers": "^3.0.8",
1919
"@nomicfoundation/hardhat-foundry": "^1.1.1",
20-
"@nomicfoundation/hardhat-ignition": "^0.15.7",
20+
"@nomicfoundation/hardhat-ignition": "^0.15.8",
2121
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.5",
2222
"@nomicfoundation/hardhat-network-helpers": "^1.0.0",
2323
"@nomicfoundation/hardhat-toolbox": "^4.0.0",

packages/horizon/scripts/deploy.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
require('json5/lib/register')
2+
3+
import { ignition } from 'hardhat'
4+
5+
import HorizonModule from '../ignition/modules/horizon'
6+
7+
async function main() {
8+
const HorizonConfig = removeNFromBigInts(require('../ignition/configs/horizon.hardhat.json5'))
9+
// Deploy Horizon
10+
await ignition.deploy(HorizonModule, {
11+
parameters: HorizonConfig,
12+
})
13+
}
14+
main().catch((error) => {
15+
console.error(error)
16+
process.exit(1)
17+
})
18+
19+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
20+
function removeNFromBigInts(obj: any): any {
21+
// Ignition requires "n" suffix for bigints, but not here
22+
if (typeof obj === 'string') {
23+
return obj.replace(/(\d+)n/g, '$1')
24+
} else if (Array.isArray(obj)) {
25+
return obj.map(removeNFromBigInts)
26+
} else if (typeof obj === 'object' && obj !== null) {
27+
for (const key in obj) {
28+
obj[key] = removeNFromBigInts(obj[key])
29+
}
30+
}
31+
return obj
32+
}

packages/subgraph-service/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
1919
"@nomicfoundation/hardhat-ethers": "^3.0.8",
2020
"@nomicfoundation/hardhat-foundry": "^1.1.1",
21-
"@nomicfoundation/hardhat-ignition": "^0.15.7",
21+
"@nomicfoundation/hardhat-ignition": "^0.15.8",
2222
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.5",
2323
"@nomicfoundation/hardhat-network-helpers": "^1.0.0",
2424
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
@@ -39,6 +39,7 @@
3939
"hardhat-contract-sizer": "^2.10.0",
4040
"hardhat-gas-reporter": "^1.0.8",
4141
"hardhat-storage-layout": "^0.1.7",
42+
"json5": "^2.2.3",
4243
"lint-staged": "^15.2.2",
4344
"prettier": "^3.2.5",
4445
"prettier-plugin-solidity": "^1.3.1",

packages/subgraph-service/scripts/deploy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/* eslint-disable @typescript-eslint/no-unsafe-return */
33
/* eslint-disable @typescript-eslint/no-unused-vars */
44
/* eslint-disable @typescript-eslint/no-explicit-any */
5+
require('json5/lib/register')
6+
57
import { ignition } from 'hardhat'
68

79
import DisputeManagerModule from '../ignition/modules/DisputeManager'

yarn.lock

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,7 @@ __metadata:
29332933
"@nomicfoundation/hardhat-chai-matchers": "npm:^2.0.0"
29342934
"@nomicfoundation/hardhat-ethers": "npm:^3.0.8"
29352935
"@nomicfoundation/hardhat-foundry": "npm:^1.1.1"
2936-
"@nomicfoundation/hardhat-ignition": "npm:^0.15.7"
2936+
"@nomicfoundation/hardhat-ignition": "npm:^0.15.8"
29372937
"@nomicfoundation/hardhat-ignition-ethers": "npm:^0.15.5"
29382938
"@nomicfoundation/hardhat-network-helpers": "npm:^1.0.0"
29392939
"@nomicfoundation/hardhat-toolbox": "npm:^4.0.0"
@@ -3026,7 +3026,7 @@ __metadata:
30263026
"@nomicfoundation/hardhat-chai-matchers": "npm:^2.0.0"
30273027
"@nomicfoundation/hardhat-ethers": "npm:^3.0.8"
30283028
"@nomicfoundation/hardhat-foundry": "npm:^1.1.1"
3029-
"@nomicfoundation/hardhat-ignition": "npm:^0.15.7"
3029+
"@nomicfoundation/hardhat-ignition": "npm:^0.15.8"
30303030
"@nomicfoundation/hardhat-ignition-ethers": "npm:^0.15.5"
30313031
"@nomicfoundation/hardhat-network-helpers": "npm:^1.0.0"
30323032
"@nomicfoundation/hardhat-toolbox": "npm:^4.0.0"
@@ -3047,6 +3047,7 @@ __metadata:
30473047
hardhat-contract-sizer: "npm:^2.10.0"
30483048
hardhat-gas-reporter: "npm:^1.0.8"
30493049
hardhat-storage-layout: "npm:^0.1.7"
3050+
json5: "npm:^2.2.3"
30503051
lint-staged: "npm:^15.2.2"
30513052
prettier: "npm:^3.2.5"
30523053
prettier-plugin-solidity: "npm:^1.3.1"
@@ -4690,12 +4691,12 @@ __metadata:
46904691
languageName: node
46914692
linkType: hard
46924693

4693-
"@nomicfoundation/hardhat-ignition@npm:^0.15.7":
4694-
version: 0.15.7
4695-
resolution: "@nomicfoundation/hardhat-ignition@npm:0.15.7"
4694+
"@nomicfoundation/hardhat-ignition@npm:^0.15.8":
4695+
version: 0.15.8
4696+
resolution: "@nomicfoundation/hardhat-ignition@npm:0.15.8"
46964697
dependencies:
4697-
"@nomicfoundation/ignition-core": "npm:^0.15.7"
4698-
"@nomicfoundation/ignition-ui": "npm:^0.15.7"
4698+
"@nomicfoundation/ignition-core": "npm:^0.15.8"
4699+
"@nomicfoundation/ignition-ui": "npm:^0.15.8"
46994700
chalk: "npm:^4.0.0"
47004701
debug: "npm:^4.3.2"
47014702
fs-extra: "npm:^10.0.0"
@@ -4704,7 +4705,7 @@ __metadata:
47044705
peerDependencies:
47054706
"@nomicfoundation/hardhat-verify": ^2.0.1
47064707
hardhat: ^2.18.0
4707-
checksum: a5ed2b4fb862185d25c7b718faacafb23b818bc22c4c80c9bab6baaa228cf430196058a9374649de99dd831b98b9088b7b337ef44e4cadbf370d75a8a325ced9
4708+
checksum: 59b82470ff5b38451c0bd7b19015eeee2f3db801addd8d67e0b28d6cb5ae3f578dfc998d184cb9c71895f6106bbb53c9cdf28df1cb14917df76cf3db82e87c32
47084709
languageName: node
47094710
linkType: hard
47104711

@@ -4780,9 +4781,9 @@ __metadata:
47804781
languageName: node
47814782
linkType: hard
47824783

4783-
"@nomicfoundation/ignition-core@npm:^0.15.7":
4784-
version: 0.15.7
4785-
resolution: "@nomicfoundation/ignition-core@npm:0.15.7"
4784+
"@nomicfoundation/ignition-core@npm:^0.15.8":
4785+
version: 0.15.8
4786+
resolution: "@nomicfoundation/ignition-core@npm:0.15.8"
47864787
dependencies:
47874788
"@ethersproject/address": "npm:5.6.1"
47884789
"@nomicfoundation/solidity-analyzer": "npm:^0.1.1"
@@ -4793,14 +4794,14 @@ __metadata:
47934794
immer: "npm:10.0.2"
47944795
lodash: "npm:4.17.21"
47954796
ndjson: "npm:2.0.0"
4796-
checksum: b0d5717e7835da76595886e2729a0ee34536699091ad509b63fe2ec96b186495886c313c1c748dcc658524a5f409840031186f3af76975250be424248369c495
4797+
checksum: ebb16e092bd9a39e48cc269d3627430656f558c814cea435eaf06f2e7d9a059a4470d1186c2a7d108efed755ef34d88d2aa74f9d6de5bb73e570996a53a7d2ef
47974798
languageName: node
47984799
linkType: hard
47994800

4800-
"@nomicfoundation/ignition-ui@npm:^0.15.7":
4801-
version: 0.15.7
4802-
resolution: "@nomicfoundation/ignition-ui@npm:0.15.7"
4803-
checksum: 4e53ff1e5267e9882ee3f7bae3d39c0e0552e9600fd2ff12ccc49f22436e1b97e9cec215999fda0ebcfbdf6db054a1ad8c0d940641d97de5998dbb4c864ce649
4801+
"@nomicfoundation/ignition-ui@npm:^0.15.8":
4802+
version: 0.15.8
4803+
resolution: "@nomicfoundation/ignition-ui@npm:0.15.8"
4804+
checksum: c5e7b41631824a048160b8d5400f5fb0cb05412a9d2f3896044f7cfedea4298d31a8d5b4b8be38296b5592db4fa9255355843dcb3d781bc7fa1200fb03ea8476
48044805
languageName: node
48054806
linkType: hard
48064807

0 commit comments

Comments
 (0)