Skip to content

Commit

Permalink
adjust for new nodes, minor error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Apr 27, 2022
1 parent 184571b commit 480c8ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions subgraphs/bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 /sushiswap/sushiswap",
"prepare:rinkeby": "mustache config/rinkeby.json template.yaml > subgraph.yaml",
"prepare:fantom": "mustache config/fantom.json template.yaml > subgraph.yaml",
"deploy:fantom-eu": "graph deploy beets-bar subgraph.yaml --ipfs http://eu-node.beets-ftm-node.com:5001 --node http://eu-node.beets-ftm-node.com:8020/",
"deploy:fantom-canada": "graph deploy beets-bar subgraph.yaml --ipfs http://ca-node.beets-ftm-node.com:5001 --node http://ca-node.beets-ftm-node.com:8020/"
"create:fantom-eu" : "graph create --node http://eu-node-v2.beets-ftm-node.com:8020/ beets-bar",
"create:fantom-ca" : "graph create --node http://ca-node-v2.beets-ftm-node.com:8020/ beets-bar",
"deploy:fantom-eu": "graph deploy beets-bar subgraph.yaml --ipfs http://eu-node-v2.beets-ftm-node.com:5001 --node http://eu-node-v2.beets-ftm-node.com:8020/",
"deploy:fantom-ca": "graph deploy beets-bar subgraph.yaml --ipfs http://ca-node-v2.beets-ftm-node.com:5001 --node http://ca-node-v2.beets-ftm-node.com:8020/"
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.26.0",
Expand Down
6 changes: 4 additions & 2 deletions subgraphs/masterchefV2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"create-local": "graph create --node http://localhost:8020/",
"remove-local": "graph remove --node http://localhost:8020/ beetx-subgraph",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 beetx-subgraph",
"deploy:fantom-eu": "graph deploy masterchefV2 subgraph.yaml --ipfs http://eu-node.beets-ftm-node.com:5001 --node http://eu-node.beets-ftm-node.com:8020/",
"deploy:fantom-canada": "graph deploy masterchefV2 subgraph.yaml --ipfs http://ca-node.beets-ftm-node.com:5001 --node http://ca-node.beets-ftm-node.com:8020/",
"create:fantom-eu" : "graph create --node http://eu-node-v2.beets-ftm-node.com:8020/ masterchefV2",
"create:fantom-ca" : "graph create --node http://ca-node-v2.beets-ftm-node.com:8020/ masterchefV2",
"deploy:fantom-eu": "graph deploy masterchefV2 subgraph.yaml --ipfs http://eu-node-v2.beets-ftm-node.com:5001 --node http://eu-node-v2.beets-ftm-node.com:8020/",
"deploy:fantom-ca": "graph deploy masterchefV2 subgraph.yaml --ipfs http://ca-node-v2.beets-ftm-node.com:5001 --node http://ca-node-v2.beets-ftm-node.com:8020/",
"prepare:rinkeby": "mustache config/rinkeby.json template.yaml > subgraph.yaml",
"prepare:fantom": "mustache config/fantom.json template.yaml > subgraph.yaml"
},
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/masterchefV2/src/entities/rewarder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MultiTokenRewarder as MultiTokenRewarderContract } from "../../generate
import { MultiTokenRewarder as MultiTokenRewarderTemplate } from "../../generated/templates";

import { Rewarder, RewardToken } from "../../generated/schema";
import { ERC20 } from "../../../locking/generated/Locker/ERC20";
import { ERC20 } from "../../generated/MasterChefV2/ERC20";

export function getRewarder(address: Address, block: ethereum.Block): Rewarder {
let rewarder = Rewarder.load(address.toHex());
Expand Down

0 comments on commit 480c8ee

Please sign in to comment.