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.120.0 | 30 Sept 2022 | 10 | |
| 0.119.2 | 29 Sept 2022 | 10 | |
| 0.119.1 | 29 Sept 2022 | 10 | |
| 0.119.0 | 29 Sept 2022 | 10 | |
| 0.118.3 | 29 Sept 2022 | 10 | |
| 0.118.2 | 29 Sept 2022 | 10 | |
| 0.118.1 | 29 Sept 2022 | 10 | |
| 0.118.0 | 29 Sept 2022 | 10 | |
| 0.117.1 | 29 Sept 2022 | 10 | |
| 0.117.0 | 27 Sept 2022 | 10 | |
| 0.116.5 | 22 Sept 2022 | 10 | |
| 0.116.4 | 21 Sept 2022 | 10 | |
| 0.116.3 | 16 Sept 2022 | 10 | |
| 0.116.2 | 15 Sept 2022 | 10 | |
| 0.116.1 | 11 Sept 2022 | 10 | |
| 0.116.0 | 8 Sept 2022 | 10 | |
| 0.115.3 | 7 Sept 2022 | 10 | |
| 0.115.2 | 7 Sept 2022 | 10 | |
| 0.115.1 | 7 Sept 2022 | 10 | |
| 0.115.0 | 7 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