File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
src/lib/artifacts/SingleRequestProxyFactory Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ export const singleRequestProxyFactoryArtifact = new ContractArtifact<SingleRequ
45
45
address : '0x8BE682d918d272DBfF44E1f6669349191667e57a' ,
46
46
creationBlockNumber : 21137922 ,
47
47
} ,
48
+ matic : {
49
+ address : '0x69b6Bf6960e987601Ea93eC356A5D129D3d905A9' ,
50
+ creationBlockNumber : 64031880 ,
51
+ } ,
52
+ zksyncera : {
53
+ address : '0xB88b69E390a7076d8C4544aAb99248e8c091b981' ,
54
+ creationBlockNumber : 48441349 ,
55
+ } ,
48
56
} ,
49
57
} ,
50
58
} ,
You can’t perform that action at this time.
0 commit comments