Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitcoin indexer add db store #79

Merged
merged 24 commits into from
Dec 22, 2023
Merged

bitcoin indexer add db store #79

merged 24 commits into from
Dec 22, 2023

Conversation

oxf71
Copy link
Collaborator

@oxf71 oxf71 commented Dec 19, 2023

Closes: #78

Description


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

# Conflicts:
#	bitcoin/indexer.go
@oxf71 oxf71 self-assigned this Dec 19, 2023
@github-actions github-actions bot added the C:CLI label Dec 22, 2023
@oxf71
Copy link
Collaborator Author

oxf71 commented Dec 22, 2023

4s
Run bufbuild/buf-breaking-action@v1
  with:
    input: proto
    against: https://github.com/b2network/b2-node.git#branch=dev,ref=HEAD~1,subdir=proto
    buf_input_https_username: oxf71
    buf_input_https_password: ***
Error: Previously present file "ethermint/bitcoincommiter/v1/genesis.proto" was deleted.
Error: Previously present file "ethermint/bitcoincommiter/v1/params.proto" was deleted.
Error: Previously present file "ethermint/bitcoincommiter/v1/query.proto" was deleted.
Error: Previously present file "ethermint/bitcoincommiter/v1/tx.proto" was deleted.
Error: Previously present file "ethermint/bitcoinindexer/v1/genesis.proto" was deleted.
Error: Previously present file "ethermint/bitcoinindexer/v1/params.proto" was deleted.
Error: Previously present file "ethermint/bitcoinindexer/v1/query.proto" was deleted.
Error: Previously present file "ethermint/bitcoinindexer/v1/tx.proto" was deleted.
Error: buf found 8 breaking changes.

protobuf/break-check ci fail. The proto file was deleted, so the error was reported

Ignore this error for now

@oxf71
Copy link
Collaborator Author

oxf71 commented Dec 22, 2023

2023-12-22 05:02:05 [INFO]   File:[/github/workspace/.env.bitcoin]
2023-12-22 05:02:05 [ERROR]   Found errors in [dotenv-linter] linter!
2023-12-22 05:02:05 [ERROR]   Error code: 1. Command output:
------
Checking .env.bitcoin
.env.bitcoin:1 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:2 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:3 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:4 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:5 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:5 UnorderedKey: The BITCOIN_RPC_PASS key should go before the BITCOIN_RPC_PORT key
.env.bitcoin:6 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:7 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:7 UnorderedKey: The BITCOIN_DESTINATION key should go before the BITCOIN_NETWORK_NAME key
.env.bitcoin:8 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:8 UnorderedKey: The BITCOIN_ENABLE_INDEXER key should go before the BITCOIN_NETWORK_NAME key
.env.bitcoin:9 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:9 UnorderedKey: The BITCOIN_INDEXER_LISTEN_ADDRESS key should go before the BITCOIN_NETWORK_NAME key
.env.bitcoin:10 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:10 UnorderedKey: The BITCOIN_BRIDGE_ETH_RPC_URL key should go before the BITCOIN_DESTINATION key
.env.bitcoin:11 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:11 UnorderedKey: The BITCOIN_BRIDGE_CONTRACT_ADDRESS key should go before the BITCOIN_BRIDGE_ETH_RPC_URL key
.env.bitcoin:12 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:12 UnorderedKey: The BITCOIN_BRIDGE_ETH_PRIV_KEY key should go before the BITCOIN_BRIDGE_ETH_RPC_URL key
.env.bitcoin:13 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:13 UnorderedKey: The BITCOIN_BRIDGE_ABI key should go before the BITCOIN_BRIDGE_CONTRACT_ADDRESS key
.env.bitcoin:14 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:14 UnorderedKey: The BITCOIN_BRIDGE_GAS_LIMIT key should go before the BITCOIN_DESTINATION key
.env.bitcoin:15 UnorderedKey: The BITCOIN_ENABLE_COMMITTER key should go before the BITCOIN_ENABLE_INDEXER key
.env.bitcoin:16 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:16 UnorderedKey: The BITCOIN_STATE_HOST key should go before the BITCOIN_WALLET_NAME key
.env.bitcoin:17 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:17 UnorderedKey: The BITCOIN_STATE_PORT key should go before the BITCOIN_WALLET_NAME key
.env.bitcoin:18 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:18 UnorderedKey: The BITCOIN_STATE_USER key should go before the BITCOIN_WALLET_NAME key
.env.bitcoin:19 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:19 UnorderedKey: The BITCOIN_STATE_PASS key should go before the BITCOIN_STATE_PORT key
.env.bitcoin:20 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:20 UnorderedKey: The BITCOIN_STATE_DB_NAME key should go before the BITCOIN_STATE_HOST key
.env.bitcoin:21 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:21 UnorderedKey: The BITCOIN_BRIDGE_AA_SCA_REGISTRY key should go before the BITCOIN_BRIDGE_ABI key
.env.bitcoin:22 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:22 UnorderedKey: The BITCOIN_BRIDGE_AA_KERNEL_FACTORY key should go before the BITCOIN_BRIDGE_AA_SCA_REGISTRY key
.env.bitcoin:23 UnorderedKey: The BITCOIN_EVM_ENABLE_LISTENER key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:24 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:24 UnorderedKey: The BITCOIN_EVM_RPC_HOST key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:25 UnorderedKey: The BITCOIN_EVM_RPC_PORT key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:26 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:26 UnorderedKey: The BITCOIN_EVM_CONTRACT_ADDRESS key should go before the BITCOIN_EVM_ENABLE_LISTENER key
.env.bitcoin:27 UnorderedKey: The BITCOIN_EVM_START_HEIGHT key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:28 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:28 UnorderedKey: The BITCOIN_EVM_DEPOSIT key should go before the BITCOIN_EVM_ENABLE_LISTENER key
.env.bitcoin:29 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:29 UnorderedKey: The BITCOIN_EVM_WITHDRAW key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:31 ExtraBlankLine: Extra blank line detected
.env.bitcoin:32 ExtraBlankLine: Extra blank line detected
.env.bitcoin:33 ExtraBlankLine: Extra blank line detected
.env.bitcoin:34 ExtraBlankLine: Extra blank line detected

