diff --git a/packages/smart-contracts/deploy/deploy-zk-single-request-proxy.ts b/packages/smart-contracts/deploy/deploy-zk-single-request-proxy.ts new file mode 100644 index 000000000..e9a9f5096 --- /dev/null +++ b/packages/smart-contracts/deploy/deploy-zk-single-request-proxy.ts @@ -0,0 +1,24 @@ +import { deployContract } from './utils-zk'; +import { erc20FeeProxyArtifact, ethereumFeeProxyArtifact } from '../src/lib'; +/** + * Deploys SingleRequestProxyFactory to zkSync network. + * This script is supposed to be run with the deploy-zksync plugin + */ +export default async function () { + console.log('Deploying SingleRequestProxyFactory to zkSync ...'); + + const ownerAddress = process.env.ADMIN_WALLET_ADDRESS; + + if (!ownerAddress) { + throw new Error('ADMIN_WALLET_ADDRESS is not set'); + } + + const ethereumFeeProxy = ethereumFeeProxyArtifact.getAddress('zksyncera'); + const erc20FeeProxy = erc20FeeProxyArtifact.getAddress('zksyncera'); + + await deployContract('SingleRequestProxyFactory', [ + ethereumFeeProxy, + erc20FeeProxy, + ownerAddress, + ]); +} diff --git a/packages/smart-contracts/hardhat.config.ts b/packages/smart-contracts/hardhat.config.ts index 6d3c6028a..f0e532f60 100644 --- a/packages/smart-contracts/hardhat.config.ts +++ b/packages/smart-contracts/hardhat.config.ts @@ -242,6 +242,7 @@ export default { auroraTestnet: 'api-key', mantle: 'api-key', 'mantle-testnet': 'api-key', + celo: process.env.CELOSCAN_API_KEY, }, customChains: [ { @@ -276,6 +277,14 @@ export default { browserURL: 'https://scan.coredao.org/', }, }, + { + network: 'celo', + chainId: 42220, + urls: { + apiURL: 'https://api.celoscan.io/api', + browserURL: 'https://celoscan.io/', + }, + }, ], }, tenderly: { diff --git a/packages/smart-contracts/src/lib/artifacts/SingleRequestProxyFactory/index.ts b/packages/smart-contracts/src/lib/artifacts/SingleRequestProxyFactory/index.ts index 6eed98ac9..148266364 100644 --- a/packages/smart-contracts/src/lib/artifacts/SingleRequestProxyFactory/index.ts +++ b/packages/smart-contracts/src/lib/artifacts/SingleRequestProxyFactory/index.ts @@ -17,6 +17,50 @@ export const singleRequestProxyFactoryArtifact = new ContractArtifact