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.114.8 | 6 Sept 2022 | 9 | |
| 0.114.7 | 6 Sept 2022 | 9 | |
| 0.114.6 | 5 Sept 2022 | 9 | |
| 0.114.5 | 5 Sept 2022 | 9 | |
| 0.114.4 | 5 Sept 2022 | 9 | |
| 0.114.3 | 5 Sept 2022 | 9 | |
| 0.114.2 | 5 Sept 2022 | 9 | |
| 0.114.1 | 5 Sept 2022 | 9 | |
| 0.114.0 | 5 Sept 2022 | 9 | |
| 0.113.4 | 4 Sept 2022 | 9 | |
| 0.113.3 | 4 Sept 2022 | 9 | |
| 0.113.2 | 4 Sept 2022 | 9 | |
| 0.113.1 | 4 Sept 2022 | 9 | |
| 0.113.0 | 4 Sept 2022 | 9 | |
| 0.112.4 | 3 Sept 2022 | 9 | |
| 0.112.3 | 3 Sept 2022 | 9 | |
| 0.112.2 | 3 Sept 2022 | 9 | |
| 0.112.1 | 3 Sept 2022 | 9 | |
| 0.112.0 | 3 Sept 2022 | 9 | |
| 0.111.3 | 2 Sept 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