Skip to content

Commit

Permalink
update fibos endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mingfunwong authored May 24, 2022
1 parent f4de01d commit d213de8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/utils/blockchain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ function GennerateChain() {
contractEosioToken: 'eosio.token',
},
},
chainType
chainType,
);
chain.chain = EosApi({ httpEndpoint: chain.endpoints[0] });
listObject[chainName] = chain;
listArray.push(chain);
if (!listObject.current) {
setCurrent(chainName);
}
chain.bindPath.map(h => h === path && setCurrent(chainName));
chain.bindPath.map((h) => h === path && setCurrent(chainName));
}

this.setCurrent = setCurrent;
Expand All @@ -67,7 +67,11 @@ chain.setChain('eos', {
netType: 'Mainnet',
symbol: 'EOS',
logo: eosLogo,
endpoints: ['https://eos.greymass.com', 'https://history.cryptolions.io', 'https://eosx-apigw.eosx.io'],
endpoints: [
'https://eos.greymass.com',
'https://history.cryptolions.io',
'https://eosx-apigw.eosx.io',
],
bindPath: ['eos'],
extend: {
coinmarketcapEosUrl: 'https://api.coinmarketcap.com/v2/ticker/1765/',
Expand Down Expand Up @@ -100,7 +104,7 @@ chain.setChain('fibos', {
netType: 'Mainnet',
symbol: 'FO',
logo: fibosLogo,
endpoints: ['https://fo.blockeden.cn'],
endpoints: ['https://to-rpc.fibos.io'],
bindPath: ['fo'],
extend: {
// fibosRocksStatsUrl: 'https://api.see.fo/stats',
Expand Down

0 comments on commit d213de8

Please sign in to comment.