edge-currency-accountbased 2.2.4 → 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.
- package/CHANGELOG.md +4 -0
- package/android/src/main/assets/edge-currency-accountbased/234.chunk.js +35 -0
- package/android/src/main/assets/edge-currency-accountbased/248.chunk.js +35 -0
- package/android/src/main/assets/edge-currency-accountbased/336.chunk.js +9 -0
- package/android/src/main/assets/edge-currency-accountbased/612.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{945.chunk.js → 814.chunk.js} +8 -8
- package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/94.chunk.js +8 -0
- package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +4 -4
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +10 -10
- package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +12 -12
- package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +5 -5
- package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +5 -5
- package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +4 -4
- package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
- package/lib/algorand/AlgorandEngine.js +46 -24
- package/lib/algorand/algorandInfo.js +8 -7
- package/lib/algorand/algorandTestnetInfo.js +8 -7
- package/lib/binance/BinanceEngine.js +19 -17
- package/lib/binance/binanceInfo.js +10 -7
- package/lib/common/types.js +10 -0
- package/lib/common/upgradeMemos.js +52 -0
- package/lib/common/utf8.js +32 -0
- package/lib/common/validateMemos.js +107 -0
- package/lib/eos/EosEngine.js +42 -41
- package/lib/eos/info/eosCommonInfo.js +10 -0
- package/lib/eos/info/eosInfo.js +15 -17
- package/lib/eos/info/telosInfo.js +15 -15
- package/lib/eos/info/waxInfo.js +15 -16
- package/lib/ethereum/EthereumEngine.js +13 -12
- package/lib/ethereum/EthereumNetwork.js +16 -14
- package/lib/ethereum/info/avalancheInfo.js +9 -7
- package/lib/ethereum/info/binancesmartchainInfo.js +9 -7
- package/lib/ethereum/info/celoInfo.js +9 -7
- package/lib/ethereum/info/ethDevInfo.js +9 -7
- package/lib/ethereum/info/ethereumCommonInfo.js +10 -0
- package/lib/ethereum/info/ethereumInfo.js +9 -7
- package/lib/ethereum/info/ethereumclassicInfo.js +9 -7
- package/lib/ethereum/info/ethereumpowInfo.js +9 -7
- package/lib/ethereum/info/fantomInfo.js +9 -7
- package/lib/ethereum/info/goerliInfo.js +9 -7
- package/lib/ethereum/info/kovanInfo.js +9 -7
- package/lib/ethereum/info/optimismInfo.js +9 -7
- package/lib/ethereum/info/polygonInfo.js +9 -7
- package/lib/ethereum/info/pulsechainInfo.js +9 -7
- package/lib/ethereum/info/rinkebyInfo.js +9 -7
- package/lib/ethereum/info/ropstenInfo.js +9 -7
- package/lib/ethereum/info/rskInfo.js +9 -7
- package/lib/ethereum/info/zksyncInfo.js +9 -7
- package/lib/filecoin/FilecoinEngine.js +21 -15
- package/lib/filecoin/filecoinInfo.js +5 -7
- package/lib/fio/FioEngine.js +25 -17
- package/lib/fio/fioInfo.js +8 -6
- package/lib/hedera/HederaEngine.js +22 -18
- package/lib/hedera/hederaInfo.js +11 -8
- package/lib/hedera/hederaTestnetInfo.js +6 -6
- package/lib/polkadot/PolkadotEngine.js +15 -9
- package/lib/polkadot/info/liberlandInfo.js +3 -2
- package/lib/polkadot/info/liberlandTestnetInfo.js +3 -2
- package/lib/polkadot/info/polkadotInfo.js +8 -5
- package/lib/ripple/RippleEngine.js +53 -75
- package/lib/ripple/rippleInfo.js +16 -8
- package/lib/solana/SolanaEngine.js +17 -12
- package/lib/solana/solanaInfo.js +9 -5
- package/lib/stellar/StellarEngine.js +31 -22
- package/lib/stellar/stellarInfo.js +16 -7
- package/lib/tezos/TezosEngine.js +17 -11
- package/lib/tezos/tezosInfo.js +8 -5
- package/lib/tron/TronEngine.js +85 -68
- package/lib/tron/tronInfo.js +8 -7
- package/lib/zcash/ZcashEngine.js +17 -19
- package/lib/zcash/piratechainInfo.js +8 -6
- package/lib/zcash/zcashInfo.js +7 -6
- package/package.json +2 -2
- package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
- package/android/src/main/assets/edge-currency-accountbased/223.chunk.js +0 -9
- package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/689.chunk.js +0 -8
- 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
|
'111111111117dc0aa78b770fa6a738034120c302': {
|
|
@@ -1112,21 +1113,18 @@ const defaultSettings = {
|
|
|
1112
1113
|
}
|
|
1113
1114
|
|
|
1114
1115
|
const currencyInfo = {
|
|
1115
|
-
|
|
1116
|
+
canReplaceByFee: true,
|
|
1116
1117
|
currencyCode: 'ETH',
|
|
1117
1118
|
displayName: 'Ethereum',
|
|
1119
|
+
memoOptions: _ethereumCommonInfo.evmMemoOptions,
|
|
1118
1120
|
pluginId: 'ethereum',
|
|
1119
1121
|
walletType: 'wallet:ethereum',
|
|
1120
|
-
memoType: 'hex',
|
|
1121
|
-
|
|
1122
|
-
canReplaceByFee: true,
|
|
1123
|
-
defaultSettings,
|
|
1124
1122
|
|
|
1123
|
+
// Explorers:
|
|
1125
1124
|
addressExplorer: 'https://etherscan.io/address/%s',
|
|
1126
1125
|
transactionExplorer: 'https://etherscan.io/tx/%s',
|
|
1127
1126
|
|
|
1128
1127
|
denominations: [
|
|
1129
|
-
// An array of Objects of the possible denominations for this currency
|
|
1130
1128
|
{
|
|
1131
1129
|
name: 'ETH',
|
|
1132
1130
|
multiplier: '1000000000000000000',
|
|
@@ -1138,7 +1136,11 @@ const defaultSettings = {
|
|
|
1138
1136
|
symbol: 'mΞ'
|
|
1139
1137
|
}
|
|
1140
1138
|
],
|
|
1141
|
-
|
|
1139
|
+
|
|
1140
|
+
// Deprecated:
|
|
1141
|
+
defaultSettings,
|
|
1142
|
+
memoType: 'hex',
|
|
1143
|
+
metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
|
|
1142
1144
|
}; exports.currencyInfo = currencyInfo
|
|
1143
1145
|
|
|
1144
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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({
|
|
@@ -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
|
'3355df6d4c9c3035724fd0e3914de96a5a83aaf4': {
|
|
@@ -74,28 +75,29 @@ const defaultSettings = {
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
const currencyInfo = {
|
|
77
|
-
|
|
78
|
+
canReplaceByFee: true,
|
|
78
79
|
currencyCode: 'ETH',
|
|
79
80
|
displayName: 'zkSync',
|
|
81
|
+
memoOptions: _ethereumCommonInfo.evmMemoOptions,
|
|
80
82
|
pluginId: 'zksync',
|
|
81
83
|
walletType: 'wallet:zksync',
|
|
82
|
-
memoType: 'hex',
|
|
83
|
-
|
|
84
|
-
canReplaceByFee: true,
|
|
85
|
-
defaultSettings,
|
|
86
84
|
|
|
85
|
+
// Explorers:
|
|
87
86
|
addressExplorer: 'https://explorer.zksync.io/address/%s',
|
|
88
87
|
transactionExplorer: 'https://explorer.zksync.io/tx/%s',
|
|
89
88
|
|
|
90
89
|
denominations: [
|
|
91
|
-
// An array of Objects of the possible denominations for this currency
|
|
92
90
|
{
|
|
93
91
|
name: 'ETH',
|
|
94
92
|
multiplier: '1000000000000000000',
|
|
95
93
|
symbol: 'Ξ'
|
|
96
94
|
}
|
|
97
95
|
],
|
|
98
|
-
|
|
96
|
+
|
|
97
|
+
// Deprecated:
|
|
98
|
+
defaultSettings,
|
|
99
|
+
memoType: 'hex',
|
|
100
|
+
metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
|
|
99
101
|
}; exports.currencyInfo = currencyInfo
|
|
100
102
|
|
|
101
103
|
const zksync = _innerPlugin.makeOuterPlugin({
|
|
@@ -23,6 +23,7 @@ var _types = require('edge-core-js/types');
|
|
|
23
23
|
|
|
24
24
|
var _CurrencyEngine = require('../common/CurrencyEngine');
|
|
25
25
|
|
|
26
|
+
var _upgradeMemos = require('../common/upgradeMemos');
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
@@ -161,7 +162,9 @@ const CHECK_TRANSACTION_INTERVAL = 15000
|
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
async makeSpend(edgeSpendInfoIn) {
|
|
165
|
+
edgeSpendInfoIn = _upgradeMemos.upgradeMemos.call(void 0, edgeSpendInfoIn, this.currencyInfo)
|
|
164
166
|
const { edgeSpendInfo, currencyCode } = this.makeSpendCheck(edgeSpendInfoIn)
|
|
167
|
+
const { memos = [] } = edgeSpendInfo
|
|
165
168
|
const spendTarget = edgeSpendInfo.spendTargets[0]
|
|
166
169
|
const { publicAddress, nativeAmount } = spendTarget
|
|
167
170
|
|
|
@@ -192,16 +195,17 @@ const CHECK_TRANSACTION_INTERVAL = 15000
|
|
|
192
195
|
const txNativeAmount = _biggystring.mul.call(void 0, _biggystring.add.call(void 0, nativeAmount, networkFee), '-1')
|
|
193
196
|
|
|
194
197
|
const edgeTransaction = {
|
|
195
|
-
txid: '',
|
|
196
|
-
date: 0,
|
|
197
|
-
currencyCode,
|
|
198
198
|
blockHeight: 0,
|
|
199
|
-
|
|
199
|
+
currencyCode,
|
|
200
|
+
date: 0,
|
|
200
201
|
isSend: true,
|
|
202
|
+
memos,
|
|
203
|
+
nativeAmount: txNativeAmount,
|
|
201
204
|
networkFee,
|
|
202
|
-
ourReceiveAddresses: [],
|
|
203
205
|
otherParams,
|
|
206
|
+
ourReceiveAddresses: [],
|
|
204
207
|
signedTx: '',
|
|
208
|
+
txid: '',
|
|
205
209
|
walletId: this.walletId
|
|
206
210
|
}
|
|
207
211
|
|
|
@@ -473,16 +477,17 @@ const CHECK_TRANSACTION_INTERVAL = 15000
|
|
|
473
477
|
}
|
|
474
478
|
|
|
475
479
|
const edgeTransaction = {
|
|
476
|
-
txid: messageDetails.cid,
|
|
477
|
-
date: messageDetails.timestamp,
|
|
478
|
-
currencyCode: this.currencyInfo.currencyCode,
|
|
479
480
|
blockHeight: messageDetails.height,
|
|
480
|
-
|
|
481
|
+
currencyCode: this.currencyInfo.currencyCode,
|
|
482
|
+
date: messageDetails.timestamp,
|
|
481
483
|
isSend: nativeAmount.startsWith('-'),
|
|
484
|
+
memos: [],
|
|
485
|
+
nativeAmount,
|
|
482
486
|
networkFee,
|
|
487
|
+
otherParams: {},
|
|
483
488
|
ourReceiveAddresses, // blank if you sent money otherwise array of addresses that are yours in this transaction
|
|
484
489
|
signedTx: '',
|
|
485
|
-
|
|
490
|
+
txid: messageDetails.cid,
|
|
486
491
|
walletId: this.walletId
|
|
487
492
|
}
|
|
488
493
|
|
|
@@ -509,16 +514,17 @@ const CHECK_TRANSACTION_INTERVAL = 15000
|
|
|
509
514
|
}
|
|
510
515
|
|
|
511
516
|
const edgeTransaction = {
|
|
512
|
-
txid: message.cid,
|
|
513
|
-
date: message.block_time,
|
|
514
|
-
currencyCode: this.currencyInfo.currencyCode,
|
|
515
517
|
blockHeight: message.height,
|
|
516
|
-
|
|
518
|
+
currencyCode: this.currencyInfo.currencyCode,
|
|
519
|
+
date: message.block_time,
|
|
517
520
|
isSend: nativeAmount.startsWith('-'),
|
|
521
|
+
memos: [],
|
|
522
|
+
nativeAmount,
|
|
518
523
|
networkFee,
|
|
524
|
+
otherParams: {},
|
|
519
525
|
ourReceiveAddresses, // blank if you sent money otherwise array of addresses that are yours in this transaction
|
|
520
526
|
signedTx: '',
|
|
521
|
-
|
|
527
|
+
txid: message.cid,
|
|
522
528
|
walletId: this.walletId
|
|
523
529
|
}
|
|
524
530
|
|