No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-21 13:10:17 +00:00
.github/workflows chore: forge init 2023-09-07 11:26:42 +09:00
lib Upgrade libraries and interfaces to solidiy ^0.8.0. Fix build errors 2023-09-07 12:23:27 +09:00
script Fix nsh to be mintable 2023-10-26 12:00:53 +09:00
src Add lastDeposit 2023-10-27 15:42:52 +09:00
test Add compounding test 2023-09-30 11:42:25 +09:00
.gitignore Add deployment script 2023-09-28 12:39:55 +09:00
.gitmodules Upgrade libraries and interfaces to solidiy ^0.8.0. Fix build errors 2023-09-07 12:23:27 +09:00
.woodpecker.yml ci: add Woodpecker pipeline (NO_CI_MISSING_WOODPECKER) for code/pnsh_futures 2026-09-07 09:10:49 +00:00
foundry.toml chore: forge init 2023-09-07 11:26:42 +09:00
LICENSE Add license 2023-09-07 11:33:23 +09:00
README.md Add deployment script 2023-09-28 12:39:55 +09:00
remappings.txt Complete PcsSnapshotTwapOracle refactor 2023-09-07 12:05:26 +09:00

Uses Foundry, Installation: forge install Build: forge build Deploy: If not testing, be sure to (1) comment out the deployment of the test pnsh and test tokens in DeployFutures.s.sol and (2) check the contract addresses for the constants at the top of the script.

The below forge script command will deploy the smart contract ecosystem. Use the proper $RPC_URL and $ETHERSCAN_KEY (bscscan key) for the network you are deploying to, and the $PRIVATE_KEY that will administer the contracts. It will take some time to run as it simulates the transactions locally first.

forge script script/DeployFutures.s.sol:DeployFutures --broadcast --verify -vvv \ --rpc-url $RPC_URL \ --etherscan-api-key $ETHERSCAN_KEY --private-key $PRIVATE_KEY