Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dirt-road-development/skale-rng
https://github.com/dirt-road-development/skale-rng
blockchain evm hardhat random-number-generation skale-network solidity web3
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dirt-road-development/skale-rng
- Owner: Dirt-Road-Development
- License: mit
- Created: 2023-07-05T16:17:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-08T19:57:59.000Z (8 months ago)
- Last Synced: 2024-11-11T18:29:27.798Z (3 months ago)
- Topics: blockchain, evm, hardhat, random-number-generation, skale-network, solidity, web3
- Language: Solidity
- Homepage:
- Size: 161 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SKALE RNG
## Installation
Add this repo to your application by running ```npm add @dirtroad/skale-rng```. This will make the **RNG** contract available to import into your other Solidity contracts
via ```import "@dirtroad/skale-rng/contracts/RNG.sol"```.## Usage
When using this contract you can add it as an inherited contract to take advantage of all of the functions. Example:
```solidity
// SPDX-License-Identifer: MIT
pragma solidity ^0.8.19;import "@dirtroad/skale-rng/contracts/RNG.sol";
contract ExampleRNG is RNG {
uin256 public amount;
constructor() {
amount = getRandomNumber();
}function updateAmount() external {
amount = getRandomNumber();
}
}
```### Security and Liability
All code found in this directory/repository including the RNG.sol smart contract is WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.