asgardex / asgardex-desktop

ASGARDEX desktop wallet and decentralized exchange for THORChain, 100% open-source

Home Page:https://www.asgardex.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add MayaNode support on Bonds Tab

GrassRootsCrypto opened this issue · comments

Add the ability to add a Maya node on the bonds tab.

A node address from https://www.explorer.mayachain.info/nodes should be able to be entered into the ENTER NODE TO MONITOR field and it displays the node information just like a node THORNode does.

As there is an address prefix, should ignore the dex prefix.

From the bonds.tsx
Doesn't seem to validate a mayanode address

   if (!addressValidation(loweredCaseValue)) {
        return Promise.reject(intl.formatMessage({ id: 'wallet.errors.address.invalid' }))
      }

Looks like BondsTable.tsx needs to accept maya data instead of just
{ NodeInfo, NodeInfos } from '../../../services/thorchain/types'

Maya and THORNode are supported and can see bond providers.