use-permit2
v0.0.4
Published
Use Permit2 hook for wagmi
Downloads
2
Readme
use-permit2 Not ready!
Currently under development! Please, do not use it
React Permit2
hook for Wagmi
and ConnectKit
(optional)
Roadmap
- [x] React Hook Boilerplate (Typescript)
- [x] Example page (livereload)
- [x] Install
Wagmi
- [x] Setup Providers
- [x] Add Connect Button
- [ ] Setup
Permit2 SDK
- [ ] Create hook mock
- [ ] Generate transfer Flow
- [ ] Design modal compatible with
ConnectKit
Under the Hood
Install
yarn add use-permit2
Usage
import * as React from "react";
import usePermit2 from "use-permit2";
const Example = () => {
const example = usePermit2();
return <div>{JSON.stringify(example)}</div>;
};
Local Development
Install main packages and run development server
yarn
yarn start
Open another temrinal and install example packages and run example page
cd example
yarn
yarn dev