File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
shared/src/ethlance/shared Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 11(ns ethlance.shared.smart-contracts-prod )
22
3- ; ; FIXME: currently copied from smart-contracts-qa-base.
4- ; ; To be replaced during smart contract deployment to prod environment
53(def smart-contracts
6- {:token {:name " TestToken" :address " 0xEC0eBe108Cb18E2e3E086D95ec0e54186515D28c" }
7- :test-nft {:name " TestNft" :address " 0xba626CF0E8DE6589DCC3366a83A328c2EfF1aB16" }
8- :test-multi-token {:name " TestMultiToken" :address " 0x1427FFB41C054FE0a46Fd815eEa38A25D853c89F" }
9- :ethlance-structs {:name " EthlanceStructs" :address " 0xB7BD1c448b5Bf92C3Bb6Fa67b972fa4a822e9C4D" }
10- :job-helpers {:name " JobHelpers" :address " 0x997A67E6Ca104bbFB441cb852aDC1d9f93a330Ba" }
11- :job {:name " Job" :address " 0xf886242c1A9767189eFc95d9863706dD86698CA8" }
12- :mutable-forwarder {:name " MutableForwarder" :address " 0xB220d6e2f1CCFa96f197bf735368b06B9587a48f" }
13- :ethlance {:name " EthlanceProxy" :address " 0x7118b32BFCB003deB251f4265bfC2783C64696a8" :forwards-to :ethlance-impl }
14- :ethlance-impl {:name " Ethlance" :address " 0x9cDb54eF2e9bC741be383Aed1A9cD63e1537DBFd" }})
4+ {:token {:name " TestToken" :address " 0x9ACEe8196152753A0D533Df23049b5F820da1582" } :test-nft {:name " TestNft" :address " 0x946565dE6f662f15a0EC7C3609692F73Cb818690" } :test-multi-token {:name " TestMultiToken" :address " 0x7Bd7f70D8dE863a0fb66B6d3B637123953e027B2" } :ethlance-structs {:name " EthlanceStructs" :address " 0x4e2C1c915662754cD1c5De6da7452fEf35cCa27d" } :job-helpers {:name " JobHelpers" :address " 0xCb14DdC573D5954df4E98c7120F5D33B88Dc835d" } :job {:name " Job" :address " 0x3c058F797e6e948aCE2dEa30c9F2768BC84D3055" } :mutable-forwarder {:name " MutableForwarder" :address " 0x613362686321Ca5596cd97Dd65fFb15d26974FD5" } :ethlance {:name " EthlanceProxy" :address " 0x84b79AE216130Bb191108D36F86C3AEB166BbAd6" :forwards-to :ethlance-impl } :ethlance-impl {:name " Ethlance" :address " 0x281b0758680D1E8E621Ca27a09b32C3353C83475" }})
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const ETHLANCE_MNEMONIC = process.env.ETHLANCE_MNEMONIC;
44const ETHLANCE_ETH_NODE_ADDRESS = process . env . ETHLANCE_ETH_NODE_ADDRESS ;
55const ETHLANCE_DEPLOYER_ADDRESS = process . env . ETHLANCE_DEPLOYER_ADDRESS
66const ETHLANCE_DEPLOY_SEED = process . env . ETHLANCE_DEPLOY_SEED
7+ const ETHLANCE_INFURA_API_KEY = process . env . ETHLANCE_INFURA_API_KEY || "fc19514210574bf580fbc13f58f65819" ;
78
89const smartContractsPaths = {
910 "dev" : '/shared/src/ethlance/shared/smart_contracts_dev.cljs' ,
@@ -83,6 +84,17 @@ module.exports = {
8384 gasPrice : 20e9 , // 20 gwei, default for ganache
8485 network_id : 84532 ,
8586 from : ETHLANCE_DEPLOYER_ADDRESS
87+ } ,
88+ "production" : {
89+ provider : function ( ) {
90+ return new HDWalletProvider ( { mnemonic : { phrase : ETHLANCE_DEPLOY_SEED } ,
91+ providerOrUrl : `https://base-mainnet.infura.io/v3/${ ETHLANCE_INFURA_API_KEY } ` } ) } ,
92+ gas : 3000000 ,
93+ gasPrice : 0.004 * 1e9 ,
94+ network_id : 8453 ,
95+ from : ETHLANCE_DEPLOYER_ADDRESS ,
96+ timeoutBlocks : 200 ,
97+ confirmations : 2
8698 }
8799 }
88100}
You can’t perform that action at this time.
0 commit comments