Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions packages/smart-contracts/deploy/deploy-zk-single-request-proxy.ts
Original file line number Diff line number Diff line change
@@ -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,
]);
}
9 changes: 9 additions & 0 deletions packages/smart-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default {
auroraTestnet: 'api-key',
mantle: 'api-key',
'mantle-testnet': 'api-key',
celo: process.env.CELOSCAN_API_KEY,
},
customChains: [
{
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,50 @@ export const singleRequestProxyFactoryArtifact = new ContractArtifact<SingleRequ
address: '0xf8cACE7EE4c03Eb4f225434B0709527938D365b4',
creationBlockNumber: 7038199,
},
zksyncera: {
address: '0x9Fd503e723e5EfcCde3183632b443fFF49E68715',
creationBlockNumber: 48690095,
},
base: {
address: '0xAdc0001eA67Ab36D5321612c6b500572704fFF20',
creationBlockNumber: 22154500,
},
matic: {
address: '0x4D417AA04DBb207201a794E5B7381B3cde815281',
creationBlockNumber: 64048143,
},
avalanche: {
address: '0x4D417AA04DBb207201a794E5B7381B3cde815281',
creationBlockNumber: 52824404,
},
optimism: {
address: '0xf8cACE7EE4c03Eb4f225434B0709527938D365b4',
creationBlockNumber: 127750366,
},
'arbitrum-one': {
address: '0x4D417AA04DBb207201a794E5B7381B3cde815281',
creationBlockNumber: 272440350,
},
xdai: {
address: '0x4D417AA04DBb207201a794E5B7381B3cde815281',
creationBlockNumber: 36924272,
},
bsc: {
address: '0x4D417AA04DBb207201a794E5B7381B3cde815281',
creationBlockNumber: 43839939,
},
celo: {
address: '0x8d996a0591a0F9eB65301592C88303e07Ec481db',
creationBlockNumber: 28685655,
},
mantle: {
address: '0xf8cACE7EE4c03Eb4f225434B0709527938D365b4',
creationBlockNumber: 71485828,
},
mainnet: {
address: '0xD5933C74414ce80D9d7082cc89FBAdcfF4751fAF',
creationBlockNumber: 21145968,
},
},
},
},
Expand Down