UNPKG

saepenatus

Version:

Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, mul

19 lines 520 B
"use strict"; import { arrayify } from "@ethersproject/bytes"; export function decode(textData) { textData = atob(textData); const data = []; for (let i = 0; i < textData.length; i++) { data.push(textData.charCodeAt(i)); } return arrayify(data); } export function encode(data) { data = arrayify(data); let textData = ""; for (let i = 0; i < data.length; i++) { textData += String.fromCharCode(data[i]); } return btoa(textData); } //# sourceMappingURL=base64.js.map