1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

add fee levels to appConfig.json

This commit is contained in:
Szymon Lesisz 2018-12-28 15:58:09 +01:00
parent d83f3c1b28
commit 2639aab093
2 changed files with 47 additions and 2 deletions

View File

@ -52,6 +52,18 @@
"defaultGasLimit": 21000,
"defaultGasLimitTokens": 200000,
"decimals": 18,
"fee": {
"defaultFee": "64",
"minFee": "10",
"maxFee": "10000",
"defaultGasLimit": "21000",
"defaultGasLimitTokens": "200000",
"levels": [
{ "name": "High", "value": "96", "multiplier": 1.5 },
{ "name": "Normal", "value": "64", "multiplier": 1, "recommended": true },
{ "name": "Low", "value": "48", "multiplier": 0.75 }
]
},
"tokens": "./data/ropstenTokens.json",
"web3": [
"wss://ropsten1.trezor.io/geth"
@ -68,6 +80,14 @@
"shortcut": "xrp",
"bip44": "m/44'/144'/a'/0/0",
"decimals": 6,
"fee": {
"defaultFee": "12",
"minFee": "10",
"maxFee": "10000",
"levels": [
{"name": "Normal", "value": "12", "recommended": true }
]
},
"explorer": {
"tx": "https://xrpcharts.ripple.com/#/transactions/",
"address": "https://xrpcharts.ripple.com/#/graph/"
@ -81,6 +101,15 @@
"shortcut": "txrp",
"bip44": "m/44'/144'/a'/0/0",
"decimals": 6,
"fee": {
"defaultFee": "12",
"minFee": "10",
"maxFee": "10000",
"levels": [
{"name": "High", "value": "20" },
{"name": "Normal", "value": "10", "recommended": true }
]
},
"explorer": {
"tx": "https://sisyfos.trezor.io/ripple-testnet-explorer/tx/",
"address": "https://sisyfos.trezor.io/ripple-testnet-explorer/address/"

View File

@ -5,6 +5,14 @@ import * as STORAGE from 'actions/constants/localStorage';
import type { Action } from 'flowtype';
type NetworkFeeLevel = {
name: string,
value: string, // ETH: gasPrice in gwei, XRP: fee in drops, BTC: sat/b
multiplier: number, // ETH specific
blocks: number, // BTC specific
recommended: boolean,
};
export type Network = {
type: string;
name: string;
@ -15,13 +23,21 @@ export type Network = {
defaultGasLimit: number;
defaultGasLimitTokens: number;
defaultGasPrice: number;
chainId: number;
chainId: number; // ETH specific
explorer: {
tx: string;
address: string;
};
tokens: string;
decimals: number,
decimals: number;
fee: {
defaultFee: string;
minFee: string;
maxFee: string;
defaultGasLimit: string; // ETH specific
defaultGasLimitTokens: string; // ETH specific
levels: Array<NetworkFeeLevel>;
},
backends: Array<{
name: string;
urls: Array<string>;