Skip to content

Commit

Permalink
add cliName (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee authored and hellwolf committed Jan 23, 2024
1 parent 4f4d796 commit 7615f92
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/automation-contracts/autowrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"dependencies": {
"@openzeppelin/contracts": "4.9.3",
"@superfluid-finance/ethereum-contracts": "1.8.1",
"@superfluid-finance/metadata": "1.1.18"
"@superfluid-finance/metadata": "1.1.19"
}
}
2 changes: 1 addition & 1 deletion packages/automation-contracts/scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"dependencies": {
"@openzeppelin/contracts": "4.9.3",
"@superfluid-finance/ethereum-contracts": "1.8.1",
"@superfluid-finance/metadata": "1.1.18"
"@superfluid-finance/metadata": "1.1.19"
}
}
2 changes: 1 addition & 1 deletion packages/ethereum-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@safe-global/safe-service-client": "^2.0.3",
"@safe-global/safe-web3-lib": "^1.9.4",
"@superfluid-finance/js-sdk": "0.6.3",
"@superfluid-finance/metadata": "1.1.18",
"@superfluid-finance/metadata": "1.1.19",
"async": "^3.2.4",
"csv-writer": "^1.6.0",
"ethers": "^5.7.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/js-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"cloc": "sh tasks/cloc.sh"
},
"dependencies": {
"@superfluid-finance/metadata": "1.1.18",
"@superfluid-finance/metadata": "1.1.19",
"@truffle/contract": "4.6.29",
"auto-bind": "4.0.0",
"node-fetch": "2.7.0"
Expand Down
4 changes: 4 additions & 0 deletions packages/metadata/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to the metadata will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.1.19]
### Added
- `cliName` property under "subgraphV1" for the canonical subgraph network names, see [here](https://thegraph.com/docs/en/developing/supported-networks/#hosted-service)

## [v1.1.18]
### Fixed
- Changed the `module/networks/list.d.ts` file to correctly reflect the `contractsV1` object in our `networks.json` file.
Expand Down
16 changes: 16 additions & 0 deletions packages/metadata/main/networks/list.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports =
"logsQueryRange": 10000,
"explorer": "https://goerli.etherscan.io",
"subgraphV1": {
"cliName": "goerli",
"name": "protocol-v1-goerli",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-goerli"
},
Expand Down Expand Up @@ -98,6 +99,7 @@ module.exports =
"logsQueryRange": 10000,
"explorer": "https://mumbai.polygonscan.com",
"subgraphV1": {
"cliName": "mumbai",
"name": "protocol-v1-mumbai",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai"
},
Expand Down Expand Up @@ -152,6 +154,7 @@ module.exports =
"logsQueryRange": 50000,
"explorer": "https://goerli-optimism.etherscan.io",
"subgraphV1": {
"cliName": "optimism-goerli",
"name": "protocol-v1-optimism-goerli",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-goerli"
},
Expand Down Expand Up @@ -193,6 +196,7 @@ module.exports =
"logsQueryRange": 50000,
"explorer": "https://goerli.arbiscan.io",
"subgraphV1": {
"cliName": "arbitrum-goerli",
"name": "protocol-v1-arbitrum-goerli",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-arbitrum-goerli"
},
Expand Down Expand Up @@ -237,6 +241,7 @@ module.exports =
"logsQueryRange": 50000,
"explorer": "https://testnet.snowtrace.io",
"subgraphV1": {
"cliName": "fuji",
"name": "protocol-v1-avalanche-fuji",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-avalanche-fuji"
},
Expand Down Expand Up @@ -277,6 +282,7 @@ module.exports =
"logsQueryRange": 10000,
"explorer": "https://sepolia.etherscan.io",
"subgraphV1": {
"cliName": "sepolia",
"name": "protocol-v1-eth-sepolia",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/eth-sepolia/api"
},
Expand Down Expand Up @@ -350,6 +356,7 @@ module.exports =
"logsQueryRange": 20000,
"explorer": "https://testnet-zkevm.polygonscan.org/",
"subgraphV1": {
"cliName": "polygon-zkevm-testnet",
"name": "protocol-v1-polygon-zkevm-testnet"
},
"publicRPCs": ["https://rpc.public.zkevm-test.net"],
Expand Down Expand Up @@ -396,6 +403,7 @@ module.exports =
"logsQueryRange": 20000,
"explorer": "https://gnosisscan.io",
"subgraphV1": {
"cliName": "gnosis",
"name": "protocol-v1-xdai",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-xdai",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/xdai/api"
Expand Down Expand Up @@ -454,6 +462,7 @@ module.exports =
"logsQueryRange": 10000,
"explorer": "https://polygonscan.com",
"subgraphV1": {
"cliName": "matic",
"name": "protocol-v1-matic",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-matic",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/matic/api"
Expand Down Expand Up @@ -512,6 +521,7 @@ module.exports =
"logsQueryRange": 50000,
"explorer": "https://optimistic.etherscan.io",
"subgraphV1": {
"cliName": "optimism",
"name": "protocol-v1-optimism-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-mainnet"
},
Expand Down Expand Up @@ -569,6 +579,7 @@ module.exports =
"logsQueryRange": 50000,
"explorer": "https://arbiscan.io",
"subgraphV1": {
"cliName": "arbitrum-one",
"name": "protocol-v1-arbitrum-one",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-arbitrum-one"
},
Expand Down Expand Up @@ -626,6 +637,7 @@ module.exports =
"logsQueryRange": 50000,
"explorer": "https://snowtrace.io",
"subgraphV1": {
"cliName": "avalanche",
"name": "protocol-v1-avalanche-c",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-avalanche-c"
},
Expand Down Expand Up @@ -683,6 +695,7 @@ module.exports =
"logsQueryRange": 5000,
"explorer": "https://bscscan.com",
"subgraphV1": {
"cliName": "bsc",
"name": "protocol-v1-bsc-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-bsc-mainnet"
},
Expand Down Expand Up @@ -737,6 +750,7 @@ module.exports =
"logsQueryRange": 10000,
"explorer": "https://etherscan.io",
"subgraphV1": {
"cliName": "mainnet",
"name": "protocol-v1-eth-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-eth-mainnet",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/eth-mainnet/api"
Expand Down Expand Up @@ -789,6 +803,7 @@ module.exports =
"logsQueryRange": 20000,
"explorer": "https://celoscan.io",
"subgraphV1": {
"cliName": "celo",
"name": "protocol-v1-celo-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-celo-mainnet"
},
Expand Down Expand Up @@ -825,6 +840,7 @@ module.exports =
"logsQueryRange": 20000,
"explorer": "https://basescan.org",
"subgraphV1": {
"cliName": "base",
"name": "protocol-v1-base-mainnet"
},
"publicRPCs": ["https://developer-access-mainnet.base.org"],
Expand Down
1 change: 1 addition & 0 deletions packages/metadata/module/networks/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface ContractAddresses {
}
interface SubgraphData {
readonly name: string;
readonly cliName?: string;
readonly hostedEndpoint?: string;
readonly satsumaEndpoint?: string;
}
Expand Down
16 changes: 16 additions & 0 deletions packages/metadata/module/networks/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default
"logsQueryRange": 10000,
"explorer": "https://goerli.etherscan.io",
"subgraphV1": {
"cliName": "goerli",
"name": "protocol-v1-goerli",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-goerli"
},
Expand Down Expand Up @@ -98,6 +99,7 @@ export default
"logsQueryRange": 10000,
"explorer": "https://mumbai.polygonscan.com",
"subgraphV1": {
"cliName": "mumbai",
"name": "protocol-v1-mumbai",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai"
},
Expand Down Expand Up @@ -152,6 +154,7 @@ export default
"logsQueryRange": 50000,
"explorer": "https://goerli-optimism.etherscan.io",
"subgraphV1": {
"cliName": "optimism-goerli",
"name": "protocol-v1-optimism-goerli",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-goerli"
},
Expand Down Expand Up @@ -193,6 +196,7 @@ export default
"logsQueryRange": 50000,
"explorer": "https://goerli.arbiscan.io",
"subgraphV1": {
"cliName": "arbitrum-goerli",
"name": "protocol-v1-arbitrum-goerli",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-arbitrum-goerli"
},
Expand Down Expand Up @@ -237,6 +241,7 @@ export default
"logsQueryRange": 50000,
"explorer": "https://testnet.snowtrace.io",
"subgraphV1": {
"cliName": "fuji",
"name": "protocol-v1-avalanche-fuji",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-avalanche-fuji"
},
Expand Down Expand Up @@ -277,6 +282,7 @@ export default
"logsQueryRange": 10000,
"explorer": "https://sepolia.etherscan.io",
"subgraphV1": {
"cliName": "sepolia",
"name": "protocol-v1-eth-sepolia",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/eth-sepolia/api"
},
Expand Down Expand Up @@ -350,6 +356,7 @@ export default
"logsQueryRange": 20000,
"explorer": "https://testnet-zkevm.polygonscan.org/",
"subgraphV1": {
"cliName": "polygon-zkevm-testnet",
"name": "protocol-v1-polygon-zkevm-testnet"
},
"publicRPCs": ["https://rpc.public.zkevm-test.net"],
Expand Down Expand Up @@ -396,6 +403,7 @@ export default
"logsQueryRange": 20000,
"explorer": "https://gnosisscan.io",
"subgraphV1": {
"cliName": "gnosis",
"name": "protocol-v1-xdai",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-xdai",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/xdai/api"
Expand Down Expand Up @@ -454,6 +462,7 @@ export default
"logsQueryRange": 10000,
"explorer": "https://polygonscan.com",
"subgraphV1": {
"cliName": "matic",
"name": "protocol-v1-matic",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-matic",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/matic/api"
Expand Down Expand Up @@ -512,6 +521,7 @@ export default
"logsQueryRange": 50000,
"explorer": "https://optimistic.etherscan.io",
"subgraphV1": {
"cliName": "optimism",
"name": "protocol-v1-optimism-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-mainnet"
},
Expand Down Expand Up @@ -569,6 +579,7 @@ export default
"logsQueryRange": 50000,
"explorer": "https://arbiscan.io",
"subgraphV1": {
"cliName": "arbitrum-one",
"name": "protocol-v1-arbitrum-one",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-arbitrum-one"
},
Expand Down Expand Up @@ -626,6 +637,7 @@ export default
"logsQueryRange": 50000,
"explorer": "https://snowtrace.io",
"subgraphV1": {
"cliName": "avalanche",
"name": "protocol-v1-avalanche-c",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-avalanche-c"
},
Expand Down Expand Up @@ -683,6 +695,7 @@ export default
"logsQueryRange": 5000,
"explorer": "https://bscscan.com",
"subgraphV1": {
"cliName": "bsc",
"name": "protocol-v1-bsc-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-bsc-mainnet"
},
Expand Down Expand Up @@ -737,6 +750,7 @@ export default
"logsQueryRange": 10000,
"explorer": "https://etherscan.io",
"subgraphV1": {
"cliName": "mainnet",
"name": "protocol-v1-eth-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-eth-mainnet",
"satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/eth-mainnet/api"
Expand Down Expand Up @@ -789,6 +803,7 @@ export default
"logsQueryRange": 20000,
"explorer": "https://celoscan.io",
"subgraphV1": {
"cliName": "celo",
"name": "protocol-v1-celo-mainnet",
"hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-celo-mainnet"
},
Expand Down Expand Up @@ -825,6 +840,7 @@ export default
"logsQueryRange": 20000,
"explorer": "https://basescan.org",
"subgraphV1": {
"cliName": "base",
"name": "protocol-v1-base-mainnet"
},
"publicRPCs": ["https://developer-access-mainnet.base.org"],
Expand Down
Loading

0 comments on commit 7615f92

Please sign in to comment.