Add a sushiswap-subgraph stack #496

Merged
prathamesh0 merged 10 commits from pm-sushiswap-graph into main 2023-08-14 08:47:21 +00:00
prathamesh0 commented 2023-08-11 09:15:37 +00:00 (Migrated from github.com)

Part of https://github.com/cerc-io/stack-orchestrator/issues/495

  • Add compose file for SushiSwap contract deployments
    • Add scripts for contract deployments
  • Fix postgres config in graph-node stack
  • Point to Lotus RPC endpoint in graph-node
  • Add script for deploying subgraph to graph-node
Part of https://github.com/cerc-io/stack-orchestrator/issues/495 - Add compose file for SushiSwap contract deployments - Add scripts for contract deployments - Fix postgres config in graph-node stack - Point to Lotus RPC endpoint in graph-node - Add script for deploying subgraph to graph-node
nikugogoi commented 2023-08-14 08:43:53 +00:00 (Migrated from github.com)

Error in graph-node pointing to Lotus RPC after deploying the subgraph:

Aug 14 08:26:01.825 INFO Committed write batch, time_ms: 13, weight: 240, entities: 0, block_count: 1, block_number: 146, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
Aug 14 08:26:09.345 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 147, current_block_head: 146, provider: lotus-fixturenet-rpc-0, component: EthereumPollingBlockIngestor
Aug 14 08:26:09.887 INFO Committed write batch, time_ms: 9, weight: 240, entities: 0, block_count: 1, block_number: 147, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
Aug 14 08:26:13.387 INFO Syncing 2 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 2, blocks_behind: 2, latest_block_head: 149, current_block_head: 147, provider: lotus-fixturenet-rpc-0, component: EthereumPollingBlockIngestor
Aug 14 08:26:13.915 INFO Reverting block to get back to main chain, revert_to_ptr: #146 (719d1cec985a4e269051b507e39154896c354cc8aa59fb25f54d61e57c758167), subgraph_ptr: #147 (09194a01652e55bb9175a90fe4a90f46356f2bdf667f35640f6ebd2f76a01a67), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
Aug 14 08:26:13.918 INFO Reverting block to get back to main chain, revert_to_ptr: #146 (719d1cec985a4e269051b507e39154896c354cc8aa59fb25f54d61e57c758167), subgraph_ptr: #147 (09194a01652e55bb9175a90fe4a90f46356f2bdf667f35640f6ebd2f76a01a67), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
....
Aug 14 08:26:53.967 INFO Reverting block to get back to main chain, revert_to_ptr: #2 (dc4a92284a8516a564c5414fb11ecda3835f3fff1044b9517c9f9357b130663a), subgraph_ptr: #3 (1f58b5d9cc603450471d2fd39e904de3115ca935b0e69b9266a3c074d0857016), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
Aug 14 08:26:53.980 INFO Reverting block to get back to main chain, revert_to_ptr: #0 (03d95de97c2eace18643fc9d6cafbd63b03d0a4f2ff2e528806d201cd4381acd), subgraph_ptr: #2 (dc4a92284a8516a564c5414fb11ecda3835f3fff1044b9517c9f9357b130663a), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
...
Aug 14 08:33:01.139 INFO Scanning blocks [1, 1], range_size: 1, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream
Aug 14 08:33:01.151 INFO Committed write batch, time_ms: 6, weight: 240, entities: 0, block_count: 1, block_number: 1, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager
Aug 14 08:33:05.148 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 252, current_block_head: 251, provider: lotus-fixturenet-rpc-0, component: EthereumPollingBlockIngestor
Aug 14 08:33:05.161 INFO Scanning blocks [2, 2], range_size: 10, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream
Aug 14 08:33:05.555 WARN Trying again after eth_getBlockByNumber RPC call for block number 2 failed (attempt #10) with result Err(RPC error: Error { code: ServerError(1), message: "requested epoch was a null round", data: None }\n\nCaused by:\n    Server error: requested epoch was a null round), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream
Aug 14 08:33:05.809 WARN Trying again after eth_getBlockByNumber RPC call for block number 2 failed (attempt #11) with result Err(RPC error: Error { code: ServerError(1), message: "requested epoch was a null round", data: None }\n\nCaused by:\n    Server error: requested epoch was a null round), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream
...
Error in graph-node pointing to Lotus RPC after deploying the subgraph: ```bash Aug 14 08:26:01.825 INFO Committed write batch, time_ms: 13, weight: 240, entities: 0, block_count: 1, block_number: 146, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager Aug 14 08:26:09.345 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 147, current_block_head: 146, provider: lotus-fixturenet-rpc-0, component: EthereumPollingBlockIngestor Aug 14 08:26:09.887 INFO Committed write batch, time_ms: 9, weight: 240, entities: 0, block_count: 1, block_number: 147, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager Aug 14 08:26:13.387 INFO Syncing 2 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 2, blocks_behind: 2, latest_block_head: 149, current_block_head: 147, provider: lotus-fixturenet-rpc-0, component: EthereumPollingBlockIngestor Aug 14 08:26:13.915 INFO Reverting block to get back to main chain, revert_to_ptr: #146 (719d1cec985a4e269051b507e39154896c354cc8aa59fb25f54d61e57c758167), subgraph_ptr: #147 (09194a01652e55bb9175a90fe4a90f46356f2bdf667f35640f6ebd2f76a01a67), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager Aug 14 08:26:13.918 INFO Reverting block to get back to main chain, revert_to_ptr: #146 (719d1cec985a4e269051b507e39154896c354cc8aa59fb25f54d61e57c758167), subgraph_ptr: #147 (09194a01652e55bb9175a90fe4a90f46356f2bdf667f35640f6ebd2f76a01a67), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager .... Aug 14 08:26:53.967 INFO Reverting block to get back to main chain, revert_to_ptr: #2 (dc4a92284a8516a564c5414fb11ecda3835f3fff1044b9517c9f9357b130663a), subgraph_ptr: #3 (1f58b5d9cc603450471d2fd39e904de3115ca935b0e69b9266a3c074d0857016), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager Aug 14 08:26:53.980 INFO Reverting block to get back to main chain, revert_to_ptr: #0 (03d95de97c2eace18643fc9d6cafbd63b03d0a4f2ff2e528806d201cd4381acd), subgraph_ptr: #2 (dc4a92284a8516a564c5414fb11ecda3835f3fff1044b9517c9f9357b130663a), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager ... Aug 14 08:33:01.139 INFO Scanning blocks [1, 1], range_size: 1, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream Aug 14 08:33:01.151 INFO Committed write batch, time_ms: 6, weight: 240, entities: 0, block_count: 1, block_number: 1, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: SubgraphInstanceManager Aug 14 08:33:05.148 INFO Syncing 1 blocks from Ethereum, code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 252, current_block_head: 251, provider: lotus-fixturenet-rpc-0, component: EthereumPollingBlockIngestor Aug 14 08:33:05.161 INFO Scanning blocks [2, 2], range_size: 10, sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream Aug 14 08:33:05.555 WARN Trying again after eth_getBlockByNumber RPC call for block number 2 failed (attempt #10) with result Err(RPC error: Error { code: ServerError(1), message: "requested epoch was a null round", data: None }\n\nCaused by:\n Server error: requested epoch was a null round), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream Aug 14 08:33:05.809 WARN Trying again after eth_getBlockByNumber RPC call for block number 2 failed (attempt #11) with result Err(RPC error: Error { code: ServerError(1), message: "requested epoch was a null round", data: None }\n\nCaused by:\n Server error: requested epoch was a null round), sgd: 1, subgraph_id: QmYYQzXALUnbQTYgys6XZ83uSmqee6MX3ahKotaTcD9ceh, component: BlockStream ... ```
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#496
No description provided.