Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Single Request Proxy deployment to mainnets #1486

Merged
merged 4 commits into from
Nov 11, 2024
Merged
Changes from 2 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 ownerAdddress = process.env.ADMIN_WALLET_ADDRESS;

if (!ownerAdddress) {
throw new Error('ADMIN_WALLET_ADDRESS is not set');
}

const ethereumFeeProxy = erc20FeeProxyArtifact.getAddress('zksyncera');
const erc20FeeProxy = ethereumFeeProxyArtifact.getAddress('zksyncera');

await deployContract('SingleRequestProxyFactory', [
ethereumFeeProxy,
erc20FeeProxy,
ownerAdddress,
]);
}
9 changes: 9 additions & 0 deletions packages/smart-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -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: {
Original file line number Diff line number Diff line change
@@ -17,6 +17,50 @@ export const singleRequestProxyFactoryArtifact = new ContractArtifact<SingleRequ
address: '0xf8cACE7EE4c03Eb4f225434B0709527938D365b4',
creationBlockNumber: 7038199,
},
zksyncera: {
address: '0xC52F0f36b4f0Cdf55D4349640C32929c5E85Ab1a',
creationBlockNumber: 48467338,
},
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,
},
},
},
},