Observed since 20 Oct, 23:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Ready-made React hooks on top of OpenZeppelin smart contracts. This library is built on top of amazing [wagmi](https://wagmi.sh).
react-openzeppelinReady-made React hooks on top of OpenZeppelin smart contracts. This library is built on top of amazing wagmi.
npm install @0xflair/react-openzeppelin
The dependencies:
ethers: ^5.6.5wagmi: ^0.3.5useOzHasRoleCheck if a certain address has a specific Openzeppelin's AccessControl role or not.
import { keccak256, toUtf8Bytes } from "ethers/lib/utils";
import { useOzHasRole } from "@0xflair/react-openzeppelin";
const { data, error, isLoading } = useOzHasRole({
// You contract address that is using Openzeppelin's AccessControl
contractAddress: "0x111111111111111111111111111111",
// The address to check if it has the role or not
address: "0x222222222222222222222222222222",
// The role hash you want to check
role: keccak256(toUtf8Bytes("MINTER_ROLE")),
});
useOzRoleGranterAssign a certain role to a specific address.
useOzRoleRenouncerRenounce a certain role from an already granted address.
useOzOwnerCheck if a certain address is owner based on Openzeppelin's Ownable.
This library is a work in progress and we'll be adding new hooks as we need them. If there's a method you want to see as a simple hook feel free to open an issue or better create a PR :)
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.111.2 | 2 Sept 2022 | 9 | |
| 0.111.1 | 2 Sept 2022 | 9 | |
| 0.111.0 | 2 Sept 2022 | 9 | |
| 0.110.0 | 1 Sept 2022 | 9 | |
| 0.109.3 | 1 Sept 2022 | 9 | |
| 0.109.2 | 31 Aug 2022 | 9 | |
| 0.109.1 | 31 Aug 2022 | 9 | |
| 0.109.0 | 31 Aug 2022 | 9 | |
| 0.108.2 | 31 Aug 2022 | 9 | |
| 0.108.1 | 31 Aug 2022 | 9 | |
| 0.108.0 | 31 Aug 2022 | 9 | |
| 0.107.13 | 31 Aug 2022 | 9 | |
| 0.107.12 | 31 Aug 2022 | 9 | |
| 0.107.11 | 31 Aug 2022 | 9 | |
| 0.107.10 | 31 Aug 2022 | 9 | |
| 0.107.9 | 30 Aug 2022 | 9 | |
| 0.107.8 | 30 Aug 2022 | 9 | |
| 0.107.7 | 29 Aug 2022 | 9 | |
| 0.107.6 | 29 Aug 2022 | 9 | |
| 0.107.5 | 29 Aug 2022 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:df5dbad4e1e617061b7a3690e1e9e1e854dd0883d7cbe114c3f96c2968a9e38d