Hook is an oracle-free, on-chain option protocol for non-fungible tokens (NFTs). Unlike many popular approaches to NFT DeFi, Hook does not sacrifice the non-fungible nature of NFTs by requiring that they are converted into fungible tokens.
Note: NFTs deposited into the Hook protocol only contain unique artistic images and do not contain, reference, represent the price, rate or level of any security, commodity or financial instrument.
Hook utilizes Foundry for test suites and
forge install
to install dependencies from git submodules
npm install
to install hardhat dependencies
The hardhat project is used for coverage testing and deployments
External non-test deps (ie openzeppelin contracts) are added using yarn,
added to the package.json
file, and then the {remappings.txt} is subsequently
updated. yarn add -D @openzeppelin/contracts
See our docs: https://docs.hook.xyz/docs/smart-contract-addresses
forge test
to run all forge tests
forge test --match-contract <Test Contract Name>
to run tests on a specific contract
npx hardhat coverage
to run the coverage suite
MIT Copyright 2022 Abstract Labs, Inc.