dotenv-linter check fail, Check it later @robertcc0410

@oxf71 oxf71 marked this pull request as ready for review December 22, 2023 05:11
@oxf71 oxf71 merged commit 38335f5 into b2network:dev Dec 22, 2023
25 of 27 checks passed
@robertcc0410
Copy link

2023-12-22 05:02:05 [INFO]   File:[/github/workspace/.env.bitcoin]
2023-12-22 05:02:05 [ERROR]   Found errors in [dotenv-linter] linter!
2023-12-22 05:02:05 [ERROR]   Error code: 1. Command output:
------
Checking .env.bitcoin
.env.bitcoin:1 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:2 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:3 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:4 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:5 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:5 UnorderedKey: The BITCOIN_RPC_PASS key should go before the BITCOIN_RPC_PORT key
.env.bitcoin:6 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:7 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:7 UnorderedKey: The BITCOIN_DESTINATION key should go before the BITCOIN_NETWORK_NAME key
.env.bitcoin:8 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:8 UnorderedKey: The BITCOIN_ENABLE_INDEXER key should go before the BITCOIN_NETWORK_NAME key
.env.bitcoin:9 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:9 UnorderedKey: The BITCOIN_INDEXER_LISTEN_ADDRESS key should go before the BITCOIN_NETWORK_NAME key
.env.bitcoin:10 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:10 UnorderedKey: The BITCOIN_BRIDGE_ETH_RPC_URL key should go before the BITCOIN_DESTINATION key
.env.bitcoin:11 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:11 UnorderedKey: The BITCOIN_BRIDGE_CONTRACT_ADDRESS key should go before the BITCOIN_BRIDGE_ETH_RPC_URL key
.env.bitcoin:12 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:12 UnorderedKey: The BITCOIN_BRIDGE_ETH_PRIV_KEY key should go before the BITCOIN_BRIDGE_ETH_RPC_URL key
.env.bitcoin:13 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:13 UnorderedKey: The BITCOIN_BRIDGE_ABI key should go before the BITCOIN_BRIDGE_CONTRACT_ADDRESS key
.env.bitcoin:14 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:14 UnorderedKey: The BITCOIN_BRIDGE_GAS_LIMIT key should go before the BITCOIN_DESTINATION key
.env.bitcoin:15 UnorderedKey: The BITCOIN_ENABLE_COMMITTER key should go before the BITCOIN_ENABLE_INDEXER key
.env.bitcoin:16 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:16 UnorderedKey: The BITCOIN_STATE_HOST key should go before the BITCOIN_WALLET_NAME key
.env.bitcoin:17 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:17 UnorderedKey: The BITCOIN_STATE_PORT key should go before the BITCOIN_WALLET_NAME key
.env.bitcoin:18 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:18 UnorderedKey: The BITCOIN_STATE_USER key should go before the BITCOIN_WALLET_NAME key
.env.bitcoin:19 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:19 UnorderedKey: The BITCOIN_STATE_PASS key should go before the BITCOIN_STATE_PORT key
.env.bitcoin:20 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:20 UnorderedKey: The BITCOIN_STATE_DB_NAME key should go before the BITCOIN_STATE_HOST key
.env.bitcoin:21 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:21 UnorderedKey: The BITCOIN_BRIDGE_AA_SCA_REGISTRY key should go before the BITCOIN_BRIDGE_ABI key
.env.bitcoin:22 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:22 UnorderedKey: The BITCOIN_BRIDGE_AA_KERNEL_FACTORY key should go before the BITCOIN_BRIDGE_AA_SCA_REGISTRY key
.env.bitcoin:23 UnorderedKey: The BITCOIN_EVM_ENABLE_LISTENER key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:24 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:24 UnorderedKey: The BITCOIN_EVM_RPC_HOST key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:25 UnorderedKey: The BITCOIN_EVM_RPC_PORT key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:26 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:26 UnorderedKey: The BITCOIN_EVM_CONTRACT_ADDRESS key should go before the BITCOIN_EVM_ENABLE_LISTENER key
.env.bitcoin:27 UnorderedKey: The BITCOIN_EVM_START_HEIGHT key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:28 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:28 UnorderedKey: The BITCOIN_EVM_DEPOSIT key should go before the BITCOIN_EVM_ENABLE_LISTENER key
.env.bitcoin:29 QuoteCharacter: The value has quote characters (', ")
.env.bitcoin:29 UnorderedKey: The BITCOIN_EVM_WITHDRAW key should go before the BITCOIN_INDEXER_LISTEN_ADDRESS key
.env.bitcoin:31 ExtraBlankLine: Extra blank line detected
.env.bitcoin:32 ExtraBlankLine: Extra blank line detected
.env.bitcoin:33 ExtraBlankLine: Extra blank line detected
.env.bitcoin:34 ExtraBlankLine: Extra blank line detected

dotenv-linter check fail, Check it later @robertcc0410

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants