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.
Files changed (87) hide show
  1. package/CHANGELOG.md +4 -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 +9 -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 +9 -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 +21 -15
  59. package/lib/filecoin/filecoinInfo.js +5 -7
  60. package/lib/fio/FioEngine.js +25 -17
  61. package/lib/fio/fioInfo.js +8 -6
  62. package/lib/hedera/HederaEngine.js +22 -18
  63. package/lib/hedera/hederaInfo.js +11 -8
  64. package/lib/hedera/hederaTestnetInfo.js +6 -6
  65. package/lib/polkadot/PolkadotEngine.js +15 -9
  66. package/lib/polkadot/info/liberlandInfo.js +3 -2
  67. package/lib/polkadot/info/liberlandTestnetInfo.js +3 -2
  68. package/lib/polkadot/info/polkadotInfo.js +8 -5
  69. package/lib/ripple/RippleEngine.js +53 -75
  70. package/lib/ripple/rippleInfo.js +16 -8
  71. package/lib/solana/SolanaEngine.js +17 -12
  72. package/lib/solana/solanaInfo.js +9 -5
  73. package/lib/stellar/StellarEngine.js +31 -22
  74. package/lib/stellar/stellarInfo.js +16 -7
  75. package/lib/tezos/TezosEngine.js +17 -11
  76. package/lib/tezos/tezosInfo.js +8 -5
  77. package/lib/tron/TronEngine.js +85 -68
  78. package/lib/tron/tronInfo.js +8 -7
  79. package/lib/zcash/ZcashEngine.js +17 -19
  80. package/lib/zcash/piratechainInfo.js +8 -6
  81. package/lib/zcash/zcashInfo.js +7 -6
  82. package/package.json +2 -2
  83. package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
  84. package/android/src/main/assets/edge-currency-accountbased/223.chunk.js +0 -9
  85. package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
  86. package/android/src/main/assets/edge-currency-accountbased/689.chunk.js +0 -8
  87. 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
- defaultSettings: {},
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
- metaTokens: [], // Deprecated
71
-
72
- unsafeBroadcastTx: true
68
+ // Deprecated:
69
+ defaultSettings: {},
70
+ metaTokens: []
73
71
  }; exports.currencyInfo = currencyInfo
74
72
 
