NEP-5 compatible token with methods to exchange tokens with other blockchains (using external oracle).
Burns NEO tokens, mints equal amount on another blockchain.
Exchange(byte[] from, BigInteger tokenAmount, byte[] blockchainName, byte[] receiver)
from
— sender wallet address (for authorization checks)tokenAmount
— amount of tokens to sendblockchainName
— name of the blockchain where tokens should be receivedreceiver
— receiving wallet address (in target blockchain)
Mints tokens after burning them in another blockchain.
MintTokens(byte[] toAddress, BigInteger tokenAmount, byte[] fromBlockchain, byte[] fromTxId)
toAddress
— receiving NEO wallet addresstokenAmount
— amount of tokens to mintfromBlockchain
— name of the blockchain where tokens were burnedfromTxId
— hash of the transaction where tokens werer burned (in initiating blockchain)