This project contains the smart contracts for the Orivium King V2. It implements a dynamic NFT ecosystem where each token ("King") has fully on-chain generated metadata. The contracts also support functionalities such as equipping items, staking, and cross-chain bridging using LayerZero.
- Dynamic NFT Metadata: Real-time, on-chain updates of token metadata based on equipped items.
- Staking: Stake NFTs to earn $ORI token
- Cross-Chain Bridging: Seamless transfer of tokens between chains using LayerZero.
- Modular Architecture: Composed of several interlinked contracts handling ERC721 tokens, item management, and bridging.
To compile the smart contracts, run:
forge buildTo run the tests, use:
forge testTo start a local Hardhat node, run:
yarn start:localTo generate Typechain types, use:
yarn typechainBefore using tasks, make sure to generate Typechain types:
yarn typechainTo get the available tasks run
npx hardhat --help