edge-currency-accountbased 2.2.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/android/src/main/assets/edge-currency-accountbased/234.chunk.js +35 -0
  3. package/android/src/main/assets/edge-currency-accountbased/248.chunk.js +35 -0
  4. package/android/src/main/assets/edge-currency-accountbased/336.chunk.js +9 -0
  5. package/android/src/main/assets/edge-currency-accountbased/612.chunk.js +1 -0
  6. package/android/src/main/assets/edge-currency-accountbased/{945.chunk.js → 814.chunk.js} +8 -8
  7. package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +1 -1
  8. package/android/src/main/assets/edge-currency-accountbased/94.chunk.js +8 -0
  9. package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +2 -2
  10. package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +4 -4
  11. package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +10 -10
  12. package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +12 -12
  13. package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +5 -5
  14. package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
  15. package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
  16. package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
  17. package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
  18. package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +5 -5
  19. package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +3 -3
  20. package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +4 -4
  21. package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +3 -3
  22. package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
  23. package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
  24. package/lib/algorand/AlgorandEngine.js +46 -24
  25. package/lib/algorand/algorandInfo.js +8 -7
  26. package/lib/algorand/algorandTestnetInfo.js +8 -7
  27. package/lib/binance/BinanceEngine.js +19 -17
  28. package/lib/binance/binanceInfo.js +10 -7
  29. package/lib/common/types.js +10 -0
  30. package/lib/common/upgradeMemos.js +52 -0
  31. package/lib/common/utf8.js +32 -0
  32. package/lib/common/validateMemos.js +107 -0
  33. package/lib/eos/EosEngine.js +42 -41
  34. package/lib/eos/info/eosCommonInfo.js +10 -0
  35. package/lib/eos/info/eosInfo.js +15 -17
  36. package/lib/eos/info/telosInfo.js +15 -15
  37. package/lib/eos/info/waxInfo.js +15 -16
  38. package/lib/ethereum/EthereumEngine.js +13 -12
  39. package/lib/ethereum/EthereumNetwork.js +16 -14
  40. package/lib/ethereum/info/avalancheInfo.js +17 -7
  41. package/lib/ethereum/info/binancesmartchainInfo.js +9 -7
  42. package/lib/ethereum/info/celoInfo.js +9 -7
  43. package/lib/ethereum/info/ethDevInfo.js +9 -7
  44. package/lib/ethereum/info/ethereumCommonInfo.js +10 -0
  45. package/lib/ethereum/info/ethereumInfo.js +17 -7
  46. package/lib/ethereum/info/ethereumclassicInfo.js +9 -7
  47. package/lib/ethereum/info/ethereumpowInfo.js +9 -7
  48. package/lib/ethereum/info/fantomInfo.js +9 -7
  49. package/lib/ethereum/info/goerliInfo.js +9 -7
  50. package/lib/ethereum/info/kovanInfo.js +9 -7
  51. package/lib/ethereum/info/optimismInfo.js +9 -7
  52. package/lib/ethereum/info/polygonInfo.js +9 -7
  53. package/lib/ethereum/info/pulsechainInfo.js +9 -7
  54. package/lib/ethereum/info/rinkebyInfo.js +9 -7
  55. package/lib/ethereum/info/ropstenInfo.js +9 -7
  56. package/lib/ethereum/info/rskInfo.js +9 -7
  57. package/lib/ethereum/info/zksyncInfo.js +9 -7
  58. package/lib/filecoin/FilecoinEngine.js +125 -87
  59. package/lib/filecoin/Filfox.js +68 -1
  60. package/lib/filecoin/filecoinInfo.js +5 -7
  61. package/lib/fio/FioEngine.js +25 -17
  62. package/lib/fio/fioInfo.js +8 -6
  63. package/lib/hedera/HederaEngine.js +22 -18
  64. package/lib/hedera/hederaInfo.js +11 -8
  65. package/lib/hedera/hederaTestnetInfo.js +6 -6
  66. package/lib/polkadot/PolkadotEngine.js +15 -9
  67. package/lib/polkadot/info/liberlandInfo.js +3 -2
  68. package/lib/polkadot/info/liberlandTestnetInfo.js +3 -2
  69. package/lib/polkadot/info/polkadotInfo.js +8 -5
  70. package/lib/ripple/RippleEngine.js +53 -75
  71. package/lib/ripple/rippleInfo.js +16 -8
  72. package/lib/solana/SolanaEngine.js +17 -12
  73. package/lib/solana/solanaInfo.js +9 -5
  74. package/lib/stellar/StellarEngine.js +31 -22
  75. package/lib/stellar/stellarInfo.js +16 -7
  76. package/lib/tezos/TezosEngine.js +17 -11
  77. package/lib/tezos/tezosInfo.js +8 -5
  78. package/lib/tron/TronEngine.js +85 -68
  79. package/lib/tron/tronInfo.js +8 -7
  80. package/lib/zcash/ZcashEngine.js +23 -23
  81. package/lib/zcash/piratechainInfo.js +8 -6
  82. package/lib/zcash/zcashInfo.js +7 -6
  83. package/package.json +2 -2
  84. package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
  85. package/android/src/main/assets/edge-currency-accountbased/223.chunk.js +0 -9
  86. package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
  87. package/android/src/main/assets/edge-currency-accountbased/689.chunk.js +0 -8
  88. package/android/src/main/assets/edge-currency-accountbased/826.chunk.js +0 -35
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '765de816845861e75a25fca122bb6898b8b1282a': {
@@ -87,28 +88,29 @@ const defaultSettings = {
87
88
  }
88
89
 
89
90
  const currencyInfo = {
90
- // Basic currency information:
91
+ canReplaceByFee: true,
91
92
  currencyCode: 'CELO',
92
93
  displayName: 'Celo',
94
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
93
95
  pluginId: 'celo',
94
96
  walletType: 'wallet:celo',
95
- memoType: 'hex',
96
-
97
- canReplaceByFee: true,
98
- defaultSettings,
99
97
 
98
+ // Explorers:
100
99
  addressExplorer: 'https://explorer.celo.org/address/%s',
101
100
  transactionExplorer: 'https://explorer.celo.org/tx/%s',
102
101
 
103
102
  denominations: [
104
- // An array of Objects of the possible denominations for this currency
105
103
  {
106
104
  name: 'CELO',
107
105
  multiplier: '1000000000000000000',
108
106
  symbol: 'CELO'
109
107
  }
110
108
  ],
111
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
109
+
110
+ // Deprecated:
111
+ defaultSettings,
112
+ memoType: 'hex',
113
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
112
114
  }; exports.currencyInfo = currencyInfo
113
115
 
114
116
  const celo = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  ff795577d9ac8bd7d90ee22b6c1703490b6512fd: {
@@ -130,21 +131,18 @@ const defaultSettings = {
130
131
  }
131
132
 
132
133
  const currencyInfo = {
133
- // Basic currency information:
134
+ canReplaceByFee: true,
134
135
  currencyCode: 'ETH',
135
136
  displayName: 'Dev Ethereum',
137
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
136
138
  pluginId: 'ethDev',
137
139
  walletType: 'wallet:ethDev',
138
- memoType: 'hex',
139
-
140
- canReplaceByFee: true,
141
- defaultSettings,
142
140
 
141
+ // Explorers:
143
142
  addressExplorer: 'https://etherscan.io/address/%s',
144
143
  transactionExplorer: 'https://etherscan.io/tx/%s',
145
144
 
146
145
  denominations: [
147
- // An array of Objects of the possible denominations for this currency
148
146
  {
149
147
  name: 'ETH',
150
148
  multiplier: '1000000000000000000',
@@ -156,7 +154,11 @@ const defaultSettings = {
156
154
  symbol: 'mΞ'
157
155
  }
158
156
  ],
159
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
157
+
158
+ // Deprecated:
159
+ defaultSettings,
160
+ memoType: 'hex',
161
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
160
162
  }; exports.currencyInfo = currencyInfo
161
163
 
162
164
  const ethDev = _innerPlugin.makeOuterPlugin({
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ // We are using the memo to pass Ethereum contract calls:
4
+ const evmMemoOptions = [
5
+ {
6
+ type: 'hex',
7
+ hidden: true,
8
+ memoName: 'data'
9
+ }
10
+ ]; exports.evmMemoOptions = evmMemoOptions
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '111111111117dc0aa78b770fa6a738034120c302': {
@@ -934,6 +935,14 @@ const builtinTokens = {
934
935
  contractAddress: '0x3a4f40631a4f906c2BaD353Ed06De7A5D3fCb430'
935
936
  }
936
937
  },
938
+ e17b8adf8e46b15f3f9ab4bb9e3b6e31db09126e: {
939
+ currencyCode: 'PYUSD',
940
+ displayName: 'PayPal USD',
941
+ denominations: [{ name: 'PYUSD', multiplier: '1000000' }],
942
+ networkLocation: {
943
+ contractAddress: '0xe17b8aDF8E46b15f3F9aB4Bb9E3b6e31Db09126E'
944
+ }
945
+ },
937
946
  '4a220e6096b25eadb88358cb44068a3248254675': {
938
947
  currencyCode: 'QNT',
939
948
  displayName: 'Quant',
@@ -1104,21 +1113,18 @@ const defaultSettings = {
1104
1113
  }
1105
1114
 
1106
1115
  const currencyInfo = {
1107
- // Basic currency information:
1116
+ canReplaceByFee: true,
1108
1117
  currencyCode: 'ETH',
1109
1118
  displayName: 'Ethereum',
1119
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
1110
1120
  pluginId: 'ethereum',
1111
1121
  walletType: 'wallet:ethereum',
1112
- memoType: 'hex',
1113
-
1114
- canReplaceByFee: true,
1115
- defaultSettings,
1116
1122
 
1123
+ // Explorers:
1117
1124
  addressExplorer: 'https://etherscan.io/address/%s',
1118
1125
  transactionExplorer: 'https://etherscan.io/tx/%s',
1119
1126
 
1120
1127
  denominations: [
1121
- // An array of Objects of the possible denominations for this currency
1122
1128
  {
1123
1129
  name: 'ETH',
1124
1130
  multiplier: '1000000000000000000',
@@ -1130,7 +1136,11 @@ const defaultSettings = {
1130
1136
  symbol: 'mΞ'
1131
1137
  }
1132
1138
  ],
1133
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
1139
+
1140
+ // Deprecated:
1141
+ defaultSettings,
1142
+ memoType: 'hex',
1143
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
1134
1144
  }; exports.currencyInfo = currencyInfo
1135
1145
 
1136
1146
  const ethereum = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '2c78f1b70ccf63cdee49f9233e9faa99d43aa07e': {
@@ -97,21 +98,18 @@ const defaultSettings = {
97
98
  }
98
99
 
99
100
  const currencyInfo = {
100
- // Basic currency information:
101
+ canReplaceByFee: true,
101
102
  currencyCode: 'ETC',
102
103
  displayName: 'Ethereum Classic',
104
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
103
105
  pluginId: 'ethereumclassic',
104
106
  walletType: 'wallet:ethereumclassic',
105
- memoType: 'hex',
106
-
107
- canReplaceByFee: true,
108
- defaultSettings,
109
107
 
108
+ // Explorers:
110
109
  addressExplorer: 'https://blockscout.com/etc/mainnet/address/%s',
111
110
  transactionExplorer: 'https://blockscout.com/etc/mainnet/tx/%s',
112
111
 
113
112
  denominations: [
114
- // An array of Objects of the possible denominations for this currency
115
113
  {
116
114
  name: 'ETC',
117
115
  multiplier: '1000000000000000000',
@@ -123,7 +121,11 @@ const defaultSettings = {
123
121
  symbol: 'mΞ'
124
122
  }
125
123
  ],
126
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
124
+
125
+ // Deprecated:
126
+ defaultSettings,
127
+ memoType: 'hex',
128
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
127
129
  }; exports.currencyInfo = currencyInfo
128
130
 
129
131
  const ethereumclassic = _innerPlugin.makeOuterPlugin
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '2ad7868ca212135c6119fd7ad1ce51cfc5702892': {
@@ -78,21 +79,18 @@ const defaultSettings = {
78
79
  }
79
80
 
80
81
  const currencyInfo = {
81
- // Basic currency information:
82
+ canReplaceByFee: true,
82
83
  currencyCode: 'ETHW',
83
84
  displayName: 'EthereumPoW',
85
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
84
86
  pluginId: 'ethereumpow',
85
87
  walletType: 'wallet:ethereumpow',
86
- memoType: 'hex',
87
-
88
- canReplaceByFee: true,
89
- defaultSettings,
90
88
 
89
+ // Explorers:
91
90
  addressExplorer: 'https://www.oklink.com/en/ethw/address/%s',
92
91
  transactionExplorer: 'https://www.oklink.com/en/ethw/tx/%s',
93
92
 
94
93
  denominations: [
95
- // An array of Objects of the possible denominations for this currency
96
94
  {
97
95
  name: 'ETHW',
98
96
  multiplier: '1000000000000000000',
@@ -104,7 +102,11 @@ const defaultSettings = {
104
102
  symbol: 'mΞ'
105
103
  }
106
104
  ],
107
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
105
+
106
+ // Deprecated:
107
+ defaultSettings,
108
+ memoType: 'hex',
109
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
108
110
  }; exports.currencyInfo = currencyInfo
109
111
 
110
112
  const ethereumpow = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '511d35c52a3c244e7b8bd92c0c297755fbd89212': {
@@ -308,28 +309,29 @@ const defaultSettings = {
308
309
  }
309
310
 
310
311
  const currencyInfo = {
311
- // Basic currency information:
312
+ canReplaceByFee: true,
312
313
  currencyCode: 'FTM',
313
314
  displayName: 'Fantom',
315
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
314
316
  pluginId: 'fantom',
315
317
  walletType: 'wallet:fantom',
316
- memoType: 'hex',
317
-
318
- canReplaceByFee: true,
319
- defaultSettings,
320
318
 
319
+ // Explorers:
321
320
  addressExplorer: 'https://ftmscan.com/address/%s',
322
321
  transactionExplorer: 'https://ftmscan.com/tx/%s',
323
322
 
324
323
  denominations: [
325
- // An array of Objects of the possible denominations for this currency
326
324
  {
327
325
  name: 'FTM',
328
326
  multiplier: '1000000000000000000',
329
327
  symbol: 'F'
330
328
  }
331
329
  ],
332
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
330
+
331
+ // Deprecated:
332
+ defaultSettings,
333
+ memoType: 'hex',
334
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
333
335
  }; exports.currencyInfo = currencyInfo
334
336
 
335
337
  const fantom = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {}
9
10
 
@@ -108,21 +109,18 @@ const defaultSettings = {
108
109
  }
109
110
 
110
111
  const currencyInfo = {
111
- // Basic currency information:
112
+ canReplaceByFee: true,
112
113
  currencyCode: 'GOR',
113
114
  displayName: 'Goerli Testnet',
115
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
114
116
  pluginId: 'goerli',
115
117
  walletType: 'wallet:goerli',
116
- memoType: 'hex',
117
-
118
- canReplaceByFee: true,
119
- defaultSettings,
120
118
 
119
+ // Explorers:
121
120
  addressExplorer: 'https://etherscan.io/address/%s',
122
121
  transactionExplorer: 'https://etherscan.io/tx/%s',
123
122
 
124
123
  denominations: [
125
- // An array of Objects of the possible denominations for this currency
126
124
  {
127
125
  name: 'GOR',
128
126
  multiplier: '1000000000000000000',
@@ -134,7 +132,11 @@ const defaultSettings = {
134
132
  symbol: 'mG'
135
133
  }
136
134
  ],
137
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
135
+
136
+ // Deprecated:
137
+ defaultSettings,
138
+ memoType: 'hex',
139
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
138
140
  }; exports.currencyInfo = currencyInfo
139
141
 
140
142
  const goerli = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  b597cd8d3217ea6477232f9217fa70837ff667af: {
@@ -255,21 +256,18 @@ const defaultSettings = {
255
256
  }
256
257
 
257
258
  const currencyInfo = {
258
- // Basic currency information:
259
+ canReplaceByFee: true,
259
260
  currencyCode: 'KOV',
260
261
  displayName: 'Kovan Testnet',
262
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
261
263
  pluginId: 'kovan',
262
264
  walletType: 'wallet:kovan',
263
- memoType: 'hex',
264
-
265
- canReplaceByFee: true,
266
- defaultSettings,
267
265
 
266
+ // Explorers:
268
267
  addressExplorer: 'https://etherscan.io/address/%s',
269
268
  transactionExplorer: 'https://etherscan.io/tx/%s',
270
269
 
271
270
  denominations: [
272
- // An array of Objects of the possible denominations for this currency
273
271
  {
274
272
  name: 'KOV',
275
273
  multiplier: '1000000000000000000',
@@ -281,7 +279,11 @@ const defaultSettings = {
281
279
  symbol: 'mK'
282
280
  }
283
281
  ],
284
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
282
+
283
+ // Deprecated:
284
+ defaultSettings,
285
+ memoType: 'hex',
286
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
285
287
  }; exports.currencyInfo = currencyInfo
286
288
 
287
289
  const kovan = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '4200000000000000000000000000000000000006': {
@@ -181,28 +182,29 @@ const defaultSettings = {
181
182
  }
182
183
 
183
184
  const currencyInfo = {
184
- // Basic currency information:
185
+ canReplaceByFee: true,
185
186
  currencyCode: 'ETH',
186
187
  displayName: 'Optimism',
188
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
187
189
  pluginId: 'optimism',
188
190
  walletType: 'wallet:optimism',
189
- memoType: 'hex',
190
-
191
- canReplaceByFee: true,
192
- defaultSettings,
193
191
 
192
+ // Explorers:
194
193
  addressExplorer: 'https://optimistic.etherscan.io/address/%s',
195
194
  transactionExplorer: 'https://optimistic.etherscan.io/tx/%s',
196
195
 
197
196
  denominations: [
198
- // An array of Objects of the possible denominations for this currency
199
197
  {
200
198
  name: 'ETH',
201
199
  multiplier: '1000000000000000000',
202
200
  symbol: 'Ξ'
203
201
  }
204
202
  ],
205
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
203
+
204
+ // Deprecated:
205
+ defaultSettings,
206
+ memoType: 'hex',
207
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
206
208
  }; exports.currencyInfo = currencyInfo
207
209
 
208
210
  const optimism = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '2791bca1f2de4661ed88a30c99a7a9449aa84174': {
@@ -190,21 +191,18 @@ const defaultSettings = {
190
191
  }
191
192
 
192
193
  const currencyInfo = {
193
- // Basic currency information:
194
+ canReplaceByFee: true,
194
195
  currencyCode: 'MATIC',
195
196
  displayName: 'Polygon',
197
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
196
198
  pluginId: 'polygon', // matching mnemonic here
197
199
  walletType: 'wallet:polygon',
198
- memoType: 'hex',
199
-
200
- canReplaceByFee: true,
201
- defaultSettings,
202
200
 
201
+ // Explorers:
203
202
  addressExplorer: 'https://polygonscan.com/address/%s',
204
203
  transactionExplorer: 'https://polygonscan.com/tx/%s',
205
204
 
206
205
  denominations: [
207
- // An array of Objects of the possible denominations for this currency
208
206
  {
209
207
  name: 'MATIC',
210
208
  multiplier: '1000000000000000000',
@@ -216,7 +214,11 @@ const defaultSettings = {
216
214
  symbol: 'mMATIC'
217
215
  }
218
216
  ],
219
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
217
+
218
+ // Deprecated:
219
+ defaultSettings,
220
+ memoType: 'hex',
221
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
220
222
  }; exports.currencyInfo = currencyInfo
221
223
 
222
224
  const polygon = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  a1077a294dde1b09bb078844df40758a5d0f9a27: {
@@ -75,21 +76,18 @@ const defaultSettings = {
75
76
  }
76
77
 
77
78
  const currencyInfo = {
78
- // Basic currency information:
79
+ canReplaceByFee: true,
79
80
  currencyCode: 'PLS',
80
81
  displayName: 'PulseChain',
82
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
81
83
  pluginId: 'pulsechain',
82
84
  walletType: 'wallet:pulsechain',
83
- memoType: 'hex',
84
-
85
- canReplaceByFee: true,
86
- defaultSettings,
87
85
 
86
+ // Explorers:
88
87
  addressExplorer: 'https://scan.pulsechain.com/address/%s',
89
88
  transactionExplorer: 'https://scan.pulsechain.com/tx/%s',
90
89
 
91
90
  denominations: [
92
- // An array of Objects of the possible denominations for this currency
93
91
  {
94
92
  name: 'PLS',
95
93
  multiplier: '1000000000000000000',
@@ -101,7 +99,11 @@ const defaultSettings = {
101
99
  symbol: 'mPLS'
102
100
  }
103
101
  ],
104
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
102
+
103
+ // Deprecated:
104
+ defaultSettings,
105
+ memoType: 'hex',
106
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
105
107
  }; exports.currencyInfo = currencyInfo
106
108
 
107
109
  const pulsechain = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {}
9
10
 
@@ -108,21 +109,18 @@ const defaultSettings = {
108
109
  }
109
110
 
110
111
  const currencyInfo = {
111
- // Basic currency information:
112
+ canReplaceByFee: true,
112
113
  currencyCode: 'RIN',
113
114
  displayName: 'Rinkeby Testnet',
115
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
114
116
  pluginId: 'rinkeby',
115
117
  walletType: 'wallet:rinkeby',
116
- memoType: 'hex',
117
-
118
- canReplaceByFee: true,
119
- defaultSettings,
120
118
 
119
+ // Explorers:
121
120
  addressExplorer: 'https://etherscan.io/address/%s',
122
121
  transactionExplorer: 'https://etherscan.io/tx/%s',
123
122
 
124
123
  denominations: [
125
- // An array of Objects of the possible denominations for this currency
126
124
  {
127
125
  name: 'RIN',
128
126
  multiplier: '1000000000000000000',
@@ -134,7 +132,11 @@ const defaultSettings = {
134
132
  symbol: 'mΞ'
135
133
  }
136
134
  ],
137
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
135
+
136
+ // Deprecated:
137
+ defaultSettings,
138
+ memoType: 'hex',
139
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
138
140
  }; exports.currencyInfo = currencyInfo
139
141
 
140
142
  const rinkeby = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {}
9
10
 
@@ -111,21 +112,18 @@ const defaultSettings = {
111
112
  }
112
113
 
113
114
  const currencyInfo = {
114
- // Basic currency information:
115
+ canReplaceByFee: true,
115
116
  currencyCode: 'ROP',
116
117
  displayName: 'Ropsten Testnet',
118
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
117
119
  pluginId: 'ropsten',
118
120
  walletType: 'wallet:ropsten',
119
- memoType: 'hex',
120
-
121
- canReplaceByFee: true,
122
- defaultSettings,
123
121
 
122
+ // Explorers:
124
123
  addressExplorer: 'https://etherscan.io/address/%s',
125
124
  transactionExplorer: 'https://etherscan.io/tx/%s',
126
125
 
127
126
  denominations: [
128
- // An array of Objects of the possible denominations for this currency
129
127
  {
130
128
  name: 'ROP',
131
129
  multiplier: '1000000000000000000',
@@ -137,7 +135,11 @@ const defaultSettings = {
137
135
  symbol: 'mR'
138
136
  }
139
137
  ],
140
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
138
+
139
+ // Deprecated:
140
+ defaultSettings,
141
+ memoType: 'hex',
142
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
141
143
  }; exports.currencyInfo = currencyInfo
142
144
 
143
145
  const ropsten = _innerPlugin.makeOuterPlugin({
@@ -4,6 +4,7 @@ var _innerPlugin = require('../../common/innerPlugin');
4
4
  var _tokenHelpers = require('../../common/tokenHelpers');
5
5
 
6
6
 
7
+ var _ethereumCommonInfo = require('./ethereumCommonInfo');
7
8
 
8
9
  const builtinTokens = {
9
10
  '2acc95758f8b5f583470ba265eb685a8f45fc9d5': {
@@ -69,28 +70,29 @@ const defaultSettings = {
69
70
  }
70
71
 
71
72
  const currencyInfo = {
72
- // Basic currency information:
73
+ canReplaceByFee: true,
73
74
  currencyCode: 'RBTC',
74
75
  displayName: 'Rootstock',
76
+ memoOptions: _ethereumCommonInfo.evmMemoOptions,
75
77
  pluginId: 'rsk',
76
78
  walletType: 'wallet:rsk',
77
- memoType: 'hex',
78
-
79
- canReplaceByFee: true,
80
- defaultSettings,
81
79
 
80
+ // Explorers:
82
81
  addressExplorer: 'https://explorer.rsk.co/address/%s',
83
82
  transactionExplorer: 'https://explorer.rsk.co/tx/%s',
84
83
 
85
84
  denominations: [
86
- // An array of Objects of the possible denominations for this currency
87
85
  {
88
86
  name: 'RBTC',
89
87
  multiplier: '1000000000000000000',
90
88
  symbol: 'RBTC'
91
89
  }
92
90
  ],
93
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
91
+
92
+ // Deprecated:
93
+ defaultSettings,
94
+ memoType: 'hex',
95
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
94
96
  }; exports.currencyInfo = currencyInfo
95
97
 
96
98
  const rsk = _innerPlugin.makeOuterPlugin({