Skip to content

Commit 95cf1e1

Browse files
committed
Deploy to op-sepolia
1 parent 994372b commit 95cf1e1

File tree

4 files changed

+168
-2
lines changed

4 files changed

+168
-2
lines changed

.openzeppelin/unknown-11155420.json

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
{
2+
"manifestVersion": "3.2",
3+
"admin": {
4+
"address": "0xbd48DFf5a94C16987e6BED5F9c70C3664DAA92FC",
5+
"txHash": "0x63d8616a9d24cb51eb8d019cbd8f838d37c99f45ea5bd468e832acb5e62eb299",
6+
"deployTransaction": {
7+
"hash": "0x63d8616a9d24cb51eb8d019cbd8f838d37c99f45ea5bd468e832acb5e62eb299",
8+
"type": 0,
9+
"accessList": null,
10+
"blockHash": "0x9a2d8d31e0b7d0b0b5ddaf5141753785a7b0fdeb214281fe9e857cc0347f89ba",
11+
"blockNumber": 6987127,
12+
"transactionIndex": 1,
13+
"confirmations": 2,
14+
"from": "0xfF5Be16460704eFd0263dB1444Eaa216b77477c5",
15+
"gasPrice": {
16+
"type": "BigNumber",
17+
"hex": "0x3b9aca00"
18+
},
19+
"gasLimit": {
20+
"type": "BigNumber",
21+
"hex": "0x076330"
22+
},
23+
"to": null,
24+
"value": {
25+
"type": "BigNumber",
26+
"hex": "0x00"
27+
},
28+
"nonce": 19,
29+
"data": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610759806100616000396000f3fe60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead146101645761007b565b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b366004610515565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee366004610554565b610292565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f36600461058c565b61031c565b34801561013057600080fd5b506100d161013f366004610554565b6103ad565b34801561015057600080fd5b506100d161015f366004610515565b610405565b34801561017057600080fd5b506100a061017f366004610515565b6104ef565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d9190610538565b949350505050565b6000546001600160a01b031633146102485760405162461bcd60e51b815260040161023f906106c0565b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146102bc5760405162461bcd60e51b815260040161023f906106c0565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b15801561030057600080fd5b505af1158015610314573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146103465760405162461bcd60e51b815260040161023f906106c0565b60405163278f794360e11b81526001600160a01b03841690634f1ef286903490610376908690869060040161065d565b6000604051808303818588803b15801561038f57600080fd5b505af11580156103a3573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146103d75760405162461bcd60e51b815260040161023f906106c0565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102e6565b6000546001600160a01b0316331461042f5760405162461bcd60e51b815260040161023f906106c0565b6001600160a01b0381166104945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023f565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b600060208284031215610526578081fd5b81356105318161070b565b9392505050565b600060208284031215610549578081fd5b81516105318161070b565b60008060408385031215610566578081fd5b82356105718161070b565b915060208301356105818161070b565b809150509250929050565b6000806000606084860312156105a0578081fd5b83356105ab8161070b565b925060208401356105bb8161070b565b9150604084013567ffffffffffffffff808211156105d7578283fd5b818601915086601f8301126105ea578283fd5b8135818111156105fc576105fc6106f5565b604051601f8201601f19908116603f01168101908382118183101715610624576106246106f5565b8160405282815289602084870101111561063c578586fd5b82602086016020830137856020848301015280955050505050509250925092565b600060018060a01b038416825260206040818401528351806040850152825b818110156106985785810183015185820160600152820161067c565b818111156106a95783606083870101525b50601f01601f191692909201606001949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461072057600080fd5b5056fea2646970667358221220d849f96f3086b9f82cdcf665adb8c697ace05638da1c7c16ab2d26293717af6764736f6c63430008020033",
30+
"r": "0x945b6a8f71c27f50b8b47b032b0109a0b2e2ca8c55cb76f9cb912c747124157f",
31+
"s": "0x6b89c6d1745b9f79860c92a1a64b0f3411d54c569ff6d18e1d6182d39b7f3a28",
32+
"v": 22310875,
33+
"creates": "0xbd48DFf5a94C16987e6BED5F9c70C3664DAA92FC",
34+
"chainId": 11155420
35+
}
36+
},
37+
"proxies": [
38+
{
39+
"address": "0x718826D152a68de238290319d0B5B7B7B07732Db",
40+
"txHash": "0x4c6b9e51648583d2e98e342603e8e0ebd46f13d3247c0bf77c3bf13365b1da45",
41+
"kind": "transparent"
42+
}
43+
],
44+
"impls": {
45+
"f5898b7bb6420ceac07c4183f4b23d1ac02c74f675278e8d639dc52d126e7949": {
46+
"address": "0x2654C68957A8B1f154Cbe6FB8177d6f2c9703eCC",
47+
"txHash": "0x266cf5544fc43b3a33e162ba2218951da97b524881df7903ce949392c77c6754",
48+
"layout": {
49+
"storage": [
50+
{
51+
"contract": "Initializable",
52+
"label": "_initialized",
53+
"type": "t_uint8",
54+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62"
55+
},
56+
{
57+
"contract": "Initializable",
58+
"label": "_initializing",
59+
"type": "t_bool",
60+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
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": "OwnableUpgradeable",
70+
"label": "_owner",
71+
"type": "t_address",
72+
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
73+
},
74+
{
75+
"contract": "OwnableUpgradeable",
76+
"label": "__gap",
77+
"type": "t_array(t_uint256)49_storage",
78+
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
79+
},
80+
{
81+
"contract": "BeneficiarySuperApp",
82+
"label": "cfaV1",
83+
"type": "t_struct(InitData)7971_storage",
84+
"src": "contracts/beneficiary/BeneficiarySuperApp.sol:26"
85+
},
86+
{
87+
"contract": "BeneficiarySuperApp",
88+
"label": "paramsStore",
89+
"type": "t_contract(IPCOLicenseParamsStore)19416",
90+
"src": "contracts/beneficiary/BeneficiarySuperApp.sol:27"
91+
},
92+
{
93+
"contract": "BeneficiarySuperApp",
94+
"label": "lastDeletion",
95+
"type": "t_mapping(t_address,t_uint256)",
96+
"src": "contracts/beneficiary/BeneficiarySuperApp.sol:30"
97+
},
98+
{
99+
"contract": "BeneficiarySuperApp",
100+
"label": "beneficiary",
101+
"type": "t_address",
102+
"src": "contracts/beneficiary/BeneficiarySuperApp.sol:33"
103+
}
104+
],
105+
"types": {
106+
"t_struct(InitData)7971_storage": {
107+
"label": "struct CFAv1Library.InitData",
108+
"members": [
109+
{
110+
"label": "host",
111+
"type": "t_contract(ISuperfluid)11167"
112+
},
113+
{
114+
"label": "cfa",
115+
"type": "t_contract(IConstantFlowAgreementV1)9624"
116+
}
117+
]
118+
},
119+
"t_contract(ISuperfluid)11167": {
120+
"label": "contract ISuperfluid"
121+
},
122+
"t_contract(IConstantFlowAgreementV1)9624": {
123+
"label": "contract IConstantFlowAgreementV1"
124+
},
125+
"t_contract(IPCOLicenseParamsStore)19416": {
126+
"label": "contract IPCOLicenseParamsStore"
127+
},
128+
"t_mapping(t_address,t_uint256)": {
129+
"label": "mapping(address => uint256)"
130+
},
131+
"t_address": {
132+
"label": "address"
133+
},
134+
"t_uint256": {
135+
"label": "uint256"
136+
},
137+
"t_array(t_uint256)49_storage": {
138+
"label": "uint256[49]"
139+
},
140+
"t_array(t_uint256)50_storage": {
141+
"label": "uint256[50]"
142+
},
143+
"t_uint8": {
144+
"label": "uint8"
145+
},
146+
"t_bool": {
147+
"label": "bool"
148+
}
149+
}
150+
}
151+
}
152+
}
153+
}

