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.123.2Registry latest | 27 Nov 2022 | 10 | |
| 0.123.1 | 12 Nov 2022 | 10 | |
| 0.123.0 | 8 Nov 2022 | 10 | |
| 0.122.2 | 28 Oct 2022 | 10 | |
| 0.122.1 | 28 Oct 2022 | 10 | |
| 0.122.0 | 28 Oct 2022 | 10 | |
| 0.121.2 | 27 Oct 2022 | 10 | |
| 0.121.1 | 24 Oct 2022 | 10 | |
| 0.121.0 | 20 Oct 2022 | 10 | |
| 0.120.11 | 20 Oct 2022 | 10 | |
| 0.120.10 | 19 Oct 2022 | 10 | |
| 0.120.9 | 10 Oct 2022 | 10 | |
| 0.120.8 | 10 Oct 2022 | 10 | |
| 0.120.7 | 10 Oct 2022 | 10 | |
| 0.120.6 | 3 Oct 2022 | 10 | |
| 0.120.5 | 3 Oct 2022 | 10 | |
| 0.120.4 | 3 Oct 2022 | 10 | |
| 0.120.3 | 3 Oct 2022 | 10 | |
| 0.120.2 | 3 Oct 2022 | 10 | |
| 0.120.1 | 30 Sept 2022 | 10 |
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