Skip to content

Commit

Permalink
Deploy to Optimism
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Sep 19, 2024
1 parent 6924a97 commit e95c63f
Show file tree
Hide file tree
Showing 11 changed files with 698 additions and 2 deletions.
89 changes: 89 additions & 0 deletions broadcast/DeployL2GydDistributor.s.sol/10/run-1726763216.json

Large diffs are not rendered by default.

89 changes: 89 additions & 0 deletions broadcast/DeployL2GydDistributor.s.sol/10/run-latest.json

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions broadcast/DeploySGyd.s.sol/10/run-1726762078.json

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions broadcast/DeploySGyd.s.sol/10/run-1726762220.json

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions broadcast/DeploySGyd.s.sol/10/run-1726762300.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x93fec2c00bfe902f733b57c5a6ceed7cd1384ae1",
"function": "deploy(bytes32,bytes)",
"arguments": [
"0x24ab24a1afdf0594518965cefae07ee7950452cded6c1f08083f8603fbca648b",
"0x608060405234801561001057600080fd5b5060405161041b38038061041b83398101604081905261002f91610279565b818161003b8282610044565b50505050610363565b61004d826100a3565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561009757610092828261011f565b505050565b61009f610196565b5050565b806001600160a01b03163b6000036100de57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161013c9190610347565b600060405180830381855af49150503d8060008114610177576040519150601f19603f3d011682016040523d82523d6000602084013e61017c565b606091505b50909250905061018d8583836101b7565b95945050505050565b34156101b55760405163b398979f60e01b815260040160405180910390fd5b565b6060826101cc576101c782610216565b61020f565b81511580156101e357506001600160a01b0384163b155b1561020c57604051639996b31560e01b81526001600160a01b03851660048201526024016100d5565b50805b9392505050565b8051156102265780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610270578181015183820152602001610258565b50506000910152565b6000806040838503121561028c57600080fd5b82516001600160a01b03811681146102a357600080fd5b60208401519092506001600160401b03808211156102c057600080fd5b818501915085601f8301126102d457600080fd5b8151818111156102e6576102e661023f565b604051601f8201601f19908116603f0116810190838211818310171561030e5761030e61023f565b8160405282815288602084870101111561032757600080fd5b610338836020830160208801610255565b80955050505050509250929050565b60008251610359818460208701610255565b9190910192915050565b60aa806103716000396000f3fe6080604052600a600c565b005b60186014601a565b6051565b565b6000604c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e808015606f573d6000f35b3d6000fdfea2646970667358221220d255930fc558136b1f6726176647db65ad31a85b6f6f56f0b92162ff2965d6e364736f6c634300081800330000000000000000000000009e4658f0d695bb79d76fb9ff809514085569a17200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000064c0c53b8b000000000000000000000000ca5d8f8a8d49439357d3cf46ca2e720702f132b8000000000000000000000000d62bb3c3d6c7bd5c6ba64aa4d7bf05ae6ad105680000000000000000000000004dfdad359bd4c154dd307350582c4bff636ba29900000000000000000000000000000000000000000000000000000000"
],
"transaction": {
"from": "0x8bc920001949589258557412a32f8d297a74f244",
"to": "0x93fec2c00bfe902f733b57c5a6ceed7cd1384ae1",
"gas": "0x5304bb53",
"value": "0x0",
"input": "0xcdcb760a24ab24a1afdf0594518965cefae07ee7950452cded6c1f08083f8603fbca648b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000004fb608060405234801561001057600080fd5b5060405161041b38038061041b83398101604081905261002f91610279565b818161003b8282610044565b50505050610363565b61004d826100a3565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561009757610092828261011f565b505050565b61009f610196565b5050565b806001600160a01b03163b6000036100de57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161013c9190610347565b600060405180830381855af49150503d8060008114610177576040519150601f19603f3d011682016040523d82523d6000602084013e61017c565b606091505b50909250905061018d8583836101b7565b95945050505050565b34156101b55760405163b398979f60e01b815260040160405180910390fd5b565b6060826101cc576101c782610216565b61020f565b81511580156101e357506001600160a01b0384163b155b1561020c57604051639996b31560e01b81526001600160a01b03851660048201526024016100d5565b50805b9392505050565b8051156102265780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610270578181015183820152602001610258565b50506000910152565b6000806040838503121561028c57600080fd5b82516001600160a01b03811681146102a357600080fd5b60208401519092506001600160401b03808211156102c057600080fd5b818501915085601f8301126102d457600080fd5b8151818111156102e6576102e661023f565b604051601f8201601f19908116603f0116810190838211818310171561030e5761030e61023f565b8160405282815288602084870101111561032757600080fd5b610338836020830160208801610255565b80955050505050509250929050565b60008251610359818460208701610255565b9190910192915050565b60aa806103716000396000f3fe6080604052600a600c565b005b60186014601a565b6051565b565b6000604c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e808015606f573d6000f35b3d6000fdfea2646970667358221220d255930fc558136b1f6726176647db65ad31a85b6f6f56f0b92162ff2965d6e364736f6c634300081800330000000000000000000000009e4658f0d695bb79d76fb9ff809514085569a17200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000064c0c53b8b000000000000000000000000ca5d8f8a8d49439357d3cf46ca2e720702f132b8000000000000000000000000d62bb3c3d6c7bd5c6ba64aa4d7bf05ae6ad105680000000000000000000000004dfdad359bd4c154dd307350582c4bff636ba299000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x8",
"chainId": "0xa"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1726762300,
"chain": 10,
"commit": "6924a97"
}
33 changes: 33 additions & 0 deletions broadcast/DeploySGyd.s.sol/10/run-1726762362.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x93fec2c00bfe902f733b57c5a6ceed7cd1384ae1",
"function": "deploy(bytes32,bytes)",
"arguments": [
"0x24ab24a1afdf0594518965cefae07ee7950452cded6c1f08083f8603fbca648b",
"0x608060405234801561001057600080fd5b5060405161041b38038061041b83398101604081905261002f91610279565b818161003b8282610044565b50505050610363565b61004d826100a3565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561009757610092828261011f565b505050565b61009f610196565b5050565b806001600160a01b03163b6000036100de57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161013c9190610347565b600060405180830381855af49150503d8060008114610177576040519150601f19603f3d011682016040523d82523d6000602084013e61017c565b606091505b50909250905061018d8583836101b7565b95945050505050565b34156101b55760405163b398979f60e01b815260040160405180910390fd5b565b6060826101cc576101c782610216565b61020f565b81511580156101e357506001600160a01b0384163b155b1561020c57604051639996b31560e01b81526001600160a01b03851660048201526024016100d5565b50805b9392505050565b8051156102265780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610270578181015183820152602001610258565b50506000910152565b6000806040838503121561028c57600080fd5b82516001600160a01b03811681146102a357600080fd5b60208401519092506001600160401b03808211156102c057600080fd5b818501915085601f8301126102d457600080fd5b8151818111156102e6576102e661023f565b604051601f8201601f19908116603f0116810190838211818310171561030e5761030e61023f565b8160405282815288602084870101111561032757600080fd5b610338836020830160208801610255565b80955050505050509250929050565b60008251610359818460208701610255565b9190910192915050565b60aa806103716000396000f3fe6080604052600a600c565b005b60186014601a565b6051565b565b6000604c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e808015606f573d6000f35b3d6000fdfea2646970667358221220d255930fc558136b1f6726176647db65ad31a85b6f6f56f0b92162ff2965d6e364736f6c634300081800330000000000000000000000009e4658f0d695bb79d76fb9ff809514085569a17200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000064c0c53b8b000000000000000000000000ca5d8f8a8d49439357d3cf46ca2e720702f132b8000000000000000000000000d62bb3c3d6c7bd5c6ba64aa4d7bf05ae6ad105680000000000000000000000004dfdad359bd4c154dd307350582c4bff636ba29900000000000000000000000000000000000000000000000000000000"
],
"transaction": {
"from": "0x8bc920001949589258557412a32f8d297a74f244",
"to": "0x93fec2c00bfe902f733b57c5a6ceed7cd1384ae1",
"gas": "0x5304bb53",
"value": "0x0",
"input": "0xcdcb760a24ab24a1afdf0594518965cefae07ee7950452cded6c1f08083f8603fbca648b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000004fb608060405234801561001057600080fd5b5060405161041b38038061041b83398101604081905261002f91610279565b818161003b8282610044565b50505050610363565b61004d826100a3565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561009757610092828261011f565b505050565b61009f610196565b5050565b806001600160a01b03163b6000036100de57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161013c9190610347565b600060405180830381855af49150503d8060008114610177576040519150601f19603f3d011682016040523d82523d6000602084013e61017c565b606091505b50909250905061018d8583836101b7565b95945050505050565b34156101b55760405163b398979f60e01b815260040160405180910390fd5b565b6060826101cc576101c782610216565b61020f565b81511580156101e357506001600160a01b0384163b155b1561020c57604051639996b31560e01b81526001600160a01b03851660048201526024016100d5565b50805b9392505050565b8051156102265780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610270578181015183820152602001610258565b50506000910152565b6000806040838503121561028c57600080fd5b82516001600160a01b03811681146102a357600080fd5b60208401519092506001600160401b03808211156102c057600080fd5b818501915085601f8301126102d457600080fd5b8151818111156102e6576102e661023f565b604051601f8201601f19908116603f0116810190838211818310171561030e5761030e61023f565b8160405282815288602084870101111561032757600080fd5b610338836020830160208801610255565b80955050505050509250929050565b60008251610359818460208701610255565b9190910192915050565b60aa806103716000396000f3fe6080604052600a600c565b005b60186014601a565b6051565b565b6000604c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e808015606f573d6000f35b3d6000fdfea2646970667358221220d255930fc558136b1f6726176647db65ad31a85b6f6f56f0b92162ff2965d6e364736f6c634300081800330000000000000000000000009e4658f0d695bb79d76fb9ff809514085569a17200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000064c0c53b8b000000000000000000000000ca5d8f8a8d49439357d3cf46ca2e720702f132b8000000000000000000000000d62bb3c3d6c7bd5c6ba64aa4d7bf05ae6ad105680000000000000000000000004dfdad359bd4c154dd307350582c4bff636ba299000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x8",
"chainId": "0xa"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1726762362,
"chain": 10,
"commit": "6924a97"
}
170 changes: 170 additions & 0 deletions broadcast/DeploySGyd.s.sol/10/run-1726762675.json

