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:
parent
d83f3c1b28
commit
2639aab093
@ -52,6 +52,18 @@
|
|||||||
"defaultGasLimit": 21000,
|
"defaultGasLimit": 21000,
|
||||||
"defaultGasLimitTokens": 200000,
|
"defaultGasLimitTokens": 200000,
|
||||||
"decimals": 18,
|
"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",
|
"tokens": "./data/ropstenTokens.json",
|
||||||
"web3": [
|
"web3": [
|
||||||
"wss://ropsten1.trezor.io/geth"
|
"wss://ropsten1.trezor.io/geth"
|
||||||
@ -68,6 +80,14 @@
|
|||||||
"shortcut": "xrp",
|
"shortcut": "xrp",
|
||||||
"bip44": "m/44'/144'/a'/0/0",
|
"bip44": "m/44'/144'/a'/0/0",
|
||||||
"decimals": 6,
|
"decimals": 6,
|
||||||
|
"fee": {
|
||||||
|
"defaultFee": "12",
|
||||||
|
"minFee": "10",
|
||||||
|
"maxFee": "10000",
|
||||||
|
"levels": [
|
||||||
|
{"name": "Normal", "value": "12", "recommended": true }
|
||||||
|
]
|
||||||
|
},
|
||||||
"explorer": {
|
"explorer": {
|
||||||
"tx": "https://xrpcharts.ripple.com/#/transactions/",
|
"tx": "https://xrpcharts.ripple.com/#/transactions/",
|
||||||
"address": "https://xrpcharts.ripple.com/#/graph/"
|
"address": "https://xrpcharts.ripple.com/#/graph/"
|
||||||
@ -81,6 +101,15 @@
|
|||||||
"shortcut": "txrp",
|
"shortcut": "txrp",
|
||||||
"bip44": "m/44'/144'/a'/0/0",
|
"bip44": "m/44'/144'/a'/0/0",
|
||||||
"decimals": 6,
|
"decimals": 6,
|
||||||
|
"fee": {
|
||||||
|
"defaultFee": "12",
|
||||||
|
"minFee": "10",
|
||||||
|
"maxFee": "10000",
|
||||||
|
"levels": [
|
||||||
|
{"name": "High", "value": "20" },
|
||||||
|
{"name": "Normal", "value": "10", "recommended": true }
|
||||||
|
]
|
||||||
|
},
|
||||||
"explorer": {
|
"explorer": {
|
||||||
"tx": "https://sisyfos.trezor.io/ripple-testnet-explorer/tx/",
|
"tx": "https://sisyfos.trezor.io/ripple-testnet-explorer/tx/",
|
||||||
"address": "https://sisyfos.trezor.io/ripple-testnet-explorer/address/"
|
"address": "https://sisyfos.trezor.io/ripple-testnet-explorer/address/"
|
||||||
|
@ -5,6 +5,14 @@ import * as STORAGE from 'actions/constants/localStorage';
|
|||||||
|
|
||||||
import type { Action } from 'flowtype';
|
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 = {
|
export type Network = {
|
||||||
type: string;
|
type: string;
|
||||||
name: string;
|
name: string;
|
||||||
@ -15,13 +23,21 @@ export type Network = {
|
|||||||
defaultGasLimit: number;
|
defaultGasLimit: number;
|
||||||
defaultGasLimitTokens: number;
|
defaultGasLimitTokens: number;
|
||||||
defaultGasPrice: number;
|
defaultGasPrice: number;
|
||||||
chainId: number;
|
chainId: number; // ETH specific
|
||||||
explorer: {
|
explorer: {
|
||||||
tx: string;
|
tx: string;
|
||||||
address: string;
|
address: string;
|
||||||
};
|
};
|
||||||
tokens: 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<{
|
backends: Array<{
|
||||||
name: string;
|
name: string;
|
||||||
urls: Array<string>;
|
urls: Array<string>;
|
||||||
|
Loading…
Reference in New Issue
Block a user