@hicaru/bearby-react
Version:
<div align="center"> <h1> bearby react web3 wrapper </h1> <strong> Allows react to interact with the bearby wallet. </strong> </div> <hr/>
30 lines (29 loc) • 698 B
TypeScript
import React from 'react';
import { Wallet, Massa, Contract } from '@hicaru/bearby.js';
export type BearbyContext = {
/**
* A flag, if user has connect with current website.
*/
connected: boolean;
/**
* A flag if user unlocked wallet.
*/
enabled: boolean;
/**
* Current node period.
*/
period?: number;
/**
* A Current selected by user, address in base58 encode.
*/
base58?: string;
/**
* A current selected by user, netwrok.
* (mainnet, testnet, custom)
*/
net?: string;
contract: Contract;
massa: Massa;
wallet: Wallet;
};
export declare const BearbyContext: React.Context<BearbyContext>;