Skip to content

Commit

Permalink
feat: deployment to celo mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
OnahProsperity committed Oct 26, 2024
1 parent 8545fd0 commit 78379f7
Show file tree
Hide file tree
Showing 4 changed files with 400 additions and 0 deletions.
355 changes: 355 additions & 0 deletions .openzeppelin/celo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,355 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0x3Dc80272cE93cBFF3351913bB089B59C4a9141DE",
"txHash": "0x6b002b1b9793edf0b273bc04ed11df6b7f46e8525cea1698602bb3b692d98f5f"
},
"proxies": [
{
"address": "0x8FD1f78d88Dd008E557273b5Cd517487C2A9A7de",
"txHash": "0x45bdaf9de238246b5960789e295f618b0665e8bae4501f18adcbbc4598e055ac",
"kind": "transparent"
}
],
"impls": {
"595faec4d62d24c0860c7e9139f682cc5324542d8173613ff8157cb1e05af416": {
"address": "0xd2d97002Ec87ba57FCf3f6b510f20d5A80A6C33a",
"txHash": "0xb7fc96139caee01971bfc9e3155df87b07939313d575557a8cadac029514f55b",
"layout": {
"solcVersion": "0.8.18",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "_pendingOwner",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "Ownable2StepUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol:21"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "Ownable2StepUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol:70"
},
{
"label": "MAX_BPS",
"offset": 0,
"slot": "151",
"type": "t_uint256",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:12"
},
{
"label": "protocolFeePercent",
"offset": 0,
"slot": "152",
"type": "t_uint64",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:13"
},
{
"label": "treasuryAddress",
"offset": 8,
"slot": "152",
"type": "t_address",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:14"
},
{
"label": "_aggregatorAddress",
"offset": 0,
"slot": "153",
"type": "t_address",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:15"
},
{
"label": "_isTokenSupported",
"offset": 0,
"slot": "154",
"type": "t_mapping(t_address,t_uint256)",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:16"
},
{
"label": "__gap",
"offset": 0,
"slot": "155",
"type": "t_array(t_uint256)50_storage",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:19"
},
{
"label": "_paused",
"offset": 0,
"slot": "205",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "206",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "orderOut",
"offset": 0,
"slot": "255",
"type": "t_mapping(t_bytes32,t_struct(OrderOut)3809_storage)",
"contract": "Gateway",
"src": "contracts/Gateway.sol:21"
},
{
"label": "orderIn",
"offset": 0,
"slot": "256",
"type": "t_mapping(t_bytes32,t_struct(OrderIn)3820_storage)",
"contract": "Gateway",
"src": "contracts/Gateway.sol:22"
},
{
"label": "_nonce",
"offset": 0,
"slot": "257",
"type": "t_mapping(t_address,t_uint256)",
"contract": "Gateway",
"src": "contracts/Gateway.sol:23"
},
{
"label": "balance",
"offset": 0,
"slot": "258",
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
"contract": "Gateway",
"src": "contracts/Gateway.sol:24"
},
{
"label": "processedOrders",
"offset": 0,
"slot": "259",
"type": "t_mapping(t_bytes32,t_bool)",
"contract": "Gateway",
"src": "contracts/Gateway.sol:25"
},
{
"label": "__gap",
"offset": 0,
"slot": "260",
"type": "t_array(t_uint256)50_storage",
"contract": "Gateway",
"src": "contracts/Gateway.sol:26"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
"label": "mapping(address => mapping(address => uint256))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(OrderIn)3820_storage)": {
"label": "mapping(bytes32 => struct IGateway.OrderIn)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(OrderOut)3809_storage)": {
"label": "mapping(bytes32 => struct IGateway.OrderOut)",
"numberOfBytes": "32"
},
"t_struct(OrderIn)3820_storage": {
"label": "struct IGateway.OrderIn",
"members": [
{
"label": "amount",
"type": "t_uint256",
"offset": 0,
"slot": "0"
},
{
"label": "provider",
"type": "t_address",
"offset": 0,
"slot": "1"
},
{
"label": "sender",
"type": "t_address",
"offset": 0,
"slot": "2"
},
{
"label": "token",
"type": "t_address",
"offset": 0,
"slot": "3"
},
{
"label": "orderId",
"type": "t_bytes32",
"offset": 0,
"slot": "4"
}
],
"numberOfBytes": "160"
},
"t_struct(OrderOut)3809_storage": {
"label": "struct IGateway.OrderOut",
"members": [
{
"label": "sender",
"type": "t_address",
"offset": 0,
"slot": "0"
},
{
"label": "token",
"type": "t_address",
"offset": 0,
"slot": "1"
},
{
"label": "senderFeeRecipient",
"type": "t_address",
"offset": 0,
"slot": "2"
},
{
"label": "senderFee",
"type": "t_uint256",
"offset": 0,
"slot": "3"
},
{
"label": "protocolFee",
"type": "t_uint256",
"offset": 0,
"slot": "4"
},
{
"label": "isFulfilled",
"type": "t_bool",
"offset": 0,
"slot": "5"
},
{
"label": "isRefunded",
"type": "t_bool",
"offset": 1,
"slot": "5"
},
{
"label": "refundAddress",
"type": "t_address",
"offset": 2,
"slot": "5"
},
{
"label": "currentBPS",
"type": "t_uint96",
"offset": 0,
"slot": "6"
},
{
"label": "amount",
"type": "t_uint256",
"offset": 0,
"slot": "7"
}
],
"numberOfBytes": "256"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint64": {
"label": "uint64",
"numberOfBytes": "8"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
},
"t_uint96": {
"label": "uint96",
"numberOfBytes": "12"
}
},
"namespaces": {}
}
}
}
}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,22 @@ npx hardhat run scripts/tron/updateProtocolFee.ts
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td rowspan="3">Celo</td>
<td>Gateway Proxy</td>
<td>0x8FD1f78d88Dd008E557273b5Cd517487C2A9A7de</td>
</tr>
<tr>
<td>Gateway Implementation</td>
<td>0xd2d97002Ec87ba57FCf3f6b510f20d5A80A6C33a</td>
</tr>
<tr>
<td>Gateway Admin</td>
<td>0x3Dc80272cE93cBFF3351913bB089B59C4a9141DE</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td rowspan="3">Tron</td>
<td>Gateway Proxy</td>
Expand Down
Loading

0 comments on commit 78379f7

Please sign in to comment.