Skip to content

Commit de45ba2

Browse files
author
Philipp Bolte
authored
feat: add sepolia support to truffle (#32)
* feat: add sepolia support to truffle * feat: sepolia deployment
1 parent b92e8f4 commit de45ba2

File tree

5 files changed

+228
-1
lines changed

5 files changed

+228
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
node-version: 16
4646
- run: npm ci
4747
- run: npm run build
48-
- run: npm run migrate-goerli
48+
- run: npm run migrate-sepolia
4949
env:
5050
INFURA_PROJECT_ID: ${{secrets.INFURA_PROJECT_ID}}
5151
REGISTRY_WALLET_PRIVATE_KEY: ${{secrets.REGISTRY_WALLET_PRIVATE_KEY}}

.openzeppelin/sepolia.json

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
{
2+
"manifestVersion": "3.2",
3+
"proxies": [
4+
{
5+
"address": "0x8FBFDDEbE25a12D873E6782BbE30f1Bc326A6E1C",
6+
"txHash": "0x13e88a72d755f2b3e80c39548a8d03dc382f016fe1a2ffb39c0078c030533f1f",
7+
"kind": "uups"
8+
}
9+
],
10+
"impls": {
11+
"0e7772148d51fefcdf8c12a18d0ecb6d64bdee43cafaa75656161389d0f9933a": {
12+
"address": "0xeDde4673B0DAa8C01a3E771DE929264dE2560608",
13+
"txHash": "0xd29bc029a44aa2407eddf9051526e72391cf79e9af8215a2847e7a3ed23f3b0c",
14+
"layout": {
15+
"solcVersion": "0.8.16",
16+
"storage": [
17+
{
18+
"contract": "Initializable",
19+
"label": "_initialized",
20+
"type": "t_uint8",
21+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
22+
"retypedFrom": "bool"
23+
},
24+
{
25+
"contract": "Initializable",
26+
"label": "_initializing",
27+
"type": "t_bool",
28+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
29+
},
30+
{
31+
"contract": "EIP712Upgradeable",
32+
"label": "_hashedName",
33+
"type": "t_bytes32",
34+
"src": "../@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:40",
35+
"renamedFrom": "_HASHED_NAME"
36+
},
37+
{
38+
"contract": "EIP712Upgradeable",
39+
"label": "_hashedVersion",
40+
"type": "t_bytes32",
41+
"src": "../@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:42",
42+
"renamedFrom": "_HASHED_VERSION"
43+
},
44+
{
45+
"contract": "EIP712Upgradeable",
46+
"label": "_name",
47+
"type": "t_string_storage",
48+
"src": "../@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:44"
49+
},
50+
{
51+
"contract": "EIP712Upgradeable",
52+
"label": "_version",
53+
"type": "t_string_storage",
54+
"src": "../@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:45"
55+
},
56+
{
57+
"contract": "EIP712Upgradeable",
58+
"label": "__gap",
59+
"type": "t_array(t_uint256)48_storage",
60+
"src": "../@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:204"
61+
},
62+
{
63+
"contract": "ContextUpgradeable",
64+
"label": "__gap",
65+
"type": "t_array(t_uint256)50_storage",
66+
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
67+
},
68+
{
69+
"contract": "PausableUpgradeable",
70+
"label": "_paused",
71+
"type": "t_bool",
72+
"src": "../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
73+
},
74+
{
75+
"contract": "PausableUpgradeable",
76+
"label": "__gap",
77+
"type": "t_array(t_uint256)49_storage",
78+
"src": "../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
79+
},
80+
{
81+
"contract": "OwnableUpgradeable",
82+
"label": "_owner",
83+
"type": "t_address",
84+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
85+
},
86+
{
87+
"contract": "OwnableUpgradeable",
88+
"label": "__gap",
89+
"type": "t_array(t_uint256)49_storage",
90+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
91+
},
92+
{
93+
"contract": "ERC1967UpgradeUpgradeable",
94+
"label": "__gap",
95+
"type": "t_array(t_uint256)50_storage",
96+
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169"
97+
},
98+
{
99+
"contract": "UUPSUpgradeable",
100+
"label": "__gap",
101+
"type": "t_array(t_uint256)50_storage",
102+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111"
103+
},
104+
{
105+
"contract": "RevocationRegistry",
106+
"label": "registry",
107+
"type": "t_mapping(t_address,t_mapping(t_bytes32,t_mapping(t_bytes32,t_bool)))",
108+
"src": "../project:/contracts/RevocationRegistry.sol:13"
109+
},
110+
{
111+
"contract": "RevocationRegistry",
112+
"label": "newOwners",
113+
"type": "t_mapping(t_bytes32,t_address)",
114+
"src": "../project:/contracts/RevocationRegistry.sol:18"
115+
},
116+
{
117+
"contract": "RevocationRegistry",
118+
"label": "delegates",
119+
"type": "t_mapping(t_bytes32,t_mapping(t_address,t_uint256))",
120+
"src": "../project:/contracts/RevocationRegistry.sol:23"
121+
},
122+
{
123+
"contract": "RevocationRegistry",
124+
"label": "nonces",
125+
"type": "t_mapping(t_address,t_uint256)",
126+
"src": "../project:/contracts/RevocationRegistry.sol:26"
127+
},
128+
{
129+
"contract": "RevocationRegistry",
130+
"label": "revokedLists",
131+
"type": "t_mapping(t_bytes32,t_bool)",
132+
"src": "../project:/contracts/RevocationRegistry.sol:30"
133+
},
134+
{
135+
"contract": "RevocationRegistry",
136+
"label": "VERSION_MAJOR",
137+
"type": "t_string_storage",
138+
"src": "../project:/contracts/RevocationRegistry.sol:32"
139+
},
140+
{
141+
"contract": "RevocationRegistry",
142+
"label": "VERSION_MINOR",
143+
"type": "t_string_storage",
144+
"src": "../project:/contracts/RevocationRegistry.sol:33"
145+
},
146+
{
147+
"contract": "RevocationRegistry",
148+
"label": "VERSION_PATCH",
149+
"type": "t_string_storage",
150+
"src": "../project:/contracts/RevocationRegistry.sol:34"
151+
},
152+
{
153+
"contract": "RevocationRegistry",
154+
"label": "VERSION_DELIMITER",
155+
"type": "t_string_storage",
156+
"src": "../project:/contracts/RevocationRegistry.sol:35"
157+
}
158+
],
159+
"types": {
160+
"t_mapping(t_address,t_mapping(t_bytes32,t_mapping(t_bytes32,t_bool)))": {
161+
"label": "mapping(address => mapping(bytes32 => mapping(bytes32 => bool)))"
162+
},
163+
"t_address": {
164+
"label": "address"
165+
},
166+
"t_mapping(t_bytes32,t_mapping(t_bytes32,t_bool))": {
167+
"label": "mapping(bytes32 => mapping(bytes32 => bool))"
168+
},
169+
"t_bytes32": {
170+
"label": "bytes32"
171+
},
172+
"t_mapping(t_bytes32,t_bool)": {
173+
"label": "mapping(bytes32 => bool)"
174+
},
175+
"t_bool": {
176+
"label": "bool"
177+
},
178+
"t_mapping(t_bytes32,t_address)": {
179+
"label": "mapping(bytes32 => address)"
180+
},
181+
"t_mapping(t_bytes32,t_mapping(t_address,t_uint256))": {
182+
"label": "mapping(bytes32 => mapping(address => uint256))"
183+
},
184+
"t_mapping(t_address,t_uint256)": {
185+
"label": "mapping(address => uint256)"
186+
},
187+
"t_uint256": {
188+
"label": "uint256"
189+
},
190+
"t_string_storage": {
191+
"label": "string"
192+
},
193+
"t_array(t_uint256)50_storage": {
194+
"label": "uint256[50]"
195+
},
196+
"t_array(t_uint256)49_storage": {
197+
"label": "uint256[49]"
198+
},
199+
"t_array(t_uint256)48_storage": {
200+
"label": "uint256[48]"
201+
},
202+
"t_uint8": {
203+
"label": "uint8"
204+
}
205+
}
206+
}
207+
}
208+
}
209+
}

networks/11155111.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"contractName": "Migrations",
4+
"address": "0x9B29111Fe308587a7CAf794B648C1951ecb97283",
5+
"transactionHash": "0x1ba6acdb8b757781f2aedafca66983ce8af59332a38da7e662b7227bacdd663b"
6+
},
7+
{
8+
"contractName": "RevocationRegistry",
9+
"address": "0x8FBFDDEbE25a12D873E6782BbE30f1Bc326A6E1C",
10+
"transactionHash": "0x13e88a72d755f2b3e80c39548a8d03dc382f016fe1a2ffb39c0078c030533f1f"
11+
}
12+
]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"compile-src": "tsc -p tsconfig.src.json --outDir ./dist/",
1818
"migrate": "tsc -p ./tsconfig.migrate.json --outDir ./migrations && npm run compile && truffle migrate",
1919
"migrate-goerli": "tsc -p ./tsconfig.migrate.json --outDir ./migrations && npm run compile && truffle migrate --network goerli",
20+
"migrate-sepolia": "tsc -p ./tsconfig.migrate.json --outDir ./migrations && npm run compile && truffle migrate --network sepolia",
2021
"test": "npm run test:jest && npm run test:truffle",
2122
"test:truffle": "npx truffle test",
2223
"test:truffle:meta": "npx truffle test test/meta-transactions.test.ts",

truffle-config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ module.exports = {
8585
network_id: 5, // Goerli's id
8686
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
8787
},
88+
sepolia: {
89+
provider: () => new HDWalletProvider(REGISTRY_WALLET_PRIVATE_KEY, `https://sepolia.infura.io/v3/${INFURA_PROJECT_ID}`),
90+
network_id: 11155111, // Sepolia's id
91+
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
92+
},
8893
//
8994
// Useful for private networks
9095
// private: {

0 commit comments

Comments
 (0)