@story-protocol/story-contracts
v0.1.0-alpha.0
Published
## Install Dependencies 1. Install `npm` if you haven't.
Downloads
3
Keywords
Readme
Story Contracts
Install Dependencies
Install
npmif you haven't.Pull
node_modules.
npm install -g pnpm
pnpm installBuild
- Install
abigen.
go install github.com/ethereum/go-ethereum/cmd/abigen@latest- Build the contracts.
make buildTest
- Install
foundry.
curl -L https://foundry.paradigm.xyz | bash
source ~/.bash_profile
foundryup- Run tests.
make testDeploy
These smart contracts are predeploys (part of the genesis state of Execution Layer).
To generate this first state:
- Add a .env file in
contracts/.env
ADMIN_ADDRESS=0x...
TIMELOCK_EXECUTOR_ADDRESS=0x...
TIMELOCK_GUARDIAN_ADDRESS=0x...ADMIN_ADDRESSwill be the owner of theTimelockControllercontract. Will be able to propose transactions to the timelock, and cancel them.TIMELOCK_EXECUTOR_ADDRESSaddress allowed to execute the scheduled actions once the timelock matures.TIMELOCK_GUARDIAN_ADDRESSaddress allowed to cancel proposals
- Run
forge script script/GenerateAlloc.s.sol -vvvv --chain-id <DESIRED_CHAIN_ID>Copy the contents of the resulting JSON file, and paste in the alloc item of story-geth genesis.json
