README.md is outdated
The README file is outdated.
It was lastly updated in the following commit: https://github.com/balancer-labs/balancer-subgraph-v2/commit/0283d2b84324c7858da9edc03ceaec9a036c716f
Since then, the docker setup has been moved to a different repository: https://github.com/balancer-labs/balancer-subgraph-v2/pull/29
@mendesfabio Hey! When do you plan to release stable version of the subgraph ? Thanks for your work 👍
Or maybe you can explain how to deploy balancer v2 subgraph to custom network ? @mendesfabio
hey @bulbazavr1024 this is a stable release of the subgraph -- sorry if docs/README are not great.
If you want to deploy this to another network you have to first edit the networks.yaml and add a new network key to it and contract addresses following the pattern from other chains. Then, you have to create a new JSON file under assets folder, where you're going to put all stable and pricing assets for the given network - that's what allows subgraph to price other assets internally and derive USD values. Finally, run yarn codegen && yarn generate-assets [network] to generate the asset file and manifests for every network, with that you're ready to run graph deploy -- just remember to specify the manifest you want to use (something like subgraph.custom-network.yaml).
Ohh. Thanks for a such fast answer! I will try it tomorrow and ping you after it
@mendesfabio Hey!
Sep 07 15:40:59.918 INFO Received subgraph_deploy request, params: SubgraphDeployParams { name: SubgraphName("balancer-labs/balancer-v2"), ipfs_hash: DeploymentHash("QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh"), node_id: None, debug_fork: None, history_blocks: None }, component: JsonRpcServer
Sep 07 15:40:59.966 INFO Set subgraph start block, block: Some(#1846207 (58aafbda62ae836b6bc4dec5e2d1ec5452dfcc13611188186b7c012e83cf7f0d)), sgd: 0, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphRegistrar
Sep 07 15:40:59.966 INFO Graft base, block: None, base: None, sgd: 0, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphRegistrar
Sep 07 15:41:01.237 INFO Stopped subgraph, sgd: 2, subgraph_id: QmPSwgSc4S5U6uaNsG3haZRPdcyNFMLpdSNAbKAf3KnMvd, component: SubgraphInstanceManager
Sep 07 15:41:01.243 INFO Resolve subgraph files using IPFS, n_templates: 17, n_data_sources: 3, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.263 INFO Successfully resolved subgraph files using IPFS, features: ø, n_templates: 17, n_data_sources: 3, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.272 INFO Starting subgraph writer, queue_size: 5, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.277 INFO Committed write batch, time_ms: 39, weight: 18072, entities: 19, block_count: 2531, block_number: 1848890, sgd: 2, subgraph_id: QmPSwgSc4S5U6uaNsG3haZRPdcyNFMLpdSNAbKAf3KnMvd, component: SubgraphInstanceManager
Sep 07 15:41:01.294 INFO Data source count at start: 3, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.444 INFO Scanning blocks [1846208, 1846208], range_size: 1, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.497 INFO Scanning blocks [1846209, 1846218], range_size: 10, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.540 INFO Scanning blocks [1846219, 1846318], range_size: 100, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.596 INFO Scanning blocks [1846319, 1846357], range_size: 1000, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.644 INFO Scanning blocks [1846358, 1846470], range_size: 2000, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.691 INFO Contract call reverted, reason: empty response, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.695 INFO Scanning blocks [1846471, 1848470], range_size: 2000, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.697 INFO Contract call reverted, reason: empty response, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.697 WARN Failed to get pool tokens: 0x390af02754c6effb7ddd4466d0115ea3b6e49ce7000200000000000000000000, data_source: WeightedPoolV4Factory, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager > UserMapping
Sep 07 15:41:01.697 INFO Done processing trigger, gas_used: 45537206703, data_source: WeightedPoolV4Factory, handler: handleNewWeightedPoolV4, total_ms: 22, transaction: 0x3fee…bcb6, address: 0x25f1…456d, signature: PoolCreated(indexed address), sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.698 INFO Applying 6 entity operation(s), block_hash: 0xf7c895b00212dd9d32e69f08e71049867df8d697053e17aa62c12268623514c0, block_number: 1846360, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.788 INFO Contract call reverted, reason: empty response, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.788 WARN Failed to get pool tokens: 0x46ec4529d36a22f941399ed4520b741f4c519184000000000000000000000001, data_source: ComposableStablePoolV5Factory, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager > UserMapping
Sep 07 15:41:01.788 INFO Done processing trigger, gas_used: 40488689986, data_source: ComposableStablePoolV5Factory, handler: handleNewComposableStablePoolV5, total_ms: 10, transaction: 0x7def…9d50, address: 0xaced…369c, signature: PoolCreated(indexed address), sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.788 INFO Applying 6 entity operation(s), block_hash: 0x8d9bd423c47b8b3ef00022d149cb4d992e14efb35199809e2c67952876ac365e, block_number: 1846474, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.800 INFO Scanning blocks [1848471, 1850470], range_size: 2000, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:01.801 INFO Contract call reverted, reason: empty response, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.802 WARN Failed to get pool tokens: 0x7604a016123dc0cdfd7d923ae46fe78412591ade000000000000000000000002, data_source: ComposableStablePoolV5Factory, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager > UserMapping
Sep 07 15:41:01.802 INFO Done processing trigger, gas_used: 40488408807, data_source: ComposableStablePoolV5Factory, handler: handleNewComposableStablePoolV5, total_ms: 12, transaction: 0x81f9…c093, address: 0xaced…369c, signature: PoolCreated(indexed address), sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.802 INFO Applying 6 entity operation(s), block_hash: 0x5b842c64fc5984ef164f762f984cf63d08d33533c9cdb0ab763d47891289604d, block_number: 1848195, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.930 ERRO Handler skipped due to execution failure, transaction: 0x07b9…cc12, address: 0xa2e5…4255, signature: PoolBalanceChanged(indexed bytes32,indexed address,address[],int256[],uint256[]), error: transaction 07b9779e6b716b9ce3914e1b028de89887c18eaf27a587f1e3588a9ad540cc12: Mapping aborted at ~lib/array.ts, line 118, column 40, with message: Element type must be nullable if array is holey wasm backtrace: 0: 0x2874 - handleBalanceChange at block #1848890 (d6c748158d05495867e84a49efd3693236993cbddffee509bca78a67e4348785), block_hash: 0xd6c748158d05495867e84a49efd3693236993cbddffee509bca78a67e4348785, block_number: 1848890, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.938 ERRO Subgraph instance failed to run: transactionhandleBalanceChange at block #1848890 (d6c748158d05495867e84a49efd3693236993cbddffee509bca78a67e4348785), code: SubgraphSyncingFailure, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: SubgraphInstanceManager
Sep 07 15:41:01.951 INFO Scanning blocks [1850471, 1852470], range_size: 2000, sgd: 3, subgraph_id: QmaLbEwfkFnjnpnqoq53VwWyx3956KFXNjnHQbHMoaF2kh, component: BlockStream
Sep 07 15:41:02.801 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359216, current_block_head: 2359215, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:06.909 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359217, current_block_head: 2359216, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:09.992 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359218, current_block_head: 2359217, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:13.078 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359219, current_block_head: 2359218, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:17.182 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359220, current_block_head: 2359219, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:20.273 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359221, current_block_head: 2359220, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:23.360 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359222, current_block_head: 2359221, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:26.443 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359223, current_block_head: 2359222, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
Sep 07 15:41:30.547 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 2359224, current_block_head: 2359223, provider: mainnet-rpc-0, component: EthereumPollingBlockIngestor
This is my subgraph.yaml https://gist.github.com/bulbazavr1024/34b0ba886a5490ec3de4d76d0e836ca3
I receive this error after yarn deploy:local command https://devnet.tenetscan.io/tx/0x07b9779e6b716b9ce3914e1b028de89887c18eaf27a587f1e3588a9ad540cc12 - this is transaction hash, where my subgraph panics
@mendesfabio Please, have a look, if you can. I can share you all required information for that