Skip to content

Commit

Permalink
Merge pull request #84 from blocknative/release/0.11.0
Browse files Browse the repository at this point in the history
Release/0.11.0
  • Loading branch information
taylorjdawson authored Jul 28, 2021
2 parents 4056368 + 0d78fad commit 9798e84
Show file tree
Hide file tree
Showing 4 changed files with 1,025 additions and 105 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "onboard-notify-react",
"version": "0.10.0",
"version": "0.11.0",
"dependencies": {
"bnc-notify": "^1.7.0",
"bnc-notify-staging": "https://github.com/blocknative/notify#develop",
"bnc-onboard": "^1.30.0",
"bnc-onboard": "^1.31.0",
"bnc-onboard-staging": "https://github.com/blocknative/onboard#develop",
"ethers": "^5.2.0",
"react": "^16.9.0",
Expand Down
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let internalTransferContract

function App() {
const [address, setAddress] = useState(null)
const [ens, setEns] = useState(null)
const [network, setNetwork] = useState(null)
const [balance, setBalance] = useState(null)
const [wallet, setWallet] = useState({})
Expand All @@ -51,6 +52,7 @@ function App() {
useEffect(() => {
const onboard = initOnboard({
address: setAddress,
ens: setEns,
network: setNetwork,
balance: setBalance,
wallet: wallet => {
Expand Down Expand Up @@ -131,7 +133,6 @@ function App() {
emitter.on('txSpeedUp', console.log)
emitter.on('txCancel', console.log)
emitter.on('txFailed', console.log)

}

async function sendInternalTransaction() {
Expand Down Expand Up @@ -205,6 +206,7 @@ function App() {
<main>
<header className="user-info">
{address && <span>{address}</span>}
{ens && ens.name && <span>{ens.name}</span>}
{balance != null && (
<span>
{Number(balance) > 0 ? balance / 1000000000000000000 : balance} ETH
Expand Down
3 changes: 2 additions & 1 deletion src/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export function initOnboard(subscriptions) {
subscriptions,
walletSelect: {
wallets: [
{ walletName: 'detectedwallet' },
{ walletName: 'metamask' },
{
walletName: 'trezor',
Expand Down Expand Up @@ -59,6 +58,7 @@ export function initOnboard(subscriptions) {
{ walletName: 'mykey', rpcUrl },
{ walletName: 'wallet.io', rpcUrl },
{ walletName: 'huobiwallet', rpcUrl },
{ walletName: 'alphawallet', rpcUrl },
{ walletName: 'hyperpay' },
{ walletName: 'atoken' },
{ walletName: 'liquality' },
Expand All @@ -67,6 +67,7 @@ export function initOnboard(subscriptions) {
{ walletName: 'authereum', disableNotifications: true },
{ walletName: 'ownbit' },
{ walletName: 'gnosis' },
{ walletName: 'dcent' },
{ walletName: 'bitpie' },
{ walletName: 'xdefi' },
{ walletName: 'keepkey', rpcUrl }
Expand Down
Loading

0 comments on commit 9798e84

Please sign in to comment.