edge-currency-accountbased 2.2.4 → 2.4.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 +11 -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/504.chunk.js +2 -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 +11 -9
- 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/index.js +1 -1
- package/lib/piratechain/PiratechainEngine.js +469 -0
- package/lib/piratechain/PiratechainTools.js +239 -0
- package/lib/{zcash → piratechain}/piratechainInfo.js +13 -9
- package/lib/piratechain/piratechainTypes.js +177 -0
- 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/react-native.js +93 -69
- 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 +86 -48
- package/lib/zcash/ZcashTools.js +10 -34
- package/lib/zcash/zcashInfo.js +8 -7
- package/lib/zcash/zcashTypes.js +2 -13
- package/package.json +4 -6
- 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
|
@@ -16,20 +16,18 @@ const networkInfo = {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const currencyInfo = {
|
|
19
|
-
// Basic currency information:
|
|
20
19
|
currencyCode: 'FIL',
|
|
21
20
|
displayName: 'Filecoin',
|
|
22
21
|
pluginId: 'filecoin',
|
|
23
22
|
requiredConfirmations: 900,
|
|
23
|
+
unsafeBroadcastTx: true,
|
|
24
24
|
walletType: 'wallet:filecoin',
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
// Explorers:
|
|
28
27
|
addressExplorer: 'https://filscan.io/en/address/%s',
|
|
29
28
|
transactionExplorer: 'https://filscan.io/en/message/%s',
|
|
30
29
|
|
|
31
30
|
denominations: [
|
|
32
|
-
// An array of Objects of the possible denominations for this currency
|
|
33
31
|
{
|
|
34
32
|
name: 'FIL',
|
|
35
33
|
multiplier: '1000000000000000000',
|
|
@@ -67,9 +65,9 @@ const networkInfo = {
|
|
|
67
65
|
}
|
|
68
66
|
],
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
// Deprecated:
|
|
69
|
+
defaultSettings: {},
|
|
70
|
+
metaTokens: []
|
|
73
71
|
}; exports.currencyInfo = currencyInfo
|
|
74
72
|
|
|
75
73
|
const filecoin = _innerPlugin.makeOuterPlugin({
|
package/lib/fio/FioEngine.js
CHANGED
|
@@ -26,6 +26,7 @@ var _types = require('edge-core-js/types');
|
|
|
26
26
|
|
|
27
27
|
var _CurrencyEngine = require('../common/CurrencyEngine');
|
|
28
28
|
|
|
29
|
+
var _upgradeMemos = require('../common/upgradeMemos');
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
@@ -483,16 +484,17 @@ const SYNC_NETWORK_INTERVAL = 10000
|
|
|
483
484
|
otherParams.meta.isTransferProcessed = true
|
|
484
485
|
|
|
485
486
|
const edgeTransaction = {
|
|
486
|
-
txid: action.action_trace.trx_id,
|
|
487
|
-
date: this.getUTCDate(action.block_time) / 1000,
|
|
488
|
-
currencyCode,
|
|
489
487
|
blockHeight: action.block_num > 0 ? action.block_num : 0,
|
|
490
|
-
|
|
488
|
+
currencyCode,
|
|
489
|
+
date: this.getUTCDate(action.block_time) / 1000,
|
|
491
490
|
isSend: nativeAmount.startsWith('-'),
|
|
491
|
+
memos: [],
|
|
492
|
+
nativeAmount,
|
|
492
493
|
networkFee,
|
|
494
|
+
otherParams,
|
|
493
495
|
ourReceiveAddresses,
|
|
494
496
|
signedTx: '',
|
|
495
|
-
|
|
497
|
+
txid: action.action_trace.trx_id,
|
|
496
498
|
walletId: this.walletId
|
|
497
499
|
}
|
|
498
500
|
this.addTransaction(currencyCode, edgeTransaction)
|
|
@@ -570,16 +572,17 @@ const SYNC_NETWORK_INTERVAL = 10000
|
|
|
570
572
|
|
|
571
573
|
otherParams.meta.isFeeProcessed = true
|
|
572
574
|
const edgeTransaction = {
|
|
573
|
-
txid: action.action_trace.trx_id,
|
|
574
|
-
date: this.getUTCDate(action.block_time) / 1000,
|
|
575
|
-
currencyCode,
|
|
576
575
|
blockHeight: action.block_num > 0 ? action.block_num : 0,
|
|
577
|
-
|
|
576
|
+
currencyCode,
|
|
577
|
+
date: this.getUTCDate(action.block_time) / 1000,
|
|
578
578
|
isSend: nativeAmount.startsWith('-'),
|
|
579
|
+
memos: [],
|
|
580
|
+
nativeAmount,
|
|
579
581
|
networkFee,
|
|
580
|
-
signedTx: '',
|
|
581
|
-
ourReceiveAddresses: [],
|
|
582
582
|
otherParams,
|
|
583
|
+
ourReceiveAddresses: [],
|
|
584
|
+
signedTx: '',
|
|
585
|
+
txid: action.action_trace.trx_id,
|
|
583
586
|
walletId: this.walletId
|
|
584
587
|
}
|
|
585
588
|
this.addTransaction(currencyCode, edgeTransaction)
|
|
@@ -1376,6 +1379,7 @@ const SYNC_NETWORK_INTERVAL = 10000
|
|
|
1376
1379
|
}
|
|
1377
1380
|
|
|
1378
1381
|
async getMaxSpendable(spendInfo) {
|
|
1382
|
+
spendInfo = _upgradeMemos.upgradeMemos.call(void 0, spendInfo, this.currencyInfo)
|
|
1379
1383
|
const balance = this.getBalance({
|
|
1380
1384
|
currencyCode: spendInfo.currencyCode
|
|
1381
1385
|
})
|
|
@@ -1397,8 +1401,11 @@ const SYNC_NETWORK_INTERVAL = 10000
|
|
|
1397
1401
|
}
|
|
1398
1402
|
|
|
1399
1403
|
async makeSpend(edgeSpendInfoIn) {
|
|
1404
|
+
edgeSpendInfoIn = _upgradeMemos.upgradeMemos.call(void 0, edgeSpendInfoIn, this.currencyInfo)
|
|
1400
1405
|
const { edgeSpendInfo, nativeBalance, currencyCode } =
|
|
1401
1406
|
this.makeSpendCheck(edgeSpendInfoIn)
|
|
1407
|
+
const { memos = [] } = edgeSpendInfo
|
|
1408
|
+
|
|
1402
1409
|
const lockedBalance =
|
|
1403
1410
|
_nullishCoalesce(this.walletLocalData.totalBalances[
|
|
1404
1411
|
this.networkInfo.balanceCurrencyCodes.locked
|
|
@@ -1678,19 +1685,20 @@ const SYNC_NETWORK_INTERVAL = 10000
|
|
|
1678
1685
|
}
|
|
1679
1686
|
|
|
1680
1687
|
const edgeTransaction = {
|
|
1681
|
-
txid: '',
|
|
1682
|
-
date: 0,
|
|
1683
|
-
currencyCode,
|
|
1684
1688
|
blockHeight: 0,
|
|
1685
|
-
|
|
1689
|
+
currencyCode,
|
|
1690
|
+
date: 0,
|
|
1686
1691
|
isSend: true,
|
|
1692
|
+
memos,
|
|
1693
|
+
nativeAmount: _biggystring.sub.call(void 0, `-${quantity}`, `${fee}`),
|
|
1687
1694
|
networkFee: `${fee}`,
|
|
1688
|
-
ourReceiveAddresses: [],
|
|
1689
|
-
signedTx: '',
|
|
1690
1695
|
otherParams: {
|
|
1691
1696
|
...otherParams,
|
|
1692
1697
|
txParams
|
|
1693
1698
|
},
|
|
1699
|
+
ourReceiveAddresses: [],
|
|
1700
|
+
signedTx: '',
|
|
1701
|
+
txid: '',
|
|
1694
1702
|
walletId: this.walletId
|
|
1695
1703
|
}
|
|
1696
1704
|
|
package/lib/fio/fioInfo.js
CHANGED
|
@@ -48,28 +48,30 @@ const networkInfo = {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
const currencyInfo = {
|
|
51
|
-
// Basic currency information:
|
|
52
51
|
currencyCode: 'FIO',
|
|
53
52
|
displayName: 'FIO',
|
|
54
53
|
pluginId: 'fio',
|
|
54
|
+
unsafeSyncNetwork: true,
|
|
55
55
|
walletType: 'wallet:fio',
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
// Explorers:
|
|
59
58
|
addressExplorer: 'https://fio.bloks.io/key/%s',
|
|
60
59
|
transactionExplorer: 'https://fio.bloks.io/transaction/%s',
|
|
61
60
|
|
|
62
61
|
denominations: [
|
|
63
|
-
// An array of Objects of the possible denominations for this currency
|
|
64
62
|
{
|
|
65
63
|
name: 'FIO',
|
|
66
64
|
multiplier: '1000000000',
|
|
67
65
|
symbol: 'ᵮ'
|
|
68
66
|
}
|
|
69
67
|
],
|
|
70
|
-
metaTokens: [], // Deprecated
|
|
71
68
|
|
|
72
|
-
|
|
69
|
+
// No memo support:
|
|
70
|
+
memoOptions: [],
|
|
71
|
+
|
|
72
|
+
// Deprecated:
|
|
73
|
+
defaultSettings: { ...networkInfo },
|
|
74
|
+
metaTokens: []
|
|
73
75
|
}; exports.currencyInfo = currencyInfo
|
|
74
76
|
|
|
75
77
|
const fio = _innerPlugin.makeOuterPlugin({
|
|
@@ -16,6 +16,7 @@ var _rfc4648 = require('rfc4648');
|
|
|
16
16
|
|
|
17
17
|
var _CurrencyEngine = require('../common/CurrencyEngine');
|
|
18
18
|
|
|
19
|
+
var _upgradeMemos = require('../common/upgradeMemos');
|
|
19
20
|
var _utils = require('../common/utils');
|
|
20
21
|
|
|
21
22
|
|
|
@@ -365,18 +366,19 @@ var _hederaTypes = require('./hederaTypes');
|
|
|
365
366
|
if (_biggystring.gt.call(void 0, nativeAmount, '0')) ourReceiveAddresses.push(accountIdStr)
|
|
366
367
|
|
|
367
368
|
txs.push({
|
|
368
|
-
txid: hashToTxid(_rfc4648.base64.parse(tx.transaction_hash)),
|
|
369
|
-
date: parseInt(tx.valid_start_timestamp),
|
|
370
|
-
currencyCode: this.currencyInfo.currencyCode, // currencyCode
|
|
371
369
|
blockHeight: 1, // blockHeight
|
|
372
|
-
|
|
370
|
+
currencyCode: this.currencyInfo.currencyCode, // currencyCode
|
|
371
|
+
date: parseInt(tx.valid_start_timestamp),
|
|
373
372
|
isSend: nativeAmount.startsWith('-'),
|
|
373
|
+
memos: [],
|
|
374
|
+
nativeAmount,
|
|
374
375
|
networkFee: tx.charged_tx_fee.toString(), // networkFee
|
|
375
|
-
ourReceiveAddresses, // ourReceiveAddresses
|
|
376
|
-
signedTx: '', // signedTx
|
|
377
376
|
otherParams: {
|
|
378
377
|
consensusAt: tx.consensus_timestamp
|
|
379
378
|
},
|
|
379
|
+
ourReceiveAddresses, // ourReceiveAddresses
|
|
380
|
+
signedTx: '', // signedTx
|
|
381
|
+
txid: hashToTxid(_rfc4648.base64.parse(tx.transaction_hash)),
|
|
380
382
|
walletId: this.walletId
|
|
381
383
|
})
|
|
382
384
|
}
|
|
@@ -411,18 +413,19 @@ var _hederaTypes = require('./hederaTypes');
|
|
|
411
413
|
}
|
|
412
414
|
|
|
413
415
|
async makeSpend(edgeSpendInfoIn) {
|
|
416
|
+
edgeSpendInfoIn = _upgradeMemos.upgradeMemos.call(void 0, edgeSpendInfoIn, this.currencyInfo)
|
|
417
|
+
const { edgeSpendInfo, currencyCode } = this.makeSpendCheck(edgeSpendInfoIn)
|
|
418
|
+
const { memos = [] } = edgeSpendInfo
|
|
419
|
+
|
|
414
420
|
if (this.otherData.hederaAccount == null) {
|
|
415
421
|
throw Error('ErrorAccountNotActivated')
|
|
416
422
|
}
|
|
417
|
-
|
|
418
|
-
const { edgeSpendInfo, currencyCode } = this.makeSpendCheck(edgeSpendInfoIn)
|
|
419
|
-
|
|
420
423
|
if (edgeSpendInfo.spendTargets.length !== 1) {
|
|
421
424
|
throw new Error('Error: only one output allowed')
|
|
422
425
|
}
|
|
423
426
|
|
|
424
|
-
const
|
|
425
|
-
|
|
427
|
+
const memo = _optionalChain([memos, 'access', _2 => _2[0], 'optionalAccess', _3 => _3.type]) === 'text' ? memos[0].value : ''
|
|
428
|
+
const { publicAddress } = edgeSpendInfo.spendTargets[0]
|
|
426
429
|
let { nativeAmount } = edgeSpendInfo.spendTargets[0]
|
|
427
430
|
|
|
428
431
|
if (publicAddress == null)
|
|
@@ -455,25 +458,26 @@ var _hederaTypes = require('./hederaTypes');
|
|
|
455
458
|
.addHbarTransfer(this.otherData.hederaAccount, hbar.negated())
|
|
456
459
|
.addHbarTransfer(publicAddress, hbar)
|
|
457
460
|
.setMaxTransactionFee(txnFee)
|
|
458
|
-
.setTransactionMemo(
|
|
461
|
+
.setTransactionMemo(memo)
|
|
459
462
|
.build(this.client)
|
|
460
463
|
|
|
461
464
|
const edgeTransaction = {
|
|
462
|
-
txid: '',
|
|
463
|
-
date: 0,
|
|
464
|
-
currencyCode, // currencyCode
|
|
465
465
|
blockHeight: 0, // blockHeight
|
|
466
|
-
|
|
466
|
+
currencyCode, // currencyCode
|
|
467
|
+
date: 0,
|
|
467
468
|
isSend: true,
|
|
469
|
+
memos,
|
|
470
|
+
nativeAmount: `-${nativeAmount}`,
|
|
468
471
|
// UI shows the fee subtracted from the sent amount which doesn't make sense here
|
|
469
472
|
networkFee, // networkFee
|
|
470
|
-
ourReceiveAddresses: [], // ourReceiveAddresses
|
|
471
|
-
signedTx: '', // signedTx
|
|
472
473
|
otherParams: {
|
|
473
474
|
fromAddress: this.walletLocalData.publicKey,
|
|
474
475
|
toAddress: publicAddress,
|
|
475
476
|
transferTx: _rfc4648.base64.stringify(transferTx.toBytes())
|
|
476
477
|
},
|
|
478
|
+
ourReceiveAddresses: [], // ourReceiveAddresses
|
|
479
|
+
signedTx: '', // signedTx
|
|
480
|
+
txid: '',
|
|
477
481
|
walletId: this.walletId
|
|
478
482
|
}
|
|
479
483
|
return edgeTransaction
|
package/lib/hedera/hederaInfo.js
CHANGED
|
@@ -14,22 +14,17 @@ const networkInfo = {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const currencyInfo = {
|
|
17
|
-
// Basic currency information:
|
|
18
17
|
currencyCode: 'HBAR',
|
|
19
18
|
displayName: 'Hedera',
|
|
20
19
|
pluginId: 'hedera',
|
|
21
20
|
walletType: 'wallet:hedera',
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
memoMaxLength: 100,
|
|
26
|
-
|
|
22
|
+
// Explorers:
|
|
27
23
|
addressExplorer: 'https://hashscan.io/mainnet/account/%s',
|
|
28
24
|
transactionExplorer: 'https://hashscan.io/mainnet/transaction/%s',
|
|
29
25
|
|
|
30
26
|
denominations: [
|
|
31
|
-
//
|
|
32
|
-
// other denominations are specified but these are the most common
|
|
27
|
+
// Other denominations are specified but these are the most common:
|
|
33
28
|
{
|
|
34
29
|
name: 'HBAR',
|
|
35
30
|
multiplier: '100000000', // 100,000,000
|
|
@@ -41,7 +36,15 @@ const currencyInfo = {
|
|
|
41
36
|
symbol: 'tℏ'
|
|
42
37
|
}
|
|
43
38
|
],
|
|
44
|
-
|
|
39
|
+
|
|
40
|
+
// https://docs.hedera.com/hedera/sdks-and-apis/sdks/transactions/modify-transaction-fields
|
|
41
|
+
memoOptions: [{ type: 'text', memoName: 'memo', maxLength: 100 }],
|
|
42
|
+
|
|
43
|
+
// Deprecated:
|
|
44
|
+
defaultSettings: {},
|
|
45
|
+
memoMaxLength: 100,
|
|
46
|
+
memoType: 'text',
|
|
47
|
+
metaTokens: []
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
const hedera = _innerPlugin.makeOuterPlugin({
|
|
@@ -13,20 +13,17 @@ const networkInfo = {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
const currencyInfo = {
|
|
16
|
-
// Basic currency information:
|
|
17
16
|
currencyCode: 'THBAR',
|
|
18
17
|
displayName: 'Hedera Testnet',
|
|
19
18
|
pluginId: 'hederatestnet',
|
|
20
19
|
walletType: 'wallet:hederatestnet',
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
// Explorers:
|
|
24
22
|
addressExplorer: `https://explorer.kabuto.sh/testnet/id/%s`,
|
|
25
23
|
transactionExplorer: `https://explorer.kabuto.sh/testnet/transaction/%s`,
|
|
26
24
|
|
|
27
25
|
denominations: [
|
|
28
|
-
//
|
|
29
|
-
// other denominations are specified but these are the most common
|
|
26
|
+
// Other denominations are specified but these are the most common:
|
|
30
27
|
{
|
|
31
28
|
name: 'THBAR',
|
|
32
29
|
multiplier: '100000000', // 100,000,000
|
|
@@ -38,7 +35,10 @@ const currencyInfo = {
|
|
|
38
35
|
symbol: 'tℏ'
|
|
39
36
|
}
|
|
40
37
|
],
|
|
41
|
-
|
|
38
|
+
|
|
39
|
+
// Deprecated:
|
|
40
|
+
defaultSettings: {},
|
|
41
|
+
metaTokens: []
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
const hederatestnet = _innerPlugin.makeOuterPlugin({
|
package/lib/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var _ethereumInfos = require('./ethereum/ethereumInfos');
|
|
|
7
7
|
var _filecoinInfo = require('./filecoin/filecoinInfo');
|
|
8
8
|
var _fioInfo = require('./fio/fioInfo');
|
|
9
9
|
var _hederaInfo = require('./hedera/hederaInfo');
|
|
10
|
+
var _piratechainInfo = require('./piratechain/piratechainInfo');
|
|
10
11
|
var _liberlandInfo = require('./polkadot/info/liberlandInfo');
|
|
11
12
|
var _liberlandTestnetInfo = require('./polkadot/info/liberlandTestnetInfo');
|
|
12
13
|
var _polkadotInfo = require('./polkadot/info/polkadotInfo');
|
|
@@ -15,7 +16,6 @@ var _solanaInfo = require('./solana/solanaInfo');
|
|
|
15
16
|
var _stellarInfo = require('./stellar/stellarInfo');
|
|
16
17
|
var _tezosInfo = require('./tezos/tezosInfo');
|
|
17
18
|
var _tronInfo = require('./tron/tronInfo');
|
|
18
|
-
var _piratechainInfo = require('./zcash/piratechainInfo');
|
|
19
19
|
var _zcashInfo = require('./zcash/zcashInfo');
|
|
20
20
|
|
|
21
21
|
const plugins = {
|