75
73
  const filecoin = _innerPlugin.makeOuterPlugin({
@@ -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
- nativeAmount,
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
- otherParams,
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
- nativeAmount,
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
- nativeAmount: _biggystring.sub.call(void 0, `-${quantity}`, `${fee}`),
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
 
@@ -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
- defaultSettings: { ...networkInfo },
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
- unsafeSyncNetwork: true
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
- nativeAmount,
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 { publicAddress, uniqueIdentifier = '' } =
425
- edgeSpendInfo.spendTargets[0]
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(uniqueIdentifier)
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
- nativeAmount: `-${nativeAmount}`,
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
@@ -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
- defaultSettings: {},
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
- // An array of Objects of the possible denominations for this currency
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
- metaTokens: [] // Deprecated
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
- defaultSettings: {},
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
- // An array of Objects of the possible denominations for this currency
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
- metaTokens: [] // Deprecated
38
+
39
+ // Deprecated:
40
+ defaultSettings: {},
41
+ metaTokens: []
42
42
  }
43
43
 
44
44
  const hederatestnet = _innerPlugin.makeOuterPlugin({
@@ -20,6 +20,7 @@ var _rfc4648 = require('rfc4648');
20
20
  var _CurrencyEngine = require('../common/CurrencyEngine');
21
21
 
22
22
  var _tokenHelpers = require('../common/tokenHelpers');
23
+ var _upgradeMemos = require('../common/upgradeMemos');
23
24
 
24
25
 
25
26
 
@@ -189,15 +190,16 @@ const queryTxMutex = _utils.makeMutex.call(void 0, )
189
190
  }
190
191
 
191
192
  const edgeTransaction = {
192
- txid: hash,
193
- date,
194
- currencyCode: this.currencyInfo.currencyCode,
195
193
  blockHeight,
196
- nativeAmount,
194
+ currencyCode: this.currencyInfo.currencyCode,
195
+ date,
197
196
  isSend: nativeAmount.startsWith('-'),
197
+ memos: [],
198
+ nativeAmount,
198
199
  networkFee: fee,
199
200
  ourReceiveAddresses,
200
201
  signedTx: '',
202
+ txid: hash,
201
203
  walletId: this.walletId
202
204
  }
203
205
  this.addTransaction(this.currencyInfo.currencyCode, edgeTransaction)
@@ -320,6 +322,7 @@ const queryTxMutex = _utils.makeMutex.call(void 0, )
320
322
  }
321
323
 
322
324
  async getMaxSpendable(spendInfo) {
325
+ spendInfo = _upgradeMemos.upgradeMemos.call(void 0, spendInfo, this.currencyInfo)
323
326
  if (
324
327
  spendInfo.spendTargets.length === 0 ||
325
328
  spendInfo.spendTargets[0].publicAddress == null
@@ -385,7 +388,9 @@ const queryTxMutex = _utils.makeMutex.call(void 0, )
385
388
  }
386
389
 
387
390
  async makeSpend(edgeSpendInfoIn) {
391
+ edgeSpendInfoIn = _upgradeMemos.upgradeMemos.call(void 0, edgeSpendInfoIn, this.currencyInfo)
388
392
  const { edgeSpendInfo, currencyCode } = this.makeSpendCheck(edgeSpendInfoIn)
393
+ const { memos = [] } = edgeSpendInfo
389
394
 
390
395
  if (edgeSpendInfo.spendTargets.length !== 1) {
391
396
  throw new Error('Error: only one output allowed')
@@ -482,16 +487,17 @@ const queryTxMutex = _utils.makeMutex.call(void 0, )
482
487
  // **********************************
483
488
  // Create the unsigned EdgeTransaction
484
489
  const edgeTransaction = {
485
- txid: '',
486
- date: 0,
487
- currencyCode,
488
490
  blockHeight: 0,
489
- nativeAmount: _biggystring.mul.call(void 0, totalTxAmount, '-1'),
491
+ currencyCode,
492
+ date: 0,
490
493
  isSend: true,
494
+ memos,
495
+ nativeAmount: _biggystring.mul.call(void 0, totalTxAmount, '-1'),
491
496
  networkFee: nativeNetworkFee,
497
+ otherParams,
492
498
  ourReceiveAddresses: [],
493
499
  signedTx: '',
494
- otherParams,
500
+ txid: '',
495
501
  walletId: this.walletId
496
502
  }
497
503
 
@@ -30,6 +30,7 @@ const networkInfo = {
30
30
  pluginId: 'liberland',
31
31
  walletType: 'wallet:liberland',
32
32
 
33
+ // Explorers:
33
34
  addressExplorer: '',
34
35
  transactionExplorer:
35
36
  'https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Fmainnet.liberland.org%%2F#/explorer/query/%s',
@@ -42,9 +43,9 @@ const networkInfo = {
42
43
  }
43
44
  ],
44
45
 
45
- // Deprecated
46
+ // Deprecated:
46
47
  defaultSettings: {},
47
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
48
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
48
49
  }; exports.currencyInfo = currencyInfo
49
50
 
50
51
  const liberland = _innerPlugin.makeOuterPlugin({
@@ -30,6 +30,7 @@ const networkInfo = {
30
30
  pluginId: 'liberlandtestnet',
31
31
  walletType: 'wallet:liberlandtestnet',
32
32
 
33
+ // Explorers:
33
34
  addressExplorer: '',
34
35
  transactionExplorer:
35
36
  'https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Ftestchain.liberland.org%%2F#/explorer/query/%s',
@@ -42,9 +43,9 @@ const networkInfo = {
42
43
  }
43
44
  ],
44
45
 
45
- // Deprecated
46
+ // Deprecated:
46
47
  defaultSettings: {},
47
- metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens) // Deprecated
48
+ metaTokens: _tokenHelpers.makeMetaTokens.call(void 0, builtinTokens)
48
49
  }; exports.currencyInfo = currencyInfo
49
50
 
50
51
  const liberlandtestnet = _innerPlugin.makeOuterPlugin
@@ -13,26 +13,29 @@ const networkInfo = {
13
13
  }
14
14
 
15
15
  const currencyInfo = {
16
- // Basic currency information:
17
16
  currencyCode: 'DOT',
18
17
  displayName: 'Polkadot',
19
18
  pluginId: 'polkadot',
20
19
  walletType: 'wallet:polkadot',
21
20
 
22
- defaultSettings: {},
23
-
21
+ // Explorers:
24
22
  addressExplorer: 'https://polkadot.subscan.io/account/%s',
25
23
  transactionExplorer: 'https://polkadot.subscan.io/extrinsic/%s',
26
24
 
27
25
  denominations: [
28
- // An array of Objects of the possible denominations for this currency
29
26
  {
30
27
  name: 'DOT',
31
28
  multiplier: '10000000000',
32
29
  symbol: ''
33
30
  }
34
31
  ],
35
- metaTokens: [] // Deprecated
32
+
33
+ // No memo support:
34
+ memoOptions: [],
35
+
36
+ // Deprecated:
37
+ defaultSettings: {},
38
+ metaTokens: []
36
39
  }; exports.currencyInfo = currencyInfo
37
40
 
38
41
  const polkadot = _innerPlugin.makeOuterPlugin({