增加正式链相关地址信息
This commit is contained in:
parent
676e1176de
commit
ceb8cca8dc
53
src/config/cfg_42161_release.js
Normal file
53
src/config/cfg_42161_release.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
module.exports = {
|
||||||
|
tokens: [
|
||||||
|
{
|
||||||
|
type: 'eth',
|
||||||
|
address: 'eth',
|
||||||
|
symbol: 'ETH',
|
||||||
|
decimal: 18,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'erc20',
|
||||||
|
address: '0x741482aE1480E552735E44Ff3A733448AcBbeD8d',
|
||||||
|
symbol: 'CEG',
|
||||||
|
decimal: 18,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
address: '0x79fc2a4216A1e595DBD09D13c4B4bD3B095d5bb2',
|
||||||
|
name: 'hero',
|
||||||
|
type: 'erc721',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
address: '0x551838d7754157D13e7D945b8a37bBD6Ad50dDC7',
|
||||||
|
name: 'chip',
|
||||||
|
type: 'erc721',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
address: '0xD728de3d9ebeD90E84aBe84539280cbC5b18E304',
|
||||||
|
name: 'genesis',
|
||||||
|
type: 'erc721',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
address: '0x3F13F83E6363D97d0353cAAfACA08B05D9BF3637',
|
||||||
|
name: 'gacha',
|
||||||
|
type: 'erc721',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
contracts: {
|
||||||
|
minterFactory: '0x24499444b2BE6A8E3F800D47E4Ed0c36B5c0747e',
|
||||||
|
nftmarket: '0xA683c7BC5f3c73782fce9fc614Fda7C999934db8',
|
||||||
|
nftmall: '0xb5EF2FAC11c385041f847E34E0b1B4740436f769',
|
||||||
|
gamemarket: '0x6232d2B720C22D6BCB633560b05002C472a64f18',
|
||||||
|
gamemall: '0x1Ee01D949C848aF1ceDb80165b290554937819d9',
|
||||||
|
},
|
||||||
|
gasInfo: {
|
||||||
|
nftApprove: 49340,
|
||||||
|
cecApprove: 46962,
|
||||||
|
marketSellNFT: 270740,
|
||||||
|
marketCancelOrder: 119027,
|
||||||
|
marketUpdatePrice: 41272,
|
||||||
|
marketBuy: 207735,
|
||||||
|
gameMallBuy: 119416,
|
||||||
|
gameMarketBuy: 133251,
|
||||||
|
},
|
||||||
|
};
|
@ -1,10 +1,9 @@
|
|||||||
export const WALLET_STORAGE_KEY_NAME = 'jc_wallet_data';
|
export const WALLET_STORAGE_KEY_NAME = 'jc_wallet_data';
|
||||||
|
|
||||||
// export const WALLET_API_HOST = "https://wallet.cebggame.com";
|
|
||||||
// export const WALLET_API_HOST = 'http://192.168.100.183:3007';
|
// export const WALLET_API_HOST = 'http://192.168.100.183:3007';
|
||||||
// export const PAY_API_HOST = 'http://192.168.100.183:3007';
|
// export const PAY_API_HOST = 'http://192.168.100.183:3007';
|
||||||
export const WALLET_API_HOST = 'https://pay.cebggame.com';
|
export const WALLET_API_HOST = 'https://wallet.cebggame.com';
|
||||||
export const PAY_API_HOST = 'https://pay.cebggame.com/v1';
|
export const PAY_API_HOST = 'https://pay.cebggame.com/v2';
|
||||||
|
|
||||||
export const MAX_TRY_COUNT = 6;
|
export const MAX_TRY_COUNT = 6;
|
||||||
|
|
||||||
|
@ -282,6 +282,22 @@ export const AllChains = [
|
|||||||
symbol: 'ONE',
|
symbol: 'ONE',
|
||||||
explorerurl: 'https://explorer.harmony.one',
|
explorerurl: 'https://explorer.harmony.one',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'zkSync Era Mainnet',
|
||||||
|
type: 'Mainnet',
|
||||||
|
rpc: 'https://mainnet.era.zksync.io',
|
||||||
|
id: 324,
|
||||||
|
symbol: 'ETH',
|
||||||
|
explorerurl: 'https://explorer.zksync.io',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'zkSync Era Testnet',
|
||||||
|
type: 'Testnet',
|
||||||
|
rpc: 'https://testnet.era.zksync.dev',
|
||||||
|
id: 280,
|
||||||
|
symbol: 'ETH',
|
||||||
|
explorerurl: 'https://goerli.explorer.zksync.io',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Local Testnet',
|
name: 'Local Testnet',
|
||||||
type: 'Local',
|
type: 'Local',
|
||||||
|
@ -275,7 +275,7 @@ export class JCStandard {
|
|||||||
await tokenInstance.methods.approve(addressMarket, price).send({ gas: gasApprove, gasPrice });
|
await tokenInstance.methods.approve(addressMarket, price).send({ gas: gasApprove, gasPrice });
|
||||||
}
|
}
|
||||||
if (!gas) {
|
if (!gas) {
|
||||||
gas = await contract.methods.buy(orderId).estimateGas();
|
gas = await contract.methods.buy(orderId, price).estimateGas();
|
||||||
}
|
}
|
||||||
gas = (gas * GAS_BOOST) | 1;
|
gas = (gas * GAS_BOOST) | 1;
|
||||||
// begin of increase allowance
|
// begin of increase allowance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user