Skip to content

Commit

Permalink
chore: adding Celo (#75)
Browse files Browse the repository at this point in the history
Lamicham authored Jun 25, 2024
1 parent 79c528b commit 84823ca
Showing 12 changed files with 4,679 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -42,4 +42,6 @@
#ETH_NODE_URI_SKALE=
#SKALE_ETHERSCAN_API_KEY=""

#ETH_NODE_URI_CELO=
#CELO_ETHERSCAN_API_KEY=""

1 change: 1 addition & 0 deletions deployments/celo/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42220
132 changes: 132 additions & 0 deletions deployments/celo/DistributionCreator.json

Large diffs are not rendered by default.

1,981 changes: 1,981 additions & 0 deletions deployments/celo/DistributionCreator_Implementation_V2_0.json

Large diffs are not rendered by default.

132 changes: 132 additions & 0 deletions deployments/celo/Distributor.json

Large diffs are not rendered by default.

1,251 changes: 1,251 additions & 0 deletions deployments/celo/Distributor_Implementation_V2_2.json

Large diffs are not rendered by default.

675 changes: 675 additions & 0 deletions deployments/celo/MockToken.json

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions deployments/celo/solcInputs/6b2bfa347ec40b3a73eea8e762572891.json

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions deployments/celo/solcInputs/6bb726e562a0c66ccbff4c8f44448dd1.json

Large diffs are not rendered by default.

255 changes: 255 additions & 0 deletions deployments/celo/solcInputs/f923a26a98333123ff72888e4d22acf0.json

Large diffs are not rendered by default.

30 changes: 25 additions & 5 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS).setAction(async (_, __, runSuper
});

const accountsPkey = [getPkey()];
const accountsMerklDeployer: HardhatNetworkAccountsUserConfig = accounts('moonbeam');
const accountsMerklDeployer: HardhatNetworkAccountsUserConfig = accounts('celo');


const argv = yargs
@@ -152,16 +152,16 @@ const config: HardhatUserConfig = {
*/
// url: nodeUrl('blast'),
// blockNumber: 421659,
url: nodeUrl('skale'),
blockNumber: 5563900,
url: nodeUrl('celo'),
blockNumber: 26327340,
},
mining: argv.disableAutoMining
? {
auto: false,
interval: 1000,
}
: { auto: true },
chainId: 592,
chainId: 42220,
},
polygon: {
live: true,
@@ -494,6 +494,18 @@ const config: HardhatUserConfig = {
},
},
},
celo: {
live: true,
url: nodeUrl('celo'),
accounts: accountsMerklDeployer,
gas: 'auto',
chainId: 42220,
verify: {
etherscan: {
apiKey: etherscanKey('celo'),
},
},
},
astar: {
live: true,
url: nodeUrl('astar'),
@@ -594,7 +606,7 @@ const config: HardhatUserConfig = {
},
etherscan: {
// apiKey: process.env.ETHERSCAN_API_KEY,
apiKey:etherscanKey('skale'),
apiKey:etherscanKey('celo'),
customChains:[
{
network: 'taiko',
@@ -604,6 +616,14 @@ const config: HardhatUserConfig = {
browserURL: "https://taikoscan.io/"
},
},
{
network: 'celo',
chainId: 42220,
urls: {
apiURL: 'https://api.celoscan.io/api',
browserURL: 'https://celoscan.io/',
},
},
{
network: 'skale',
chainId: 2046399126,
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
"deploy:taiko": "hardhat deploy --tags distributionCreator --network taiko",
"deploy:moonbeam": "hardhat deploy --tags distributionCreator --network moonbeam",
"deploy:skale": "hardhat deploy --tags distributionCreator --network skale",
"deploy:celo": "hardhat deploy --tags distributionCreator --network celo",
"deploy:mode": "hardhat deploy --tags distributionCreator --network mode",
"deploy:astar": "hardhat deploy --tags distributionCreator --network astar",
"deploy:astarzkevm": "hardhat deploy --tags distributionCreator --network astarzkevm",

0 comments on commit 84823ca

Please sign in to comment.