This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const findoraWasm = await import('findora-wasm'); | |
export async function abarToBar(data: FindoraWallet.IWalletWrap, randomizerSource: string, randomizerFee: string) { | |
const { walletEnd, anonWallet } = data; | |
const { axfrSecretKey, axfrPublicKey, decKey } = anonWallet; | |
let transactionBuilder = await getTransactionBuilder(); | |
const receiverXfrPublicKey = findoraWasm.public_key_from_base64(walletEnd.publickey); | |
const aXfrKeyPairSender = findoraWasm.axfr_keypair_from_string(axfrSecretKey); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useReducer, useCallback, useContext } from 'react'; | |
const initialState = { | |
data: '', | |
isPending: false, | |
}; | |
export const constant = { | |
FETCH_DATA: 'FETCH_DATA', | |
FETCH_DATA__PENDING: 'FETCH_DATA__PENDING', |