mainnet-js 3.0.0-next.8 → 3.0.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 (74) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/{mainnet-3.0.0-next.8.js → mainnet-3.0.0.js} +12 -12
  3. package/dist/module/cache/IndexedDbCache.d.ts +2 -0
  4. package/dist/module/cache/IndexedDbCache.d.ts.map +1 -1
  5. package/dist/module/cache/IndexedDbCache.js +37 -0
  6. package/dist/module/cache/IndexedDbCache.js.map +1 -1
  7. package/dist/module/cache/MemoryCache.d.ts +4 -1
  8. package/dist/module/cache/MemoryCache.d.ts.map +1 -1
  9. package/dist/module/cache/MemoryCache.js +12 -0
  10. package/dist/module/cache/MemoryCache.js.map +1 -1
  11. package/dist/module/cache/WebStorageCache.d.ts +2 -0
  12. package/dist/module/cache/WebStorageCache.d.ts.map +1 -1
  13. package/dist/module/cache/WebStorageCache.js +12 -0
  14. package/dist/module/cache/WebStorageCache.js.map +1 -1
  15. package/dist/module/cache/interface.d.ts +2 -0
  16. package/dist/module/cache/interface.d.ts.map +1 -1
  17. package/dist/module/cache/walletCache.d.ts +2 -1
  18. package/dist/module/cache/walletCache.d.ts.map +1 -1
  19. package/dist/module/cache/walletCache.js +12 -11
  20. package/dist/module/cache/walletCache.js.map +1 -1
  21. package/dist/module/history/getHistory.d.ts.map +1 -1
  22. package/dist/module/history/getHistory.js +105 -46
  23. package/dist/module/history/getHistory.js.map +1 -1
  24. package/dist/module/interface.d.ts +0 -1
  25. package/dist/module/interface.d.ts.map +1 -1
  26. package/dist/module/interface.js.map +1 -1
  27. package/dist/module/network/ElectrumNetworkProvider.d.ts +2 -0
  28. package/dist/module/network/ElectrumNetworkProvider.d.ts.map +1 -1
  29. package/dist/module/network/ElectrumNetworkProvider.js +78 -0
  30. package/dist/module/network/ElectrumNetworkProvider.js.map +1 -1
  31. package/dist/module/network/NetworkProvider.d.ts +12 -0
  32. package/dist/module/network/NetworkProvider.d.ts.map +1 -1
  33. package/dist/module/network/constant.d.ts.map +1 -1
  34. package/dist/module/network/constant.js +1 -1
  35. package/dist/module/network/constant.js.map +1 -1
  36. package/dist/module/transaction/Wif.d.ts.map +1 -1
  37. package/dist/module/transaction/Wif.js +111 -57
  38. package/dist/module/transaction/Wif.js.map +1 -1
  39. package/dist/module/util/checkUtxos.d.ts +1 -1
  40. package/dist/module/util/checkUtxos.d.ts.map +1 -1
  41. package/dist/module/util/checkUtxos.js +18 -6
  42. package/dist/module/util/checkUtxos.js.map +1 -1
  43. package/dist/module/wallet/Base.d.ts +10 -0
  44. package/dist/module/wallet/Base.d.ts.map +1 -1
  45. package/dist/module/wallet/Base.js +29 -5
  46. package/dist/module/wallet/Base.js.map +1 -1
  47. package/dist/module/wallet/HDWallet.d.ts.map +1 -1
  48. package/dist/module/wallet/HDWallet.js +11 -1
  49. package/dist/module/wallet/HDWallet.js.map +1 -1
  50. package/dist/module/wallet/Wif.js +2 -2
  51. package/dist/module/wallet/Wif.js.map +1 -1
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +1 -1
  54. package/src/cache/IndexedDbCache.ts +45 -0
  55. package/src/cache/MemoryCache.ts +15 -1
  56. package/src/cache/WebStorageCache.ts +14 -0
  57. package/src/cache/interface.ts +2 -0
  58. package/src/cache/walletCache.ts +12 -15
  59. package/src/history/getHistory.ts +133 -91
  60. package/src/interface.ts +0 -1
  61. package/src/network/ElectrumNetworkProvider.ts +101 -0
  62. package/src/network/NetworkProvider.ts +14 -0
  63. package/src/network/constant.ts +1 -1
  64. package/src/transaction/Wif.ts +123 -75
  65. package/src/util/checkUtxos.ts +19 -16
  66. package/src/wallet/Base.ts +32 -6
  67. package/src/wallet/HDWallet.ts +12 -6
  68. package/src/wallet/Wif.bip39.test.ts +1 -1
  69. package/src/wallet/Wif.ts +2 -2
  70. package/dist/module/cache/KeyValueCache.d.ts +0 -9
  71. package/dist/module/cache/KeyValueCache.d.ts.map +0 -1
  72. package/dist/module/cache/KeyValueCache.js +0 -3
  73. package/dist/module/cache/KeyValueCache.js.map +0 -1
  74. package/src/cache/KeyValueCache.ts +0 -9
package/dist/index.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>The Empty Mainnet App</title>
6
- <meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="mainnet-3.0.0-next.8.js"></script></head>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="mainnet-3.0.0.js"></script></head>
7
7
  <body><script>document.addEventListener("DOMContentLoaded", async (event) => Object.assign(globalThis, await __mainnetPromise))</script>
8
8
  </body>
9
9
  </html>