Skip to content

Commit

Permalink
feat: standard deployments on celo (#690)
Browse files Browse the repository at this point in the history
* feat: standard deployments on celo
  • Loading branch information
yomarion committed Nov 30, 2021
1 parent 224dd6e commit f224545
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 7 deletions.
5 changes: 5 additions & 0 deletions packages/smart-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export default {
chainId: 137,
accounts,
},
celo: {
url: process.env.WEB3_PROVIDER_URL || 'https://forno.celo.org',
chainId: 42220,
accounts,
},
bsctest: {
url: process.env.WEB3_PROVIDER_URL || 'https://data-seed-prebsc-1-s1.binance.org:8545',
chainId: 97,
Expand Down
2 changes: 2 additions & 0 deletions packages/smart-contracts/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ export const uniswapV2RouterAddresses: Record<string, string> = {
fantom: '0x16327e3fbdaca3bcf7e38f5af2599d2ddc33ae52',
// https://github.com/QuickSwap/quickswap-core
matic: '0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff',
// https://app.ubeswap.org/#/swap
celo: '0x7D28570135A2B1930F331c507F65039D4937f66c',
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const chainlinkConversionPath = new ContractArtifact<ChainlinkConversionP
address: '0xEEc4790306C43DC00cebbE4D0c36Fadf8634B533',
creationBlockNumber: 20061324,
},
celo: {
address: '0xEEc4790306C43DC00cebbE4D0c36Fadf8634B533',
creationBlockNumber: 10141032,
},
},
},
},
Expand Down
10 changes: 10 additions & 0 deletions packages/smart-contracts/src/lib/artifacts/ERC20FeeProxy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ export const erc20FeeProxyArtifact = new ContractArtifact<ERC20FeeProxy>(
},
},
},
// Additional deployments of same versions, not worth upgrading the version number but worth using within next versions
// '0.2.0-next': {
// abi: ABI_0_1_0,
// deployment: {
// celo: {
// address: '0x0DfbEe143b42B41eFC5A6F87bFD1fFC78c2f0aC9',
// creationBlockNumber: 10141030,
// },
// },
// },
},
'0.2.0',
);
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export const erc20SwapToPayArtifact = new ContractArtifact<ERC20SwapToPay>(
address: '0x75740D9b5cA3BCCb356CA7f0D0dB71aBE427a835',
creationBlockNumber: 20670324,
},
celo: {
address: '0x75740D9b5cA3BCCb356CA7f0D0dB71aBE427a835',
creationBlockNumber: 10141034,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const erc20ConversionProxy = new ContractArtifact<Erc20ConversionProxy>(
address: '0xf0f49873C50765239F6f9534Ba13c4fe16eD5f2E',
creationBlockNumber: 20061367,
},
celo: {
address: '0xf0f49873C50765239F6f9534Ba13c4fe16eD5f2E',
creationBlockNumber: 10141033,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export const erc20SwapConversionArtifact = new ContractArtifact<ERC20SwapToConve
address: '0x1d6B06C6f7adFd9314BD4C58a6D306261113a1D4',
creationBlockNumber: 20670431,
},
celo: {
address: '0x1d6B06C6f7adFd9314BD4C58a6D306261113a1D4',
creationBlockNumber: 10141036,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const ethConversionArtifact = new ContractArtifact<EthConversionProxy>(
address: '0xCa3353a15fCb5C83a1Ff64BFf055781aC5c4d2F4',
creationBlockNumber: 20670503,
},
celo: {
address: '0xCa3353a15fCb5C83a1Ff64BFf055781aC5c4d2F4',
creationBlockNumber: 10141038,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const ethereumFeeProxyArtifact = new ContractArtifact<EthereumFeeProxy>(
address: '0xC6E23a20C0a1933ACC8E30247B5D1e2215796C1F',
creationBlockNumber: 20670475,
},
celo: {
address: '0xC6E23a20C0a1933ACC8E30247B5D1e2215796C1F',
creationBlockNumber: 10141037,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ export const ethereumProxyArtifact = new ContractArtifact<EthereumProxy>(
address: '0x27c60BE17e853c47A9F1d280B05365f483c2dFAF',
creationBlockNumber: 17427737,
},
// FIXME: Temporarily disable this artifact to fix ETH payment detection
// because Matic doesn't support eth_getLogs for many blocks.
// The fix will be to use TheGraph for Ethereum Proxy
// matic: {
// address: '0x27c60BE17e853c47A9F1d280B05365f483c2dFAF',
// creationBlockNumber: 17427737,
// },
celo: {
address: '0x27c60BE17e853c47A9F1d280B05365f483c2dFAF',
creationBlockNumber: 10141029,
},
},
},
},
Expand Down

0 comments on commit f224545

Please sign in to comment.