Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
chore: deploy SRP to zksyncera
  • Loading branch information
aimensahnoun committed Nov 8, 2024
commit 8ced522c0ed713c98ba10f398e85ddfbbd8f87cc
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,
]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export const singleRequestProxyFactoryArtifact = new ContractArtifact<SingleRequ
address: '0xf8cACE7EE4c03Eb4f225434B0709527938D365b4',
creationBlockNumber: 7038199,
},
zksyncera: {
address: '0xC52F0f36b4f0Cdf55D4349640C32929c5E85Ab1a',
creationBlockNumber: 48467338,
},
},
},
},
Expand Down