hardhat.config.ts

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ if (process.env.INFURA_KEY) {
5252
chainId: 11155111,
5353
accounts: [process.env.DEV_PRIVATE_KEY],
5454
};
55+
networks["op-sepolia"] = {
56+
url: `https://opt-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_TESTNET_KEY}`,
57+
chainId: 11155420,
58+
accounts: [process.env.DEV_PRIVATE_KEY],
59+
gasPrice: 1000000000,
60+
};
5561
} else {
5662
console.warn("Missing env.DEV_PRIVATE_KEY");
5763
}
@@ -86,6 +92,7 @@ module.exports = {
8692
5: "0x9c2516a3700B2A5D3a8E72f5dBf4aFDa268D0316",
8793
10: "0x8FC4308da9310479dF48ef77142Eef05c363e099",
8894
420: "0xfF5Be16460704eFd0263dB1444Eaa216b77477c5",
95+
11155420: "0xfF5Be16460704eFd0263dB1444Eaa216b77477c5",
8996
11155111: 0,
9097
},
9198
user: {
@@ -102,6 +109,7 @@ module.exports = {
102109
10: "0x8FC4308da9310479dF48ef77142Eef05c363e099",
103110
420: "0xfF5Be16460704eFd0263dB1444Eaa216b77477c5",
104111
11155111: 0,
112+
11155420: "0xfF5Be16460704eFd0263dB1444Eaa216b77477c5",
105113
31337: 0,
106114
},
107115
deployer: {

scripts/deploy.ts

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ async function deployBeaconDiamond() {
7171
}
7272

7373
async function deployRegistryDiamond() {
74+
// await hre.network.provider.request({
75+
// method: "wallet_switchEthereumChain",
76+
// params: [{ chainId: 11155420 }],
77+
// });
78+
7479
const { diamondAdmin, deployer } = await hre.getNamedAccounts();
7580

7681
await deployBeaconDiamond();

tasks/initialize-eoa.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ task("deploy:eoa:initialize")
150150
sfHost = res.sf.host.contract.address;
151151
ethx = res.ethx.address;
152152
} else {
153-
sfHost = "0x109412E3C84f0539b43d39dB691B08c90f58dC7c";
154-
ethx = "0x30a6933ca9230361972e413a15dc8114c952414e";
153+
sfHost = "0xd399e2Fb5f4cf3722a11F65b88FAB6B2B8621005";
154+
ethx = "0x0043d7c85C8b96a49A72A92C0B48CdC4720437d7";
155155
}
156156

157157
await initializeRegistryDiamond(

0 commit comments

Comments
 (0)