- RouterV1 mints vaults, so it needs to be a
IERC721Receiver
and implementonERC721Received
. - Added the
depositStake
contract function that does the same thing as the existingcreate2VaultAndStake
function, except it doesn't create a vault. - Fixed a bug relating to the logic for when to update a partially unstaked stake in
unstakeAndClaim
of the Geyser contract. See lines 895-901 incontracts/Geyser.sol
for 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 compile
yarn hardhat deploy --mock --no-verify --network localhost
git 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.yaml
and 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.