https://github.com/leechael/vrf-phat-contract
Generic Verifiable Randomness Function Solution for any blockchains
https://github.com/leechael/vrf-phat-contract
blockchain foundry hardhat oracle phala phat-contract randomness solidity vrf
Last synced: 7 months ago
JSON representation
Generic Verifiable Randomness Function Solution for any blockchains
- Host: GitHub
- URL: https://github.com/leechael/vrf-phat-contract
- Owner: Leechael
- License: mit
- Created: 2023-10-18T22:07:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T14:49:08.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:07:32.494Z (over 1 year ago)
- Topics: blockchain, foundry, hardhat, oracle, phala, phat-contract, randomness, solidity, vrf
- Language: TypeScript
- Homepage:
- Size: 337 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Using Phat Contract as VRF Provider
This repository contains code examples demonstrating the usage of the VRF provided by [Phat Contract](https://phala.network/phat-contract).
- native_phat_contract: the simple implementaion shown how to call vrf in rust.
- hardhat_solidity: The Phat Contract powered Oracle provides VRF capacity to any EVM chains and Solidity Smart Contracts in this ERC-721 NFT demo.
- foundry_solidity: Same to the hardhat implementaion but use foundry instead hardhat here.## NOTE
Both hardhat and foundry examples here using npm for dependencies management, run `npm install` or `yarn install` before compiling.