mirror of
https://github.com/RabbyHub/Rabby.git
synced 2026-01-11 21:37:57 -05:00
* wip * wip * wip: ts update * wip * wip * feat: testnet asset list * wip: sendToken * feat: send token * fix: submit * fix * select chain * fix: chain * fix: chain * feat: update rabby-api * fix: signTypedData * chore: fix some bugs * feat: sync mainnet * feat: fix sign * feat: signTypedData * feat: i18n * chore: fix some bugs * chore: fix some bugs * fix: merge * chore: fix tips * chore: remove console * fix: testnet openapi * chore: fix some bugs * chore: fix some bugs * feat: update rabby-api * chore: fix some bugs * fix: scan link * fix: sync mainnet list * feat: lock * fix: gas * fix: tooltip * feat: alarm sync chain * fix: sync chain * fix: sync mainnet chain list * feat: update rabby-api * fix: sign * chore: fix some bugs * fix: findChain * feat: debug * fix: findChain * chore: i18n * feat: update page-provider * feat: hide custom rpc for testnet * feat: + changelog * fix: custom rpc --------- Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
25 lines
540 B
JavaScript
25 lines
540 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const child_process = require('child_process');
|
|
const targetPath = path.join(
|
|
__dirname,
|
|
'../src/constant/default-support-chains.json'
|
|
);
|
|
|
|
const res = child_process.execSync(
|
|
'curl -s https://static.debank.com/supported_chains.json'
|
|
);
|
|
let supported_chains_list = [];
|
|
try {
|
|
supported_chains_list = JSON.parse(res);
|
|
} catch (err) {
|
|
console.error('parse remote chain data failed:', err);
|
|
}
|
|
|
|
fs.writeFileSync(targetPath, res);
|
|
|
|
console.info('finished.');
|