Large diffs are not rendered by default.

170 changes: 170 additions & 0 deletions broadcast/DeploySGyd.s.sol/10/run-latest.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion docs/deployed-addresses.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@

## Arbitrum


* `L2GydDistributor`: [0x4Dfdad359bd4c154dD307350582C4bff636Ba299](https://arbiscan.io/address/0x4Dfdad359bd4c154dD307350582C4bff636Ba299)

* `sGYD`: [0xeA50f402653c41cAdbaFD1f788341dB7B7F37816](https://arbiscan.io/address/0xeA50f402653c41cAdbaFD1f788341dB7B7F37816)

## Optimism

* `L2GydDistributor`: [0x4Dfdad359bd4c154dD307350582C4bff636Ba299](https://optimistic.etherscan.io/address/0x4Dfdad359bd4c154dD307350582C4bff636Ba299)

* `sGYD`: [0xeA50f402653c41cAdbaFD1f788341dB7B7F37816](https://optimistic.etherscan.io/address/0xeA50f402653c41cAdbaFD1f788341dB7B7F37816)
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ libs = ["lib"]
solc = "0.8.24"
optimizer = true
optimizer-runs = 200
evm_version = "cancun"

[profile.dev]
optimizer = false
Expand Down
2 changes: 1 addition & 1 deletion script/deployments/DeployL2GydDistributor.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ contract DeployL2GydDistributor is Deployment {
function run() public {
vm.startBroadcast(deployerPrivateKey);

bytes memory args = abi.encode(l2Gyd, deployer);
bytes memory args = abi.encode(l2Gyd, l2Governance);
bytes memory creationCode = abi.encodePacked(type(L2GydDistributor).creationCode, args);
address l2GydDistributor = _deploy(L2_GYD_DISTRIBUTOR, creationCode);
console.log("L2GydDistributor: ", l2GydDistributor);
Expand Down

0 comments on commit e95c63f

Please sign in to comment.