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.92.6 | 3 Aug 2022 | 9 | |
| 0.92.5 | 3 Aug 2022 | 9 | |
| 0.92.4 | 3 Aug 2022 | 9 | |
| 0.92.3 | 3 Aug 2022 | 9 | |
| 0.92.2 | 3 Aug 2022 | 9 | |
| 0.92.1 | 3 Aug 2022 | 9 | |
| 0.92.0 | 3 Aug 2022 | 9 | |
| 0.91.0 | 3 Aug 2022 | 9 | |
| 0.90.2 | 3 Aug 2022 | 9 | |
| 0.90.1 | 3 Aug 2022 | 9 | |
| 0.90.0 | 2 Aug 2022 | 9 | |
| 0.89.0 | 2 Aug 2022 | 9 | |
| 0.88.8 | 1 Aug 2022 | 9 | |
| 0.88.7 | 1 Aug 2022 | 9 | |
| 0.88.6 | 1 Aug 2022 | 9 | |
| 0.88.5 | 1 Aug 2022 | 9 | |
| 0.88.4 | 1 Aug 2022 | 9 | |
| 0.88.3 | 31 Jul 2022 | 9 | |
| 0.88.2 | 31 Jul 2022 | 9 | |
| 0.88.1 | 31 Jul 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