+
+ Last Quote
+
-
-
-
-
-
Be supportive
- Magnam provident veritatis odit. Vitae eligendi repellat non. Eum fugit impedit veritatis ducimus. Non qui aspernatur laudantium modi. Praesentium rerum error deserunt harum.
-
+
+
+ {{oracle.quote}}
+
+
+
+
+
+
+
+ Precision
+
+
+
+ {{oracle.decimals}} decimals
+
+
+
+
+
-
-
Take responsibility
-
Sit minus expedita quam in ullam molestiae dignissimos in harum. Tenetur dolorem iure. Non nesciunt dolorem veniam necessitatibus laboriosam voluptas perspiciatis error.
+
+
+
+
+ NEXA / BTC
+
-
-
Enjoy downtime
-
Ipsa in earum deserunt aut. Quos minus aut animi et soluta. Ipsum dicta ut quia eius. Possimus reprehenderit iste aspernatur ut est velit consequatur distinctio.
+
+
+
Last invoice
+ January 22, 2023
+
+
+
+
Amount
+
+ $14,000.00
+ Paid
+
+
+
+
+
+
+
+
+
+ NEXA / BCH
+
-
-
+
+
+
+
Last invoice
+ January 23, 2023
+
+
+
+
Amount
+
+ $7,600.00
+ Paid
+
+
+
+
+
diff --git a/oracles/stores/profile.ts b/oracles/stores/profile.ts
deleted file mode 100644
index 0055931..0000000
--- a/oracles/stores/profile.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Import modules. */
-import { defineStore } from 'pinia'
-
-/**
- * Profile Store
- */
-export const useProfileStore = defineStore('profile', {
- state: () => ({
- /* Initialize session. */
- _session: null,
-
- _apiKeys: {},
- }),
-
- getters: {
- session(_state) {
- return _state._session || null
- },
-
- sessionid(_state) {
- return _state._session?.id || null
- },
-
- challenge(_state) {
- return _state._session?.challenge || null
- },
-
- apiKey(_state) {
- return (_exchangeid) => _state._apiKeys[_exchangeid] || null
- },
- },
-
- actions: {
- async initSession () {
- console.log('INIT SESSION (before):', this._session)
- /* Check for existing session. */
- if (this._session) {
- return this._session
- }
-
- /* Request new session. */
- const session = await $fetch('/api/newSession')
- console.log('INIT SESSION (after fetch):', session)
-
- /* Set session. */
- this._setSession(session)
-
- /* Return session. */
- return session
- },
-
- deleteSession() {
- /* Set session. */
- this._setSession(null)
- },
-
- saveSession(_session) {
- /* Set session. */
- this._setSession(_session)
- },
-
- /**
- * Set Session
- *
- * @param {Object} _session Save session details.
- */
- _setSession (_session) {
- /* Set session. */
- this._session = _session
- console.log('SET SESSION', this._session)
- },
-
- /**
- * Set API Key
- *
- * @param {Object} _key Information for the Exchange's API key.
- */
- setApiKey (_key: Object) {
- /* Set session. */
- this._apiKeys[_key.exchangeid] = _key
- console.log('SET API KEY', this._apiKeys)
- },
- },
-})
diff --git a/oracles/stores/wallet.ts b/oracles/stores/wallet.ts
deleted file mode 100644
index 3bdb0ef..0000000
--- a/oracles/stores/wallet.ts
+++ /dev/null
@@ -1,274 +0,0 @@
-/* Import modules. */
-import { defineStore } from 'pinia'
-
-import {
- encodePrivateKeyWif,
- entropyToMnemonic,
- mnemonicToEntropy,
-} from '@nexajs/hdnode'
-
-import {
- getAddressMempool,
- subscribeAddress,
-} from '@nexajs/rostrum'
-
-import { listUnspent } from '@nexajs/address'
-import { sha256 } from '@nexajs/crypto'
-import { Wallet } from '@nexajs/wallet'
-
-import _createWallet from './wallet/create.ts'
-// import _transfer from './wallet/transfer.ts'
-
-
-const getCoinBalance = async (_address) => {
- let balance
- let unspent
-
- unspent = await listUnspent(_address)
- .catch(err => console.error(err))
- console.log('UNSPENT', unspent)
-
- balance = unspent.reduce(
- (totalBalance, unspent) => unspent.hasToken ? 0 : (totalBalance + unspent.satoshis), 0
- )
-
- return balance
-}
-
-
-/**
- * Wallet Store
- */
-export const useWalletStore = defineStore('wallet', {
- state: () => ({
- /* Initialize entropy (used for HD wallet). */
- // NOTE: This is a cryptographically-secure "random" 32-byte (256-bit) value. */
- _entropy: null,
-
- _wallet: null,
-
- _wif: null,
-
- _coins: null,
-
- _tokens: null,
- }),
-
- getters: {
- isReady(_state) {
- /* Validate entropy. */
- if (
- !this._entropy ||
- typeof this._entropy !== 'string' ||
- (this._entropy.length !== 32 && this._entropy.length !== 64)
- ) {
- return false
- }
-
- /* Wallet is ready. */
- return true
- },
-
- address(_state) {
- if (!_state._wallet) return null
-
- return _state._wallet.address
- },
-
- abbr(_state) {
- if (!_state._wallet) return null
-
- console.log('_state._wallet', _state._wallet)
-
- return _state._wallet.address.slice(0, 19) + '...' + _state._wallet.address.slice(-6)
- },
-
- mnemonic(_state) {
- if (!_state._entropy) return null
-
- return entropyToMnemonic(_state._entropy)
- },
- entropy(_state) {
- return _state._entropy || null
- },
-
- wallet(_state) {
- return _state._wallet || null
- },
-
- wif(_state) {
- return _state._wif || null
- },
-
- coins(_state) {
- return _state._coins || []
- },
-
- tokens(_state) {
- return _state._tokens || []
- },
-
- balance(_state) {
- // return _state._balance
- },
- },
-
- actions: {
- async init() {
- console.info('Initializing wallet...')
-
- if (this._entropy === null) {
- throw new Error('Missing wallet entropy.')
- }
-
- if (!this.mnemonic) {
- throw new Error('Missing mnemonic (seed) phrase.')
- }
-
- this._wallet = new Wallet(this.mnemonic)
- // console.log('RE-CREATED WALLET', this._wallet)
-
- // FIXME Workaround to solve race condition.
- setTimeout(this.loadCoins, 1000)
- },
-
- createWallet(_entropy) {
- /* Validate entropy. */
- // NOTE: Expect HEX value to be 32 or 64 characters.
- if (_entropy.length !== 32 && _entropy.length !== 64) {
- console.error(_entropy, 'is NOT valid entropy.')
-
- _entropy = null
- }
-
- _createWallet.bind(this)(_entropy)
-
- /* Initialize wallet. */
- this.init()
- },
-
- /**
- * Load Coins
- *
- * Retrieves all spendable UTXOs.
- */
- async loadCoins(_isReloading = false) {
- console.info('Wallet address:', this.address)
- // console.info('Wallet address (1):', this.getAddress(1))
- // console.info('Wallet address (2):', this.getAddress(2))
- // console.info('Wallet address (3):', this.getAddress(3))
-
- /* Initialize locals. */
- // let satoshis
- let unspent
-
- /* Validate coin re-loading. */
- // FIXME: What happens if we re-subscribe??
- if (_isReloading === false) {
- /* Start monitoring address. */
- await subscribeAddress(
- this.address,
- () => this.loadCoins.bind(this)(true),
- )
- }
-
- /* Encode Private Key WIF. */
- this._wif = encodePrivateKeyWif({ hash: sha256 }, this._wallet.privateKey, 'mainnet')
-
- // Fetch all unspent transaction outputs for the temporary in-browser wallet.
- unspent = await listUnspent(this.address)
- .catch(err => console.error(err))
- console.log('UNSPENT', unspent)
-
- /* Validate unspent outputs. */
- if (unspent.length === 0) {
- return console.error('There are NO unspent outputs available.')
- }
-
- /* Retrieve coins. */
- this._coins = unspent
- .filter(_unspent => _unspent.hasToken === false)
- .map(_unspent => {
- const outpoint = _unspent.outpoint
- const satoshis = _unspent.satoshis
-
- return {
- outpoint,
- satoshis,
- wif: this._wif,
- }
- })
- console.log('\n Coins:', this.coins)
-
- /* Retrieve tokens. */
- this._tokens = unspent
- .filter(_unspent => _unspent.hasToken === true)
- .map(_unspent => {
- const outpoint = _unspent.outpoint
- const satoshis = _unspent.satoshis
- const tokenid = _unspent.tokenid
- const tokens = _unspent.tokens
-
- return {
- outpoint,
- satoshis,
- tokenid,
- tokens,
- wif: this._wif,
- }
- })
- console.log('\n Tokens:', this.tokens)
- },
-
- async transfer(_receiver, _satoshis) {
- return await this.wallet.send(_receiver, _satoshis)
- },
-
- setEntropy(_entropy) {
- this._entropy = _entropy
- },
-
- setMnemonic(_mnemonic) {
- let entropy
- let error
-
- try {
- /* Derive entropy. */
- entropy = mnemonicToEntropy(_mnemonic)
- } catch (err) {
- /* Set error message. */
- error = err.message
- }
-
- /* Validate error. */
- if (error) {
- return error
- }
-
- /* Set entropy. */
- this._entropy = entropy
-
- /* Create wallet. */
- this.createWallet(entropy)
-
- /* Return entropy. */
- return this.wallet
- },
-
- getAddress(_accountIdx) {
- return this.wallet.getAddress(_accountIdx)
- },
-
- destroy() {
- /* Reset wallet. */
- this._entropy = null
- this._wallet = null
- this._wif = null
- this._coins = null
- this._tokens = null
-
- console.info('Wallet destroyed successfully!')
- },
-
- },
-})
diff --git a/oracles/stores/wallet/create.ts b/oracles/stores/wallet/create.ts
deleted file mode 100644
index 3e34d1a..0000000
--- a/oracles/stores/wallet/create.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Import modules. */
-import { binToHex } from '@nexajs/utils'
-import { hexToBin } from '@nexajs/utils'
-import { randomBytes } from '@nexajs/crypto'
-import { sha256 } from '@nexajs/crypto'
-
-/* Set constants. */
-const ENTROPY_BYTES_LENGTH = 32
-
-/**
- * Create Wallet
- *
- * Generates 128-bits of random entropy and saves it to the
- * local browser.
- */
-export default function (_entropy) {
- let entropy
-
- if (_entropy) {
- this.setEntropy(_entropy)
-
- return _entropy
- }
-
- /* Return random bytes (as hex string). */
- const localBytes = binToHex(randomBytes(ENTROPY_BYTES_LENGTH))
-
- /* Hash the entropy. */
- const hashed = sha256(hexToBin(localBytes))
-
- /* Set (final 128-bit) entropy. */
- // NOTE: Serialize to a 16-byte (128-bit) Hex String.
- // NOTE: We use 16-bytes to remain compatible with popular HD wallets.
- entropy = binToHex(hashed).slice(0, 16) + binToHex(hashed).slice(-16)
-
- this.setEntropy(entropy)
-
- console.info('New (128-bit) wallet created!')
-
- return entropy
-}
diff --git a/oracles/yarn.lock b/oracles/yarn.lock
index 662f867..bec2341 100644
--- a/oracles/yarn.lock
+++ b/oracles/yarn.lock
@@ -830,51 +830,52 @@
dependencies:
is-promise "^4.0.0"
-"@nexajs/address@23.7.22":
- version "23.7.22"
- resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.7.22.tgz#6fd5180ab52188e23d40f963e9fc48fe96d8aef7"
- integrity sha512-OPsucaJRo2zRvCqE7gJoqPv58DsTDTXCd1Dm7l/m7Dqq42sdI3EIm0O0EiOsF9gOvt/Hh7hfCxxlnYXQHcA5wQ==
+"@nexajs/address@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.12.13.tgz#4ee50e47fc32adc06d4f9eea9939010c8c5e33cf"
+ integrity sha512-AHHaQdxC6Gp9b0sTjrfdJcDgt1kttL5lrEQDuVtSi6wR4Ve9be1OpDDDJQQ7OpjZ9jiB4EsTBulmBafl4ehvpA==
dependencies:
- "@nexajs/rostrum" "23.7.20"
+ "@bitauth/libauth" "1.19.1"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/rostrum" "23.12.13"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/utils" "23.7.22"
big-integer "1.6.51"
debug "4.3.4"
graphql "16.6.0"
graphql-ws "5.12.0"
ws "8.13.0"
-"@nexajs/address@23.8.18":
- version "23.8.18"
- resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.8.18.tgz#fdbe0d532f99bf19806411af24fb813bade5b2c1"
- integrity sha512-uL4Rk8l4Dzuvkbyg8f4TD9vLnY63TE3xjsZP67NIb65LTKZ8Mzw8dx56kxssUZL+1vkbDheAn2Fl0Ga2WqhtRg==
+"@nexajs/app@23.9.4":
+ version "23.9.4"
+ resolved "https://registry.yarnpkg.com/@nexajs/app/-/app-23.9.4.tgz#471757c416ab9a2ca30b577af8dc0b6d51a3ed9f"
+ integrity sha512-0KI25JSOja0jh70aGwNQHrRH6XvktlJbWT3Pr4cOn5Gdxmuz3ImNQs2ebhQbGUmja3hpVI5YsuISHOVaVv7BvA==
dependencies:
- "@nexajs/rostrum" "23.8.18"
- big-integer "1.6.51"
debug "4.3.4"
- graphql "16.6.0"
- graphql-ws "5.12.0"
- ws "8.13.0"
+ events "3.3.0"
-"@nexajs/crypto@23.5.22":
- version "23.5.22"
- resolved "https://registry.yarnpkg.com/@nexajs/crypto/-/crypto-23.5.22.tgz#1ca8e76cc18e159d18ef59f08368135dfcafee88"
- integrity sha512-2rKBRYsWKbtD7trTa25sOAN0TuAuz7RGU7eLMDLBtgLoIbIrQ6Q8amA4BlPyLNpjc4Og/KWbncSqRrXIvpm5Lw==
+"@nexajs/crypto@23.11.15":
+ version "23.11.15"
+ resolved "https://registry.yarnpkg.com/@nexajs/crypto/-/crypto-23.11.15.tgz#df981ea9a6445de2e518142856a312beebdba0fa"
+ integrity sha512-8h+1UUX+4QetEbmD1D8GEaaHyOKdW+xtJxvVwxpaZSPtws3Of7+FtO0XTrGWKMsEP+BGK1HfjzsTZD19NEJcMw==
dependencies:
"@ethersproject/random" "5.7.0"
- "@nexajs/utils" "23.5.15"
- crypto-js "4.1.1"
+ "@nexajs/utils" "23.7.22"
+ crypto-js "4.2.0"
debug "4.3.4"
events "3.3.0"
scrypt-js "3.0.1"
secure-ls "1.2.6"
-"@nexajs/hdnode@23.7.26":
- version "23.7.26"
- resolved "https://registry.yarnpkg.com/@nexajs/hdnode/-/hdnode-23.7.26.tgz#9977cb09797dc789f6c0ae94e1b50d1229643a99"
- integrity sha512-11SfDcTBjVpBjHwPC6ULf+cw5+sIKJbNMm9noAL0j+w8wO23FTGxsI9jeEflorl/S+T4om2stGI4kmsc+MsJNg==
+"@nexajs/hdnode@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/hdnode/-/hdnode-23.12.13.tgz#e221c39d36366e3a86644db37489a903012f5923"
+ integrity sha512-N2SNiVvDNMOe54/IqtBjrDM2pavkHvyi/Dvpi4V+89nDzoMcxdanV3qFZKQ2XXVCQK6H5TDsatvfPc+Cw5Lhcg==
dependencies:
"@bitauth/libauth" "1.19.1"
"@ethersproject/hdnode" "5.7.0"
- "@nexajs/address" "23.7.22"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/script" "23.12.13"
"@nexajs/utils" "23.7.22"
debug "4.3.4"
@@ -888,36 +889,50 @@
uuid "9.0.0"
zxcvbn "4.4.2"
-"@nexajs/markets@23.8.11":
- version "23.8.11"
- resolved "https://registry.yarnpkg.com/@nexajs/markets/-/markets-23.8.11.tgz#7e0b935cdaeb08d118c49eedf4d9a484e94f07fc"
- integrity sha512-AnJ9wkAIEnYVDk8BrsoW9zV1gjGdEGEf1H3yRo5eVU5gAiGMfS5FYBW/xe4auS/ifwegTMhpWx85GAsOVLVF6A==
+"@nexajs/market@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/market/-/market-23.12.13.tgz#cfcc53b1a9e543b98abc7b67a34521b609ca10c8"
+ integrity sha512-8hOR1W1ax0H9Sfqh4psgv//O57ePe4TZvPvE3zJtwojebZqE1jD/CmgE65ZKhydozTDqGjrjO5mk+sdARCsQkw==
dependencies:
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
debug "4.3.4"
events "3.3.0"
moment "2.29.4"
numeral "2.0.6"
uuid "9.0.0"
-"@nexajs/provider@23.6.21":
- version "23.6.21"
- resolved "https://registry.yarnpkg.com/@nexajs/provider/-/provider-23.6.21.tgz#6f7e63b29d42ae0621d74e0dcf5a6a5301a8052b"
- integrity sha512-qin/4nKNStmt/oq26zsXjofY6O8Y6D0TkgJn0Rp5mxY3Ri05tg+zEarkynurgxbmHXwf8S2M4f4YScN+BD4Eyw==
+"@nexajs/message@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/message/-/message-23.12.13.tgz#e2946d5fef1de0951fa8759d9e0942cf2041cd58"
+ integrity sha512-Q5E2FWPTVSMRqqWyqZfUMJ+uV7LiTLcgt/k9t8+Ge/+w0cujrHBlKTiq2dSC2OZwguVp0owEM7accfJngZJCqA==
+ dependencies:
+ "@bitauth/libauth" "1.19.1"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/utils" "23.7.22"
+ debug "4.3.4"
+ events "3.3.0"
+
+"@nexajs/provider@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/provider/-/provider-23.12.13.tgz#4641ffe98798d51c0dbdc29726218dbc2db031bb"
+ integrity sha512-w7mKZVSlnUqW7GkQOKY9QaB1MBE/0QQAh7ucqvMdnPR426nElrPll8+VDU4HOPPByKAsqsXQtr6nSOklGhDG4Q==
dependencies:
debug "4.3.4"
events "3.3.0"
isomorphic-ws "5.0.0"
ws "8.13.0"
-"@nexajs/purse@23.8.21":
- version "23.8.21"
- resolved "https://registry.yarnpkg.com/@nexajs/purse/-/purse-23.8.21.tgz#4ad73b889225b61bad9deb1cee73a35e2f5e0479"
- integrity sha512-74jQ+XFzLY9r7h8Pak5aRecGNRh+XAQAreSCr4nNsXtfBkVUV3ls7xHpIGq+P9O/Zfk/GNzVSDvTlvQcQqmSvg==
+"@nexajs/purse@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/purse/-/purse-23.12.13.tgz#f1850a43cb3d8d14de2ad3a410b0b83f0ef9000a"
+ integrity sha512-wZJVmHJ7OtZYtUdPBnW06JDHC3qvRFqe4T7IFwfmbET4oFa78CN4fwZpJN/Lqr2VWqt3MPHN87Me3rWf3FDJ0A==
dependencies:
- "@nexajs/address" "23.8.18"
- "@nexajs/hdnode" "23.7.26"
- "@nexajs/provider" "23.6.21"
- "@nexajs/transaction" "23.8.20"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
debug "4.3.4"
events "3.3.0"
@@ -930,21 +945,10 @@
events "3.3.0"
node-fetch "3.3.1"
-"@nexajs/rostrum@23.7.20":
- version "23.7.20"
- resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.7.20.tgz#f4d6ec66d9dd7a8be024459ec78704f71211899a"
- integrity sha512-lA30LOIKOrSBd8nbhehtGzme2BLojNA/7eAyhXB+RXwyazCC+CRSoCLNjQVlAJp6Mua9vXLn5pIrjnVIXQqr2Q==
- dependencies:
- debug "4.3.4"
- events "3.3.0"
- isomorphic-ws "5.0.0"
- uuid "9.0.0"
- ws "8.12.1"
-
-"@nexajs/rostrum@23.8.18":
- version "23.8.18"
- resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.8.18.tgz#bbda292a3fbc6879a2e208dead6a90cfbe9d784b"
- integrity sha512-sHWaYHEw4Bi2+gEWQvO/ddf6kyHb5m4Wcfx5NS+VIZ+JnmFt32GjEporrsY6/Kk0lzuuFU6/CAbEa6svtgEj8A==
+"@nexajs/rostrum@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.12.13.tgz#0c1e849256e5de3cad2122c9d02a0d6aed1c85d9"
+ integrity sha512-lkzt8AdFfA4LrwWp8qJ6uWdwnheVXjyfJuL59mO11eBxS2yQz5cFN9t96WS8Qs+uSIamfE9fPnf54xlOGlj7oA==
dependencies:
debug "4.3.4"
events "3.3.0"
@@ -961,45 +965,42 @@
events "3.3.0"
superagent "8.0.6"
-"@nexajs/script@23.7.21":
- version "23.7.21"
- resolved "https://registry.yarnpkg.com/@nexajs/script/-/script-23.7.21.tgz#eed0ce4386f506a85e7a16cc7535a433c5b694f0"
- integrity sha512-PJiDMviFYmPYXE6GTcj1CBcAi/GRaJCbpByScMjbGdOl2pCQG3oOmYBMn38rVzHJq/Wsp+AvVOQ8mbEQ0PvqGw==
+"@nexajs/script@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/script/-/script-23.12.13.tgz#d773922652fb67dd258af84bab28660c5fd6fb4d"
+ integrity sha512-/9rWhLY6UUmRU3CURXNgKMSS7Luy4PR7vaMLOml4AtN1PZvqraQLIJ8nPcCM90+EeAI5pdrzxisSNK67QTR82g==
dependencies:
+ "@bitauth/libauth" "1.19.1"
+ "@nexajs/utils" "23.7.22"
debug "4.3.4"
-"@nexajs/token@23.8.21":
- version "23.8.21"
- resolved "https://registry.yarnpkg.com/@nexajs/token/-/token-23.8.21.tgz#bc08a288d9f820eb0d6eabbfee3786b5e9305c5e"
- integrity sha512-pjogFEPSOMyFxYIKBBT0vLp74k73haFjWbMJGzr4PFqQ7uwlRhWlAYYumM5Ll3gBM4HqASLq4HQnymQrd8T4mQ==
- dependencies:
- "@nexajs/address" "23.8.18"
- "@nexajs/hdnode" "23.7.26"
- "@nexajs/provider" "23.6.21"
- "@nexajs/transaction" "23.8.20"
+"@nexajs/token@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/token/-/token-23.12.13.tgz#9bb44d90c0fe392663bcebd1c983765e64d0c196"
+ integrity sha512-Pc8beiRc3xsNBpEDdoSv6EXuka6vMRnxFfQs4WylvFYPq8bNkV2GAF4RFSOv/advlFu7ugmSEMgFsSYxxlfXSw==
+ dependencies:
+ "@nexajs/address" "23.12.13"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
debug "4.3.4"
events "3.3.0"
-"@nexajs/transaction@23.8.20":
- version "23.8.20"
- resolved "https://registry.yarnpkg.com/@nexajs/transaction/-/transaction-23.8.20.tgz#8fc01a7af7ae2b5b8bec82cc3b99c59553b7cb54"
- integrity sha512-YNZwwHusAPFR3olXrW/JqfkMPWNCtzoHMIdMOoG0XUjnGy50oPOjOJjDh7RxPIA6qS+e2ZU2JfApIIAmZGd/Lw==
+"@nexajs/transaction@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/transaction/-/transaction-23.12.13.tgz#6dabe145f6fbac64765df85caa39990babe04ad1"
+ integrity sha512-gXlkQHckIdLBKOSeW0NuWZNOL43Rl3W2CazMsJY1nhJdgDv0vnrBTHo/clQKJBboF47/LZGvEMwB2ITwIzz7LA==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.8.18"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.7.26"
- "@nexajs/script" "23.7.21"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/script" "23.12.13"
"@nexajs/utils" "23.7.22"
debug "4.3.4"
-"@nexajs/utils@23.5.15":
- version "23.5.15"
- resolved "https://registry.yarnpkg.com/@nexajs/utils/-/utils-23.5.15.tgz#d4773ecf37b6bc10b35f4c4aa6be12ee721c7763"
- integrity sha512-rDw49tjDJ6mqYQEEHeLtfMPZq8QFOzdFarYXz1Pa94k37kUKdxxSoZWdDnGKfFD7ec4Zm7BvcTp4AxAuvlMUrw==
- dependencies:
- debug "4.3.4"
-
"@nexajs/utils@23.7.22":
version "23.7.22"
resolved "https://registry.yarnpkg.com/@nexajs/utils/-/utils-23.7.22.tgz#528a2d0fbb0c9db200f0b2ca877560d26944d33f"
@@ -1007,19 +1008,23 @@
dependencies:
debug "4.3.4"
-"@nexajs/wallet@23.8.21":
- version "23.8.21"
- resolved "https://registry.yarnpkg.com/@nexajs/wallet/-/wallet-23.8.21.tgz#fe54f29a27d199d3fb6cdeeb5e29da2623e681b8"
- integrity sha512-+OwNGroLJSbNo3rVU1dGuvBGZJih8f7Bv76SLk4T9Q6p0LF473C6kAS1sqvNa7sQ+UhNQKu5YQN+X8rHH7Az0A==
+"@nexajs/wallet@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/wallet/-/wallet-23.12.13.tgz#cb02ab1888db22abfcc2e6ce816cc4eb52903e30"
+ integrity sha512-7gs+Gwy/cHrZ5pFNefsEsdn3WlBFKL6fNropvE74tykyfkSMsZVtsKSpYGlVXzaXQ3wMyRk5mN5rQjH+ZiajSQ==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.8.18"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.7.26"
- "@nexajs/purse" "23.8.21"
- "@nexajs/token" "23.8.21"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/purse" "23.12.13"
+ "@nexajs/rostrum" "23.12.13"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/token" "23.12.13"
+ cross-fetch "4.0.0"
debug "4.3.4"
events "3.3.0"
+ numeral "2.0.6"
"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
@@ -2295,6 +2300,13 @@ create-require@^1.1.1:
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
+cross-fetch@4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-4.0.0.tgz#f037aef1580bb3a1a35164ea2a848ba81b445983"
+ integrity sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==
+ dependencies:
+ node-fetch "^2.6.12"
+
cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
@@ -2304,10 +2316,10 @@ cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"
-crypto-js@4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
- integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==
+crypto-js@4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631"
+ integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
crypto-js@^3.1.6:
version "3.3.0"
@@ -4186,27 +4198,29 @@ negotiator@0.6.3:
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
-nexajs@23.8.21:
- version "23.8.21"
- resolved "https://registry.yarnpkg.com/nexajs/-/nexajs-23.8.21.tgz#d0a7871364a52fe62f5388c0d4438637474e7b14"
- integrity sha512-ixIQ6L33r9ImSRAjCU6rElZbddwi5OAOHKHfOnLFFEBcRMFXVAld9Zy9/0bo3w9ga9g9pRszqIcWOWJkQQiB5w==
+nexajs@^23.12.13:
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/nexajs/-/nexajs-23.12.13.tgz#c3b43287a9d487b6cb358ef896396df8e12162e2"
+ integrity sha512-dFp9T+yAxVqm6vp5MUrCZw2opejqvzQi6qvzyIgIQdaWDRA/vBVAVqRCq6I5VuTh7neIDPMfgUJY2FdzBKOjSg==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.8.18"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.7.26"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/app" "23.9.4"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
"@nexajs/id" "23.5.15"
- "@nexajs/markets" "23.8.11"
- "@nexajs/provider" "23.6.21"
- "@nexajs/purse" "23.8.21"
+ "@nexajs/market" "23.12.13"
+ "@nexajs/message" "23.12.13"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/purse" "23.12.13"
"@nexajs/request" "23.5.15"
- "@nexajs/rostrum" "23.8.18"
+ "@nexajs/rostrum" "23.12.13"
"@nexajs/rpc" "23.5.15"
- "@nexajs/script" "23.7.21"
- "@nexajs/token" "23.8.21"
- "@nexajs/transaction" "23.8.20"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/token" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
"@nexajs/utils" "23.7.22"
- "@nexajs/wallet" "23.8.21"
+ "@nexajs/wallet" "23.12.13"
debug "4.3.4"
events "3.3.0"
@@ -4298,6 +4312,13 @@ node-fetch@3.3.1:
fetch-blob "^3.1.4"
formdata-polyfill "^4.0.10"
+node-fetch@^2.6.12:
+ version "2.7.0"
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
+ integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
+ dependencies:
+ whatwg-url "^5.0.0"
+
node-fetch@^2.6.7:
version "2.6.13"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.13.tgz#a20acbbec73c2e09f9007de5cda17104122e0010"
diff --git a/watchtower/daemon.js b/watchtower/daemon.js
index ed6d6e9..7048d17 100644
--- a/watchtower/daemon.js
+++ b/watchtower/daemon.js
@@ -23,7 +23,7 @@ const sleep = ms => new Promise(r => setTimeout(r, ms))
console.log('Starting Exchange Manager...')
const IS_LIVE_BROADCAST = false
-const ACTIVE_ACCOUNT_IDX = 0
+const ACTIVE_ACCOUNT_IDX = 1
// 0 - nexa:nqtsq5g54ckrh9kdwq66ulfnm44mk9h838y9lc0j9pfu3lj0 (master)
// 1 - nexa:nqtsq5g5ku8at5c7uv8e56jahwf20vkn3t4zvp3yv667qs37 (minting)
// 2 - nexa:nqtsq5g5p52r529qhawqut0zua5t227kk5c07nay74fs2wux (melting)
@@ -58,14 +58,14 @@ const ACTIVE_ACCOUNT_IDX = 0
mintGroup(
wallet,
'nexa:nqtsq5g5k2gjcnxxrudce0juwl4atmh2yeqkghcs46snrqug', // Shomari (Robin Hood)
- 1000000 * 10^4,
+ 10_000 * 1e4, // 4 decimals
IS_LIVE_BROADCAST,
)
// mintSubgroup(
// wallet,
// 'nexa:nqtsq5g5k2gjcnxxrudce0juwl4atmh2yeqkghcs46snrqug', // Shomari (Robin Hood)
- // 100000000,
+ // 100_000_000,
// IS_LIVE_BROADCAST,
// )
}
diff --git a/watchtower/package.json b/watchtower/package.json
index 9ea00a8..b00f7c0 100644
--- a/watchtower/package.json
+++ b/watchtower/package.json
@@ -1,6 +1,6 @@
{
"name": "nexa-exchange-watchtower",
- "version": "23.11.9",
+ "version": "23.12.19",
"description": "A trustless & decentralized daemon for Wardens to manage *trusted* activites.",
"main": "index.js",
"type": "module",
@@ -10,7 +10,7 @@
"@bitauth/libauth": "1.19.1",
"@generalprotocols/price-oracle": "1.6.1",
"moment": "2.29.4",
- "nexajs": "23.10.25",
+ "nexajs": "23.12.13",
"numeral": "2.0.6",
"uuid": "9.0.0"
}
diff --git a/watchtower/yarn.lock b/watchtower/yarn.lock
index 3022a21..c234c3f 100644
--- a/watchtower/yarn.lock
+++ b/watchtower/yarn.lock
@@ -251,27 +251,15 @@
json-arraybuffer-reviver "^1.0.0"
zeromq "^6.0.0-beta.6"
-"@nexajs/address@23.10.10":
- version "23.10.10"
- resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.10.10.tgz#6c6e0359082fbee73a4d656ad2e4f1e178c5f7b4"
- integrity sha512-JQ3/cCMxLotnU18EPWDl+NAaPHapcOqbwIyuPVuUQuKSc/l6Moaqfgk+1xosYsQUZxA03AUiIHvSX53LY/QFig==
- dependencies:
- "@nexajs/rostrum" "23.10.10"
- big-integer "1.6.51"
- debug "4.3.4"
- graphql "16.6.0"
- graphql-ws "5.12.0"
- ws "8.13.0"
-
-"@nexajs/address@23.10.20":
- version "23.10.20"
- resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.10.20.tgz#368a0853262462502c74b39e7afb33fa5b129dd2"
- integrity sha512-4+mzuMWW+YjFA71FaKKu+XHj64vdK02SDyV+pZ2LQJhh8WbB/xlTr1Y8SgcLLY0xHr/HM7XfaBESvNN+yskDMw==
+"@nexajs/address@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.12.13.tgz#4ee50e47fc32adc06d4f9eea9939010c8c5e33cf"
+ integrity sha512-AHHaQdxC6Gp9b0sTjrfdJcDgt1kttL5lrEQDuVtSi6wR4Ve9be1OpDDDJQQ7OpjZ9jiB4EsTBulmBafl4ehvpA==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/rostrum" "23.10.10"
- "@nexajs/script" "23.10.8"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/rostrum" "23.12.13"
+ "@nexajs/script" "23.12.13"
"@nexajs/utils" "23.7.22"
big-integer "1.6.51"
debug "4.3.4"
@@ -279,30 +267,6 @@
graphql-ws "5.12.0"
ws "8.13.0"
-"@nexajs/address@23.10.8":
- version "23.10.8"
- resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.10.8.tgz#6850764002dde47b1a82f5aaf26aef6cae0a9410"
- integrity sha512-at30dJwNjNA3RFswciY49RgOKfgfIF3n8/3bEdGkI9yRYAIS0chnNv+rrevsDFKcVHTk2TkFTzDKhFbsT2mBaw==
- dependencies:
- "@nexajs/rostrum" "23.10.8"
- big-integer "1.6.51"
- debug "4.3.4"
- graphql "16.6.0"
- graphql-ws "5.12.0"
- ws "8.13.0"
-
-"@nexajs/address@23.9.3":
- version "23.9.3"
- resolved "https://registry.yarnpkg.com/@nexajs/address/-/address-23.9.3.tgz#d2937c3d706c8042dcf7738ecfd3165bb3938359"
- integrity sha512-5bistKEhhN1YqU20YgR8SYGF1HJPAYrEC2OT4+eWRcJ+PCOqZgiArLWrpDxaMgZc3PY3A1t53hcrM9M5PXqrcg==
- dependencies:
- "@nexajs/rostrum" "23.8.30"
- big-integer "1.6.51"
- debug "4.3.4"
- graphql "16.6.0"
- graphql-ws "5.12.0"
- ws "8.13.0"
-
"@nexajs/app@23.9.4":
version "23.9.4"
resolved "https://registry.yarnpkg.com/@nexajs/app/-/app-23.9.4.tgz#471757c416ab9a2ca30b577af8dc0b6d51a3ed9f"
@@ -311,28 +275,28 @@
debug "4.3.4"
events "3.3.0"
-"@nexajs/crypto@23.5.22":
- version "23.5.22"
- resolved "https://registry.yarnpkg.com/@nexajs/crypto/-/crypto-23.5.22.tgz#1ca8e76cc18e159d18ef59f08368135dfcafee88"
- integrity sha512-2rKBRYsWKbtD7trTa25sOAN0TuAuz7RGU7eLMDLBtgLoIbIrQ6Q8amA4BlPyLNpjc4Og/KWbncSqRrXIvpm5Lw==
+"@nexajs/crypto@23.11.15":
+ version "23.11.15"
+ resolved "https://registry.yarnpkg.com/@nexajs/crypto/-/crypto-23.11.15.tgz#df981ea9a6445de2e518142856a312beebdba0fa"
+ integrity sha512-8h+1UUX+4QetEbmD1D8GEaaHyOKdW+xtJxvVwxpaZSPtws3Of7+FtO0XTrGWKMsEP+BGK1HfjzsTZD19NEJcMw==
dependencies:
"@ethersproject/random" "5.7.0"
- "@nexajs/utils" "23.5.15"
- crypto-js "4.1.1"
+ "@nexajs/utils" "23.7.22"
+ crypto-js "4.2.0"
debug "4.3.4"
events "3.3.0"
scrypt-js "3.0.1"
secure-ls "1.2.6"
-"@nexajs/hdnode@23.9.3":
- version "23.9.3"
- resolved "https://registry.yarnpkg.com/@nexajs/hdnode/-/hdnode-23.9.3.tgz#125967148155a738bd4b96639fb664911c810ece"
- integrity sha512-MRQ7TUFbU6P4/AAXlrUyI6FltzMcU7aTsQzdw/eyl1P8QDmQaDM0461yUgpjOGkBM8o9kzi2RtKg5+Kjlg1NRw==
+"@nexajs/hdnode@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/hdnode/-/hdnode-23.12.13.tgz#e221c39d36366e3a86644db37489a903012f5923"
+ integrity sha512-N2SNiVvDNMOe54/IqtBjrDM2pavkHvyi/Dvpi4V+89nDzoMcxdanV3qFZKQ2XXVCQK6H5TDsatvfPc+Cw5Lhcg==
dependencies:
"@bitauth/libauth" "1.19.1"
"@ethersproject/hdnode" "5.7.0"
- "@nexajs/address" "23.9.3"
- "@nexajs/script" "23.9.2"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/script" "23.12.13"
"@nexajs/utils" "23.7.22"
debug "4.3.4"
@@ -346,46 +310,50 @@
uuid "9.0.0"
zxcvbn "4.4.2"
-"@nexajs/market@23.10.8":
- version "23.10.8"
- resolved "https://registry.yarnpkg.com/@nexajs/market/-/market-23.10.8.tgz#2400a07b1f774e7b97bea51bd1b2403b68682bbb"
- integrity sha512-G4wGxfgXAToy4dIvKlwoigs/SLrsDyAh/S1n0eb+J2NnfXnEC/DQvUGABsJSYgvuTrRdXVjomSpXZ6elGMHJxA==
+"@nexajs/market@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/market/-/market-23.12.13.tgz#cfcc53b1a9e543b98abc7b67a34521b609ca10c8"
+ integrity sha512-8hOR1W1ax0H9Sfqh4psgv//O57ePe4TZvPvE3zJtwojebZqE1jD/CmgE65ZKhydozTDqGjrjO5mk+sdARCsQkw==
dependencies:
- "@nexajs/transaction" "23.10.8"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
debug "4.3.4"
events "3.3.0"
moment "2.29.4"
numeral "2.0.6"
uuid "9.0.0"
-"@nexajs/message@23.9.2":
- version "23.9.2"
- resolved "https://registry.yarnpkg.com/@nexajs/message/-/message-23.9.2.tgz#fc55b9d58a32e02172a306851d425cf74f6ddcc9"
- integrity sha512-TGPovcvWMom4mgyqhtgwUmxby3cbwJS0gPYgOtbKdXrcoY8Qaz57svh8KFeGa+emJh7fIk5hFOipvrlMte3hlw==
+"@nexajs/message@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/message/-/message-23.12.13.tgz#e2946d5fef1de0951fa8759d9e0942cf2041cd58"
+ integrity sha512-Q5E2FWPTVSMRqqWyqZfUMJ+uV7LiTLcgt/k9t8+Ge/+w0cujrHBlKTiq2dSC2OZwguVp0owEM7accfJngZJCqA==
dependencies:
"@bitauth/libauth" "1.19.1"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/utils" "23.7.22"
debug "4.3.4"
events "3.3.0"
-"@nexajs/provider@23.6.21":
- version "23.6.21"
- resolved "https://registry.yarnpkg.com/@nexajs/provider/-/provider-23.6.21.tgz#6f7e63b29d42ae0621d74e0dcf5a6a5301a8052b"
- integrity sha512-qin/4nKNStmt/oq26zsXjofY6O8Y6D0TkgJn0Rp5mxY3Ri05tg+zEarkynurgxbmHXwf8S2M4f4YScN+BD4Eyw==
+"@nexajs/provider@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/provider/-/provider-23.12.13.tgz#4641ffe98798d51c0dbdc29726218dbc2db031bb"
+ integrity sha512-w7mKZVSlnUqW7GkQOKY9QaB1MBE/0QQAh7ucqvMdnPR426nElrPll8+VDU4HOPPByKAsqsXQtr6nSOklGhDG4Q==
dependencies:
debug "4.3.4"
events "3.3.0"
isomorphic-ws "5.0.0"
ws "8.13.0"
-"@nexajs/purse@23.10.25":
- version "23.10.25"
- resolved "https://registry.yarnpkg.com/@nexajs/purse/-/purse-23.10.25.tgz#c62a60c9485998a08247ebef491d175d23d959e8"
- integrity sha512-ronvO5CmIbAYqu3AgQaR6QQYj0c3z2fEJ8s0KyCkr7BviZd7nyf+s8/7/C63K5vH7YIBqeNUYg1WZ212i0ouoA==
+"@nexajs/purse@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/purse/-/purse-23.12.13.tgz#f1850a43cb3d8d14de2ad3a410b0b83f0ef9000a"
+ integrity sha512-wZJVmHJ7OtZYtUdPBnW06JDHC3qvRFqe4T7IFwfmbET4oFa78CN4fwZpJN/Lqr2VWqt3MPHN87Me3rWf3FDJ0A==
dependencies:
- "@nexajs/address" "23.10.10"
- "@nexajs/hdnode" "23.9.3"
- "@nexajs/provider" "23.6.21"
- "@nexajs/transaction" "23.10.25"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
debug "4.3.4"
events "3.3.0"
@@ -398,32 +366,10 @@
events "3.3.0"
node-fetch "3.3.1"
-"@nexajs/rostrum@23.10.10":
- version "23.10.10"
- resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.10.10.tgz#cd3e8aec2e59a3b156ec223a1169c3b58f35dc6c"
- integrity sha512-OjY0pBFFVwDb+wicg9X62TaDNhbp8WYnuu3I8cZVX+YFvd2IN5J2qJuZQue1Y9pWqPiB3SidU64t67KlYvkpWA==
- dependencies:
- debug "4.3.4"
- events "3.3.0"
- isomorphic-ws "5.0.0"
- uuid "9.0.0"
- ws "8.12.1"
-
-"@nexajs/rostrum@23.10.8":
- version "23.10.8"
- resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.10.8.tgz#5e618e5191fd94632059bbd33e2d6bd55fe76aa6"
- integrity sha512-UlD7eKDc7yfRRB3grDjlcTMsVKV4qTmM3dkiB4xiRXMkb5FPHtmm/e7LMH2FT/Oph8VlM0i0lFLa8dkUj7VbGw==
- dependencies:
- debug "4.3.4"
- events "3.3.0"
- isomorphic-ws "5.0.0"
- uuid "9.0.0"
- ws "8.12.1"
-
-"@nexajs/rostrum@23.8.30":
- version "23.8.30"
- resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.8.30.tgz#21fb8436b74ff8cb90cfcb8650f94a177bc11662"
- integrity sha512-WOOWAZ36BxJlxjtJgYRqDztNKCjjURFCTlP72TXbV1fW+AYxb4qy/nheS2JX0OgncvyMYsosyWMMiwKDjZGLLw==
+"@nexajs/rostrum@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/rostrum/-/rostrum-23.12.13.tgz#0c1e849256e5de3cad2122c9d02a0d6aed1c85d9"
+ integrity sha512-lkzt8AdFfA4LrwWp8qJ6uWdwnheVXjyfJuL59mO11eBxS2yQz5cFN9t96WS8Qs+uSIamfE9fPnf54xlOGlj7oA==
dependencies:
debug "4.3.4"
events "3.3.0"
@@ -440,71 +386,42 @@
events "3.3.0"
superagent "8.0.6"
-"@nexajs/script@23.10.8":
- version "23.10.8"
- resolved "https://registry.yarnpkg.com/@nexajs/script/-/script-23.10.8.tgz#34dd9b4814664b5b3dd237634dde16f172ade572"
- integrity sha512-+Ex62D89f50TbN7XSjcwPZlygWmsnpYlPFKu+QtD8WUyIodygqps2pGQ2ds0snaEjE85J6+WFSOjOmfHcLEAQw==
+"@nexajs/script@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/script/-/script-23.12.13.tgz#d773922652fb67dd258af84bab28660c5fd6fb4d"
+ integrity sha512-/9rWhLY6UUmRU3CURXNgKMSS7Luy4PR7vaMLOml4AtN1PZvqraQLIJ8nPcCM90+EeAI5pdrzxisSNK67QTR82g==
dependencies:
"@bitauth/libauth" "1.19.1"
"@nexajs/utils" "23.7.22"
debug "4.3.4"
-"@nexajs/script@23.9.2":
- version "23.9.2"
- resolved "https://registry.yarnpkg.com/@nexajs/script/-/script-23.9.2.tgz#c28ae36a0265f4237d4aa7674350f9c3d28ae0c0"
- integrity sha512-B/4xoiQi5Hl40ymWChNXWj+rMupQWYz6CV6YVrQydUg5PJJpSe7S2GJC5xZ5qQbYZ7/Octs08d/ngpQ+BfbPbA==
- dependencies:
- "@bitauth/libauth" "1.19.1"
- "@nexajs/utils" "23.7.22"
- debug "4.3.4"
-
-"@nexajs/token@23.10.25":
- version "23.10.25"
- resolved "https://registry.yarnpkg.com/@nexajs/token/-/token-23.10.25.tgz#42f02b87979db239e29e967dbec75c1a928c8e05"
- integrity sha512-RjQdjJAb9NEHeUq/oGe9zuyx4/MddkAGFaEp6QW1ETyp5HQJ3lR4TOd3LYEqiq49nZN56xZXMWqSRYC2vnN2XA==
- dependencies:
- "@nexajs/address" "23.10.10"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.9.3"
- "@nexajs/provider" "23.6.21"
- "@nexajs/script" "23.10.8"
- "@nexajs/transaction" "23.10.25"
+"@nexajs/token@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/token/-/token-23.12.13.tgz#9bb44d90c0fe392663bcebd1c983765e64d0c196"
+ integrity sha512-Pc8beiRc3xsNBpEDdoSv6EXuka6vMRnxFfQs4WylvFYPq8bNkV2GAF4RFSOv/advlFu7ugmSEMgFsSYxxlfXSw==
+ dependencies:
+ "@nexajs/address" "23.12.13"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
debug "4.3.4"
events "3.3.0"
-"@nexajs/transaction@23.10.25":
- version "23.10.25"
- resolved "https://registry.yarnpkg.com/@nexajs/transaction/-/transaction-23.10.25.tgz#cecf96c366845ae363c559545a0c6e984585a288"
- integrity sha512-ATqr7OG+W2A1AcMv+gjVsfz4CX6YEkTZwnDWGcl8FZnAj2U4GTvEIa5FBr0v6AoiFYRbl+lU4y/g8SzEMqcsLg==
- dependencies:
- "@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.10.10"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.9.3"
- "@nexajs/script" "23.10.8"
- "@nexajs/utils" "23.7.22"
- debug "4.3.4"
-
-"@nexajs/transaction@23.10.8":
- version "23.10.8"
- resolved "https://registry.yarnpkg.com/@nexajs/transaction/-/transaction-23.10.8.tgz#b553d29c29654f2a585834f804d5d1aa3f8d78c3"
- integrity sha512-STNoWktHrlcdDPNukIBkyNZiy8lxLPN5Vbca7hvMTVvVeOrSI8rcpP8LRdta18ZWFZZEYoQLNCJ0sb44nAkSDQ==
+"@nexajs/transaction@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/transaction/-/transaction-23.12.13.tgz#6dabe145f6fbac64765df85caa39990babe04ad1"
+ integrity sha512-gXlkQHckIdLBKOSeW0NuWZNOL43Rl3W2CazMsJY1nhJdgDv0vnrBTHo/clQKJBboF47/LZGvEMwB2ITwIzz7LA==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.10.8"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.9.3"
- "@nexajs/script" "23.10.8"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/script" "23.12.13"
"@nexajs/utils" "23.7.22"
debug "4.3.4"
-"@nexajs/utils@23.5.15":
- version "23.5.15"
- resolved "https://registry.yarnpkg.com/@nexajs/utils/-/utils-23.5.15.tgz#d4773ecf37b6bc10b35f4c4aa6be12ee721c7763"
- integrity sha512-rDw49tjDJ6mqYQEEHeLtfMPZq8QFOzdFarYXz1Pa94k37kUKdxxSoZWdDnGKfFD7ec4Zm7BvcTp4AxAuvlMUrw==
- dependencies:
- debug "4.3.4"
-
"@nexajs/utils@23.7.22":
version "23.7.22"
resolved "https://registry.yarnpkg.com/@nexajs/utils/-/utils-23.7.22.tgz#528a2d0fbb0c9db200f0b2ca877560d26944d33f"
@@ -512,19 +429,19 @@
dependencies:
debug "4.3.4"
-"@nexajs/wallet@23.10.25":
- version "23.10.25"
- resolved "https://registry.yarnpkg.com/@nexajs/wallet/-/wallet-23.10.25.tgz#f7bfcd57dc47e040054b70156b023152b1f7b6ff"
- integrity sha512-oHKaW0aIXSQmN4ziPxgFJOm5nE+BW8TrY/wJa85XL1uEzpp3vQM4rIxUC4Yp2T7oBTSmJU5E5e4M3ocPlNu/7Q==
+"@nexajs/wallet@23.12.13":
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/@nexajs/wallet/-/wallet-23.12.13.tgz#cb02ab1888db22abfcc2e6ce816cc4eb52903e30"
+ integrity sha512-7gs+Gwy/cHrZ5pFNefsEsdn3WlBFKL6fNropvE74tykyfkSMsZVtsKSpYGlVXzaXQ3wMyRk5mN5rQjH+ZiajSQ==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.10.10"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.9.3"
- "@nexajs/purse" "23.10.25"
- "@nexajs/rostrum" "23.10.10"
- "@nexajs/script" "23.10.8"
- "@nexajs/token" "23.10.25"
+ "@nexajs/address" "23.12.13"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
+ "@nexajs/purse" "23.12.13"
+ "@nexajs/rostrum" "23.12.13"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/token" "23.12.13"
cross-fetch "4.0.0"
debug "4.3.4"
events "3.3.0"
@@ -627,10 +544,10 @@ cross-spawn@^7.0.1:
shebang-command "^2.0.0"
which "^2.0.1"
-crypto-js@4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
- integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==
+crypto-js@4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631"
+ integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
crypto-js@^3.1.6:
version "3.3.0"
@@ -936,29 +853,29 @@ ms@2.1.2:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
-nexajs@23.10.25:
- version "23.10.25"
- resolved "https://registry.yarnpkg.com/nexajs/-/nexajs-23.10.25.tgz#563a16b6c5d935964a8e481325cfcc10ae80ca16"
- integrity sha512-eiA7ypSAzeGEwx+nfxVfRVxGvMQ/gMBdb6870mt9+syl8r/XClbONMZQsLLusZXYuTUQEbUzpJWxVATj+oqArA==
+nexajs@^23.12.13:
+ version "23.12.13"
+ resolved "https://registry.yarnpkg.com/nexajs/-/nexajs-23.12.13.tgz#c3b43287a9d487b6cb358ef896396df8e12162e2"
+ integrity sha512-dFp9T+yAxVqm6vp5MUrCZw2opejqvzQi6qvzyIgIQdaWDRA/vBVAVqRCq6I5VuTh7neIDPMfgUJY2FdzBKOjSg==
dependencies:
"@bitauth/libauth" "1.19.1"
- "@nexajs/address" "23.10.20"
+ "@nexajs/address" "23.12.13"
"@nexajs/app" "23.9.4"
- "@nexajs/crypto" "23.5.22"
- "@nexajs/hdnode" "23.9.3"
+ "@nexajs/crypto" "23.11.15"
+ "@nexajs/hdnode" "23.12.13"
"@nexajs/id" "23.5.15"
- "@nexajs/market" "23.10.8"
- "@nexajs/message" "23.9.2"
- "@nexajs/provider" "23.6.21"
- "@nexajs/purse" "23.10.25"
+ "@nexajs/market" "23.12.13"
+ "@nexajs/message" "23.12.13"
+ "@nexajs/provider" "23.12.13"
+ "@nexajs/purse" "23.12.13"
"@nexajs/request" "23.5.15"
- "@nexajs/rostrum" "23.10.10"
+ "@nexajs/rostrum" "23.12.13"
"@nexajs/rpc" "23.5.15"
- "@nexajs/script" "23.10.8"
- "@nexajs/token" "23.10.25"
- "@nexajs/transaction" "23.10.25"
+ "@nexajs/script" "23.12.13"
+ "@nexajs/token" "23.12.13"
+ "@nexajs/transaction" "23.12.13"
"@nexajs/utils" "23.7.22"
- "@nexajs/wallet" "23.10.25"
+ "@nexajs/wallet" "23.12.13"
debug "4.3.4"
events "3.3.0"
diff --git a/web/docker-compose.yml b/web/docker-compose.yml
index c585f86..2f6a17f 100644
--- a/web/docker-compose.yml
+++ b/web/docker-compose.yml
@@ -5,7 +5,7 @@ services:
build: .
image: exchange
container_name: exchange
- restart: always
+ restart: unless-stopped
network_mode: 'host'
# ports:
# - '127.0.0.1:3000:3000'
diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts
index 1c33770..b25e571 100644
--- a/web/nuxt.config.ts
+++ b/web/nuxt.config.ts
@@ -31,6 +31,10 @@ export default defineNuxtConfig({
/* Route Rules */
routeRules: {
+ /* Add CORS headers to root. */
+ // NOTE: We need this to make
.json available to web apps.
+ '/**': { cors: true },
+
/* Disable server-side rendering for Admin area. */
'/admin/**': { ssr: false },
},
diff --git a/web/pages/token.vue b/web/pages/token.vue
new file mode 100644
index 0000000..4adf935
--- /dev/null
+++ b/web/pages/token.vue
@@ -0,0 +1,181 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $NXL
+
+
+
+ Official burning & staking token of Nexa Studio.
+
+
+
+ Providing Nexicans who dream BIG with a premium suite of tools and services to Plan, Build and maximize a sustainable Profit!
+
+
+
+ Builders burn & stake $STUDIO Time for access to premium tools & services, featuring: bleeding-edge AI, uncensorable content storage & delivery, plus a direct line to Ava's world-class support team.
+
+
+
+ Creators may choose to publish one or more of their original NFTs and SFTs to The Nexican Gallery — Nexa's premier, ultra-exclusive, digital art collection.
+
+
+
+ Builder's & Creator's works are their own.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Token Details
+
+
+
+
+
+
+
+
+