- RouterV1 mints vaults, so it needs to be a
IERC721Receiverand implementonERC721Received. - Added the
depositStakecontract function that does the same thing as the existingcreate2VaultAndStakefunction, except it doesn't create a vault. - Fixed a bug relating to the logic for when to update partially unstaked stake in
unstakeAndClaimof the Geyser contract. See lines 895-901 incontracts/Geyser.solfor a description of the change.
Mainly bug fixes. Also added a PowerSwitch entity to keep track of the GeyserStatus,
since the event is emitted by the PowerSwitch contract.
yarn hardhat node-- this spins up a local hardhat network, it is useful to note down the accountsyarn hardhat compileyarn hardhat deploy --mock --no-verify --network localhostgit clone https://github.com/graphprotocol/graph-node/cd graph-node/docker- If on Linux,
./setup.sh && docker-compose up, otherwisedocker-compose up cd subgraph,cat subgraph.template.yaml > subgraph.yamland update the addresses insubgraph.yaml(see here)yarn && yarn codegen && yarn create-local && yarn deploy-local
The following is the mapping between the data source name to its corresponding contract. Consequently, the address of the data source should match the address of the deployed contract.
| Data Source | Contract |
|---|---|
| GeyserRegistry | GeyserRegistry |
| VaultFactory | VaultFactory |
| UniversalVaultNFT | VaultFactory |
| CrucibleFactory | VaultFactory (of alchemist) |
| CrucibleNFT | VaultFactory (of alchemist) |
Check out frontend/README.md for documentation relating to the frontend code.