mirror of
https://github.com/linuxserver/nano-wallet.git
synced 2026-02-20 06:17:26 +08:00
use forked nanocurrency
This commit is contained in:
parent
71c02e22e6
commit
5faac118f6
26
package-lock.json
generated
26
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "LSIO-Nano-Wallet",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -1131,6 +1131,16 @@
|
||||
"integrity": "sha512-9GvTek+7cVw7r+L7TNGOG1astZJWXz2h5q4BqMXl28KN+24iSCm1xo+RhZOZvwdT3bzNe9hD7riJc/lBoO7mgg==",
|
||||
"dev": true
|
||||
},
|
||||
"@thelamer/nanocurrency": {
|
||||
"version": "2.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@thelamer/nanocurrency/-/nanocurrency-2.5.0.tgz",
|
||||
"integrity": "sha512-OuJAAy0LHzBtgppKD5T/VP5DDSJQw8U9fqwMbO1UcRIyEiWZJ1Uowr/gV7UO//DOdPwJgmfXxL5x3mHfhu/7Sg==",
|
||||
"requires": {
|
||||
"bignumber.js": "^9.0.0",
|
||||
"blakejs": "^1.1.0",
|
||||
"typescript": "^3.9.7"
|
||||
}
|
||||
},
|
||||
"@types/color-name": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
||||
@ -7437,15 +7447,6 @@
|
||||
"integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==",
|
||||
"dev": true
|
||||
},
|
||||
"nanocurrency": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/nanocurrency/-/nanocurrency-2.4.0.tgz",
|
||||
"integrity": "sha512-mmPvHcc6Rwds5YcQpCYdSkotOzqVJwn8JKQjAfkngDustRdWkmc7XCOn8NktI/8njjQWwgatDYgj9GAycfCNqQ==",
|
||||
"requires": {
|
||||
"bignumber.js": "^9.0.0",
|
||||
"blakejs": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"nanomatch": {
|
||||
"version": "1.2.13",
|
||||
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
|
||||
@ -11334,6 +11335,11 @@
|
||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
||||
"dev": true
|
||||
},
|
||||
"typescript": {
|
||||
"version": "3.9.7",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz",
|
||||
"integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw=="
|
||||
},
|
||||
"uglify-js": {
|
||||
"version": "3.4.10",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz",
|
||||
|
||||
@ -8,10 +8,10 @@
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@thelamer/nanocurrency": "^2.5.0",
|
||||
"bignumber.js": "^9.0.0",
|
||||
"core-js": "^3.6.4",
|
||||
"jsqr": "^1.3.1",
|
||||
"nanocurrency": "^2.4.0",
|
||||
"numbro": "^2.3.0",
|
||||
"qr-code-styling": "^1.0.1",
|
||||
"qrcode": "^1.4.4",
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import simplebar from 'simplebar-vue'
|
||||
import 'simplebar/dist/simplebar.min.css'
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import BigNumber from 'bignumber.js'
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const NanoCurrency = require('nanocurrency')
|
||||
const NanoCurrency = require('@thelamer/nanocurrency')
|
||||
// When the parent theard requires it, render the HTML
|
||||
self.addEventListener("message", async (message) => {
|
||||
// console.log(message)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
var numbro = require('numbro')
|
||||
var NanoCurrency = require('nanocurrency')
|
||||
var NanoCurrency = require('@thelamer/nanocurrency')
|
||||
import Vue from 'vue'
|
||||
import vueCountryRegionSelect from 'vue-country-region-select'
|
||||
Vue.use(vueCountryRegionSelect)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import router from '@/router'
|
||||
|
||||
function protocol() {
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
import BlockState from '@/components/BlockState.vue'
|
||||
import Transaction from '@/components/Transaction.vue'
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import simplebar from 'simplebar-vue';
|
||||
import 'simplebar/dist/simplebar.min.css';
|
||||
|
||||
|
||||
@ -159,7 +159,7 @@ import Settings from '@/views/Settings.vue'
|
||||
import BlockState from '@/components/BlockState.vue'
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import * as webglpow from '../mixins/webgl-pow.js'
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import Worker from 'worker-loader!./../mixins/pow.js'
|
||||
import simplebar from 'simplebar-vue';
|
||||
import 'simplebar/dist/simplebar.min.css';
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
<script>
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import QrBlock from '../components/QrBlock'
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import BigNumber from 'bignumber.js'
|
||||
|
||||
export default {
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
|
||||
<script>
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import BigNumber from 'bignumber.js'
|
||||
import ScanQr from '../components/ScanQr.vue'
|
||||
import ScanNfc from '../components/ScanNfc.vue'
|
||||
@ -305,7 +305,7 @@ export default {
|
||||
this.product = checkoutyaml.product
|
||||
this.amount = checkoutyaml.price.toString()
|
||||
this.destination = checkoutyaml.destination
|
||||
this.checkoutheader = 'This will send ' + checkoutyaml.price + ' Nano to ' + checkoutyaml.destination.substring(0, 11) + '...' + checkoutyaml.destination.slice(checkoutyaml.destination.length - 6) + ' for ' + checkoutyaml.product + ', please save your receipt from this order it will help you verify your order if something goes wrong'
|
||||
this.checkoutheader = 'This will send ' + checkoutyaml.price + ' ' + ( this.net == 'banano' ? 'Banano' : 'Nano' ) + ' to ' + checkoutyaml.destination.substring(0, 11) + '...' + checkoutyaml.destination.slice(checkoutyaml.destination.length - 6) + ' for ' + checkoutyaml.product + ', please save your receipt from this order it will help you verify your order if something goes wrong'
|
||||
this.form = checkoutyaml
|
||||
} else {
|
||||
this.$notify({
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as NanoCurrency from 'nanocurrency'
|
||||
import * as NanoCurrency from '@thelamer/nanocurrency'
|
||||
import { serverMixin } from '../mixins/serverMixin.js'
|
||||
import ScanQr from '../components/ScanQr.vue'
|
||||
import ScanNfc from '../components/ScanNfc.vue'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user