Skip to content

Commit 5489935

Browse files
committed
chore: deploy to polygon and zksync era
1 parent 41fcb01 commit 5489935

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { deployContract } from './utils-zk';
2+
import { erc20FeeProxyArtifact, ethereumFeeProxyArtifact } from '../src/lib';
3+
/**
4+
* Deploys SingleRequestProxyFactory to zkSync network.
5+
* This script is supposed to be run with the deploy-zksync plugin
6+
*/
7+
export default async function () {
8+
console.log('Deploying SingleRequestProxyFactory to zkSync ...');
9+
10+
const ownerAdddress = process.env.ADMIN_WALLET_ADDRESS;
11+
12+
if (!ownerAdddress) {
13+
throw new Error('ADMIN_WALLET_ADDRESS is not set');
14+
}
15+
16+
const ethereumFeeProxy = erc20FeeProxyArtifact.getAddress('zksyncera');
17+
const erc20FeeProxy = ethereumFeeProxyArtifact.getAddress('zksyncera');
18+
19+
await deployContract('SingleRequestProxyFactory', [
20+
ethereumFeeProxy,
21+
erc20FeeProxy,
22+
ownerAdddress,
23+
]);
24+
}

packages/smart-contracts/src/lib/artifacts/SingleRequestProxyFactory/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ export const singleRequestProxyFactoryArtifact = new ContractArtifact<SingleRequ
4545
address: '0x8BE682d918d272DBfF44E1f6669349191667e57a',
4646
creationBlockNumber: 21137922,
4747
},
48+
matic: {
49+
address: '0x69b6Bf6960e987601Ea93eC356A5D129D3d905A9',
50+
creationBlockNumber: 64031880,
51+
},
52+
zksyncera: {
53+
address: '0xB88b69E390a7076d8C4544aAb99248e8c091b981',
54+
creationBlockNumber: 48441349,
55+
},
4856
},
4957
},
5058
},

0 commit comments

Comments
 (0)