
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@appliedblockchain/chainlink-plugins-random-number-consumer
Advanced tools
Hardhat TypeScript plugin that interacts with chainlink VRF consumer contract.
A Hardhat plugin that interacts with the Chainlink Random Number Consumer contract.
This plugin will help you read data from a Chainlink Random Number Consumer and call functions to update the data.
To install this plugin use:
npm install @appliedblockchain/chainlink-plugins-random-number-consumer @nomiclabs/hardhat-ethers --save
Import the plugin in your hardhat.config.js:
require("@appliedblockchain/chainlink-plugins-random-number-consumer");
Or if you are using TypeScript, in your hardhat.config.ts:
import "@appliedblockchain/chainlink-plugins-random-number-consumer";
This plugin adds two tasks to interact with a Random Number Consumer contract.
Read the contract random number.
npx hardhat read-random-number --contract <contract address>
Request the random number to be updated. It may take some minutes until a Chainlink node updates the data.
npx hardhat request-random-number --contract <contract address>
This plugin adds the functions readRandomNumber and requestRandomNumber to the Hardhat Runtime Environment.
Read the contract data.
hre.readRandomNumber(hre,contractAddress);
Request the random number to be updated. It may take some minutes until a Chainlink node updates the data.
hre.requestRandomNumber(hre,contractAddress);
This plugin does not require configuration.
There are no additional steps you need to take for this plugin to work.
Install it and access the provided functions and the provided tasks through the Hardhat Runtime Environment anywhere you need it.
FAQs
Hardhat TypeScript plugin that interacts with chainlink VRF consumer contract.
The npm package @appliedblockchain/chainlink-plugins-random-number-consumer receives a total of 4 weekly downloads. As such, @appliedblockchain/chainlink-plugins-random-number-consumer popularity was classified as not popular.
We found that @appliedblockchain/chainlink-plugins-random-number-consumer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.