Releases: manifoldfinance/openmev-sdk
v0.7.0
Changelog
v0.7.0
10 January 2022
-
feat(release): v0.6.0
70502b8
-
release: publish
242f581
-
npm(deps): bump zustand from 3.6.5 to 3.6.7
#42
-
npm(deps): bump socket.io-client from 4.3.2 to 4.4.0
#39
-
npm(deps): bump @grpc/proto-loader from 0.6.5 to 0.6.7
#38
-
npm(deps): bump @grpc/grpc-js from 1.4.1 to 1.4.4
#34
-
fix(rpc): defaultOpenMevRpc
#36
-
npm(deps): bump zustand from 3.6.4 to 3.6.5
#35
-
refactor(sdk): cleanup
90f53c3
-
refactor(nodejs): build
3d0e552
-
chore(sdk): clean up
4488c0c
v0.4.0
v0.4.0 - What's Changed
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
v0.4.0
5 November 2021
-
npm(deps): bump @ethersproject/networks from 5.4.2 to 5.5.0
#25
-
build(use-react-wallet): update dist
e7f0389
-
fix(use-react-wallet): readme update
20ca62a
-
docs(use-react-wallet): fix readme
0c3ad2b
-
feat(use-react-walet): fix types and refactor package bundle
163d37d
-
fix(types): json abi
4c6b1d6
-
dec(feat): useSafeTimeout Hook
87991db
-
release(use-react-wallet): 0.3.1
1ee5a21
-
fix(build): export dist to npm
2e77c46
-
docs(use-react-wallet): readme
a9e53b5
v0.3.3
Types and State Hooks
Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
v0.3.3
27 October 2021
- feat(use-react-walet): fix types and refactor package bundle
163d37d
- fix(types): json abi
4c6b1d6
- dec(feat): useSafeTimeout Hook
87991db
v0.3.2
26 October 2021
- release(use-react-wallet): 0.3.1
1ee5a21
- fix(build): export dist to npm
2e77c46
- docs(use-react-wallet): readme
a9e53b5
v0.3.1
26 October 2021
v0.3.0
26 October 2021
- npm(deps): bump @ethersproject/transactions from 5.4.0 to 5.5.0
#19
- npm(deps): bump socket.io-client from 4.2.0 to 4.3.2
#14
- feat(packages): react-wallet
31b46ea
- fix(packages): config publish
2c05298
v0.2.2
14 October 2021
- npm(deps): bump @grpc/grpc-js from 1.3.7 to 1.4.1
#12
- fix(pkg): web3-connect
2530289
- package updates
6b27286
- chore(web3connect): deps
fbfc908
v0.1.9
11 October 2021
- feat(wallets): integrate
d8adc8f
v0.1.8
11 October 2021
v0.1.7
6 October 2021
- npm(deps): bump @ethersproject/bignumber from 5.4.1 to 5.4.2
#10
- feat(utils): init pkg
47e3b24
- release: v0.1.7
f7a6694
- feat(openmev): API Collection
9ea2965
v0.1.6
4 October 2021
v0.1.5
27 September 2021
- ci(actions): fix dependabot
#9
- build(deps): bump @grpc/proto-loader from 0.6.4 to 0.6.5
#8
- build(sdk): json raw body
c1ca27d
- feat(packages): websocket connector
4d4e376
- chore(lint): format
4a281b1
v0.1.4
15 September 2021
- build(ts): generate exports
dae6007
- build(release): v0.1.4
0292847
- feat(graphql): inital graphql support
12c36ef
v0.1.3
13 September 2021
- feat(proto): cache
fc2fecb
v0.1.2
12 September 2021
- fix(build): tsc defect
9f53e17
v0.1.1
12 September 2021
v0.1.0
12 September 2021
v0.0.2
11 September 2021
- feat(rpc): connection configuration
d9600f0
v0.0.1
10 September 2021
v0.3.1
Full Changelog: v0.3.0...v0.3.1
Features: use-react-wallet
a modern React Web3 Hook
use-react-wallet
React hook for connecting and interacting with Web3 Wallet Providers via OpenMEV RPC or any other RPC
Overview
Examples
Connect / Disconnect button
const ConnectWalletButton = () => {
const { account, connect, disconnect } = useWallet();
return <>
{!account ? (
<button onClick={() => connect()}>Connect Wallet</button>
) : (
<button onClick={() => disconnect()}>Disconnect Wallet</button>
)}
</>;
}
Connecting
The connect
function passes along an optional config to a Web3Modal instance for additional customization.
You can use the account information from useWallet anywhere inside your React app, without any extra set up.
const UserAddress = () => {
const { account } = useWallet();
if (!account) return null;
return <>{account}</>;
}
Transaction Signing
To run a transaction or sign a message, use the provider
object returned by the hook for connected wallets.
This is a standard Ethers.js Provider.
const SignMessageButton = () => {
const { account, provider } = useWallet();
if (!account) return null;
const signMessage = async () => {
const signature = await provider.getSigner().signMessage("Hello!");
console.log(signature);
}
return <button onClick={signMessage}>Sign Message</>;
}
Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by auto-changelog
.
v0.3.1
26 October 2021
v0.3.0
26 October 2021
- npm(deps): bump @ethersproject/transactions from 5.4.0 to 5.5.0
#19
- npm(deps): bump socket.io-client from 4.2.0 to 4.3.2
#14
- feat(packages): react-wallet
31b46ea
- fix(packages): config publish
2c05298
v0.2.2
14 October 2021
- npm(deps): bump @grpc/grpc-js from 1.3.7 to 1.4.1
#12
- fix(pkg): web3-connect
2530289
- package updates
6b27286
- chore(web3connect): deps
fbfc908
v0.1.9
11 October 2021
- feat(wallets): integrate
d8adc8f
v0.1.8
11 October 2021
v0.1.7
6 October 2021
- npm(deps): bump @ethersproject/bignumber from 5.4.1 to 5.4.2
#10
- feat(utils): init pkg
47e3b24
- release: v0.1.7
f7a6694
- feat(openmev): API Collection
9ea2965
v0.1.6
4 October 2021
v0.1.5
27 September 2021
- ci(actions): fix dependabot
#9
- build(deps): bump @grpc/proto-loader from 0.6.4 to 0.6.5
#8
- build(sdk): json raw body
c1ca27d
- feat(packages): websocket connector
4d4e376
- chore(lint): format
4a281b1
v0.1.4
15 September 2021
- build(ts): generate exports
dae6007
- build(release): v0.1.4
0292847
- feat(graphql): inital graphql support
12c36ef
v0.1.3
13 September 2021
- feat(proto): cache
fc2fecb
v0.1.2
12 September 2021
- fix(build): tsc defect
9f53e17
v0.1.1
12 September 2021
v0.1.0
12 September 2021
v0.0.2
11 September 2021
- feat(rpc): connection configuration
d9600f0
v0.0.1
10 September 2021
v0.2.0
First versioned release
Full Changelog: v0.1.9...v0.2.2
Postman API Collection
release: connect v0.1.0 Signed-off-by: sam bacha <sam@manifoldfinance.com>