Skip to content

Commit

Permalink
Add FeesEscrow addresses (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi authored Sep 11, 2022
1 parent 5e431de commit ce6c1a8
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stakewise-subgraphs",
"version": "1.4.3",
"version": "1.4.5",
"description": "Subgraphs for the StakeWise Protocol",
"repository": "https://github.com/stakewise/subgraphs",
"license": "AGPL-3.0-only",
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "const",
"version": "1.4.3",
"version": "1.4.5",
"license": "AGPL-3.0-only",
"main": "index.ts",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/ethereum/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum",
"version": "1.4.3",
"version": "1.4.5",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "npm run --prefix=../../packages/constants prepare:goerli && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
Expand All @@ -11,12 +11,12 @@
"build:mainnet": "npm run prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:mainnet": "npm run build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-mainnet",
"create:mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/ethereum",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.3 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/ethereum",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.5 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/ethereum",

"prepare:gnosis": "npm run --prefix=../../packages/constants prepare:gnosis && mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"build:gnosis": "npm run prepare:gnosis && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:gnosis": "npm run build:gnosis && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-gnosis",
"create:gnosis:local": "graph create --node $GRAPH_GNOSIS_URL stakewise/ethereum",
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.3 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/ethereum"
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.5 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/ethereum"
}
}
4 changes: 2 additions & 2 deletions subgraphs/stakewise/config/harbour_mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"startBlock": "14798542"
},
"feesEscrow": {
"address": "0x0000000000000000000000000000000000000000",
"startBlock": "14798545"
"address": "0xb5230ebe5b1a9299a5c44f459ed2e8eb7496f581",
"startBlock": "15508750"
},
"distributorTokens": []
}
4 changes: 2 additions & 2 deletions subgraphs/stakewise/config/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"startBlock": "14108270"
},
"feesEscrow": {
"address": "0x0000000000000000000000000000000000000000",
"startBlock": "14108270"
"address": "0x6b333b20fbae3c5c0969dd02176e30802e2fbbdb",
"startBlock": "15501344"
},
"distributorTokens": [
{
Expand Down
8 changes: 4 additions & 4 deletions subgraphs/stakewise/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stakewise",
"version": "1.4.3",
"version": "1.4.5",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "npm run --prefix=../../packages/constants prepare:goerli && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
Expand All @@ -11,7 +11,7 @@
"build:mainnet": "npm run prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:mainnet": "npm run build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/stakewise-mainnet",
"create:mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/stakewise",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.3 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.5 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise",

"prepare:harbour_goerli": "npm run --prefix=../../packages/constants prepare:harbour_goerli && mustache config/harbour_goerli.json subgraph.template.yaml > subgraph.yaml",
"build:harbour_goerli": "npm run prepare:harbour_goerli && graph codegen subgraph.yaml && graph build subgraph.yaml",
Expand All @@ -21,12 +21,12 @@
"build:harbour_mainnet": "npm run prepare:harbour_mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:harbour_mainnet": "npm run build:harbour_mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/stakewise-harbour-mainnet",
"create:harbour_mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/stakewise-harbour",
"deploy:harbour_mainnet:local": "npm run build:harbour_mainnet && npm run create:harbour_mainnet:local && graph deploy --version-label 1.4.3 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise-harbour",
"deploy:harbour_mainnet:local": "npm run build:harbour_mainnet && npm run create:harbour_mainnet:local && graph deploy --version-label 1.4.5 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise-harbour",

"prepare:gnosis": "npm run --prefix=../../packages/constants prepare:gnosis && mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"build:gnosis": "npm run prepare:gnosis && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:gnosis": "npm run build:gnosis && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/stakewise-gnosis",
"create:gnosis:local": "graph create --node $GRAPH_GNOSIS_URL stakewise/stakewise",
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.3 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/stakewise"
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.5 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/stakewise"
}
}
18 changes: 0 additions & 18 deletions subgraphs/stakewise/packages/abis/Pool.json
Original file line number Diff line number Diff line change
Expand Up @@ -884,24 +884,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_poolValidators",
"type": "address"
},
{
"internalType": "address",
"name": "_oracles",
"type": "address"
}
],
"name": "upgrade",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "validatorRegistration",
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/stakewise/packages/abis/RewardEthTokenV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@
{
"inputs": [
{
"internalType": "address",
"name": "_oracles",
"internalType": "contract IFeesEscrow",
"name": "_feesEscrow",
"type": "address"
}
],
Expand Down
4 changes: 1 addition & 3 deletions subgraphs/stakewise/src/mappings/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ export function handleStakeWithReferrer(event: StakedWithReferrer): void {

log.info("[Pool] StakedWithReferrer sender={} referrer={} amount={}", [
event.transaction.from.toHexString(),
event.params.referrer.toHexString()

,
event.params.referrer.toHexString(),
event.params.amount.toString(),
]);
}
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/uniswap-v3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uniswap-v3",
"version": "1.4.3",
"version": "1.4.5",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "npm run --prefix=../../packages/constants prepare:goerli && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
Expand All @@ -11,6 +11,6 @@
"build:mainnet": "npm run prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:mainnet": "npm run build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/uniswap-v3-mainnet",
"create:mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/uniswap-v3",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.3 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/uniswap-v3"
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.5 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/uniswap-v3"
}
}

0 comments on commit ce6c1a8

Please sign in to comment.