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

improve submitter docs #2824

Merged
merged 4 commits into from
Jun 30, 2024
Merged

improve submitter docs #2824

merged 4 commits into from
Jun 30, 2024

Conversation

trajan0x
Copy link
Contributor

@trajan0x trajan0x commented Jun 30, 2024

Description

Adds documentation for the submitter dashboard

Summary by CodeRabbit

  • Documentation

    • Updated instructions for setting up submitter and relayer dashboards.
    • Added details on Ethergo Submitter's functionalities and configuration.
    • Updated image paths and links in documentation for better clarity.
    • Introduced a section on monitoring metrics using Grafana Dashboard.
  • New Features

    • Introduced Grafana dashboards for monitoring RFQ relayer and submitter metrics, including panels for various financial metrics and transaction statuses.
  • Chores

    • Emphasized the need for documentation updates when metrics are modified.

Copy link
Contributor

coderabbitai bot commented Jun 30, 2024

Warning

Rate limit exceeded

@trajan0x has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 2 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 32b7cd7 and ae359fb.

Walkthrough

Recent updates span across several documentation and technical files to enhance functionality, improve observability, and update configurations and metrics for various modules within the project. Noteworthy additions include observability metrics, updated Grafana dashboard configurations, detailed Submitter module documentation, and other minor enhancements aimed at maintaining coherence and efficiency.

Changes

Files/Paths Change Summary
docs/bridge/docs/CCTP/Relayer.md Added details on setting up the submitter dashboard and enhancing observability within CCTP relayer config.
docs/bridge/docs/Services/Signer.md Updated image paths for AWS-related screenshots reflecting changes in the directory structure.
docs/bridge/docs/Services/Submitter.md Included detailed information about Ethergo Submitter module, configuration, and observability metrics.
docs/bridge/docs/rfq/Relayer/Relayer.md Updated a link to a custom Grafana dashboard and added metrics information for the relayer.
ethergo/submitter/README.md Added a section on Grafana Dashboard, including a link to the dashboard JSON file for monitoring metrics.
ethergo/submitter/dashboard.json Modified several panels, added new panels, updated expressions, titles, and visualization settings.
services/rfq/relayer/dashboards/...json Defined a Grafana dashboard with various panels to monitor metrics related to the RFQ relayer.
ethergo/submitter/metrics.go Added comments highlighting the need to update documentation/Grafana dashboard after metric changes.

Poem

Amidst the code, the changes flow,
Metrics bloom where dashboards grow.
Panels update, colors shine,
Observability, oh how divine!
With each commit, we watch, we cheer,
For progress made, the end is near.
In earnest work, we find our grace,
Together, coding space to space.


Tip

Early access features: enabled

We are currently testing the following features in early access:

  • OpenAI gpt-4o model for code reviews and chat: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available.

Note:

  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
  • Please join our Discord Community to provide feedback and report issues.
  • OSS projects are always opted into early access features.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Added recommendation to set up the submitter dashboard in docs/bridge/docs/CCTP/Relayer.md
  • Updated image paths in docs/bridge/docs/Services/Signer.md
  • Comprehensive documentation for Ethergo Submitter module in docs/bridge/docs/Services/Submitter.md
  • Enhanced observability section in docs/bridge/docs/rfq/Relayer/Relayer.md
  • New section on Grafana Dashboard in ethergo/submitter/README.md
  • Updated Grafana dashboard in ethergo/submitter/dashboard.json
  • Added new Grafana dashboard configuration in services/rfq/relayer/dashboards/dashboard.json

7 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

"showLineNumbers": false,
"showMiniMap": false
},
"content": "This is the rfq. It is used to track metrics for the rfq relayer. \n\nIf you update this dashboard please be sure to update the [docs](https://bridge-docs-theta.vercel.app/docs/rfq/Relayer/#observability) at `docs/bridge/` and the dashboard folder in `services/rfq/relayer/dashbords/dashboard.json`",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📚 spelling: Typo in the URL path: 'dashbords' should be 'dashboards'.

Copy link

codecov bot commented Jun 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.58355%. Comparing base (44076b2) to head (ae359fb).

Additional details and impacted files
@@                 Coverage Diff                 @@
##              master       #2824         +/-   ##
===================================================
+ Coverage   25.58173%   25.58355%   +0.00181%     
===================================================
  Files            766         766                 
  Lines          54922       54922                 
  Branches          80          80                 
===================================================
+ Hits           14050       14051          +1     
- Misses         39423       39424          +1     
+ Partials        1449        1447          -2     
Flag Coverage Δ
cctp-relayer 31.93780% <ø> (ø)
ethergo 48.27025% <ø> (+0.01356%) ⬆️
explorer 4.97877% <ø> (ø)
omnirpc 33.08129% <ø> (ø)
opbot 0.21082% <ø> (ø)
promexporter 8.50242% <ø> (ø)
rfq 27.12163% <ø> (ø)
scribe 18.11159% <ø> (ø)
tools 30.55118% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cloudflare-workers-and-pages bot commented Jun 30, 2024

Deploying sanguine-fe with  Cloudflare Pages  Cloudflare Pages

Latest commit: ae359fb
Status: ✅  Deploy successful!
Preview URL: https://a381b1fa.sanguine-fe.pages.dev
Branch Preview URL: https://fix-document-submitter-dashb.sanguine-fe.pages.dev

View logs

@github-actions github-actions bot added the go Pull requests that update Go code label Jun 30, 2024
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

  • Added comment in ethergo/submitter/metrics.go to ensure documentation and Grafana dashboard updates with metric changes.
  • No major changes found since last review.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 11

Outside diff range and nitpick comments (18)
ethergo/submitter/README.md (1)

Line range hint 3-3: Add a period after "etc".

Ensure proper punctuation for clarity.

  Submitter is a module that submits transactions to an evm based-blockchain and bumps them/checks for completion until they are done. It is designed to abstract away gas bumping, confirmation checking, etc from the caller.
+ etc. from the caller.
docs/bridge/docs/Services/Signer.md (5)

Line range hint 5-5: Correct the verb form "setup".

The word “setup” is a noun. The verb is spelled with a white space.

  ## Setup with AWS KMS

  In order to setup the signer with AWS KMS, you will need to create a KMS key and give the appropriate permissions to a user that will be using the signer. While we do not have IAC (Infrastructure as Code) for this, you can follow the steps below to setup the KMS key and the user.
+ In order to set up the signer with AWS KMS, you will need to create a KMS key and give the appropriate permissions to a user that will be using the signer. While we do not have IAC (Infrastructure as Code) for this, you can follow the steps below to set up the KMS key and the user.
Tools
LanguageTool

[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png) 5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)

Markdownlint

11-11: null
Bare URL used

(MD034, no-bare-urls)


Line range hint 7-7: Add missing commas.

Add commas for better readability.

  **Note**: If you already have an IAM user you can skip to the [Create a KMS Key](#create-a-kms-key) section. If you have a custom IAM setup/role skip this and assign the permissions to the user or role you want to use.
+ **Note**: If you already have an IAM user, you can skip to the [Create a KMS Key](#create-a-kms-key) section. If you have a custom IAM setup/role, skip this and assign the permissions to the user or role you want to use.
Tools
LanguageTool

[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png) 5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)

Markdownlint

11-11: null
Bare URL used

(MD034, no-bare-urls)


Line range hint 97-97: Add a comma before "and".

Add a comma for better readability.

  Note: this is a very basic example and you should not use this in production. You should store your key in a secure location and use it securely.
+ Note: this is a very basic example, and you should not use this in production. You should store your key in a secure location and use it securely.
Tools
LanguageTool

[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png) 5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)

Markdownlint

11-11: null
Bare URL used

(MD034, no-bare-urls)


Line range hint 100-108: Fix multiple consecutive blank lines and loose punctuation marks.

Remove the extra blank lines and fix the loose punctuation marks for better readability.

- 
- 
  `signer.yml`:
  ```yaml
  signer_config:
    type: "aws"
    file: "/path/to/aws.yaml"
  • aws.yaml:
    region: "us-east-1" # should match the region of your key!
    access_key: "YOUR_ACCESS_KEY"
    access_secret: "YOUR_ACCESS_SECRET"
    key_id: "f15fa759-7c13-44eb-a868-e7388aa1387b" # this will be the id from above.

<details>
<summary>Tools</summary>

<details>
<summary>LanguageTool</summary><blockquote>

[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png)  5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)

</blockquote></details>
<details>
<summary>Markdownlint</summary><blockquote>

11-11: null
Bare URL used

(MD034, no-bare-urls)

</blockquote></details>

</details>

---

Line range hint `99-99`: **Fix multiple consecutive blank lines.**

Remove the extra blank lines for better readability.

```diff
- 
  Note: this is a very basic example and you should not use this in production. You should store your key in a secure location and use it securely.
Tools
LanguageTool

[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png) 5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)

Markdownlint

11-11: null
Bare URL used

(MD034, no-bare-urls)

docs/bridge/docs/CCTP/Relayer.md (2)

Line range hint 18-18: Consider replacing "only" with a different word.

Consider replacing ‘only’ with a different word to let your writing stand out.

  This mode can only be used for USDC to USDC bridges and is not commonly used.
+ This mode can exclusively be used for USDC to USDC bridges and is not commonly used.

Line range hint 32-32: Consider a more expressive alternative to "To do this".

Consider a more expressive alternative for better readability.

  The CCTP Relayer can also be run with docker. To do this, you will need to pull the [docker image](https://github.com/synapsecns/sanguine/pkgs/container/sanguine%2Fcctp-relayer) and run it with the config file:
+ The CCTP Relayer can also be run with docker. To achieve this, you will need to pull the [docker image](https://github.com/synapsecns/sanguine/pkgs/container/sanguine%2Fcctp-relayer) and run it with the config file:
docs/bridge/docs/rfq/Relayer/Relayer.md (10)

Line range hint 26-26: Add a comma after 'Right now'.

The phrase "Right now" should be followed by a comma for correct punctuation.

- Right now only the CCTP rebalancer is supported and works like this:
+ Right now, only the CCTP rebalancer is supported and works like this:

Line range hint 28-28: Add a preposition after 'continue'.

It seems like a preposition is missing after 'continue'. Consider adding 'with' or 'to' for clarity.

- If the balance is below the `maintenance_balance_pct`, continue
+ If the balance is below the `maintenance_balance_pct`, continue with

Line range hint 41-41: Add a definite article 'the' before 'transaction'.

The phrase "if transaction is finalized" should be "if the transaction is finalized".

- Check the chain to see if transaction is finalized yet, if not wait until it is.
+ Check the chain to see if the transaction is finalized yet, if not wait until it is.

Line range hint 41-41: Add a comma after 'yet'.

The phrase "if not wait until it is" should be "if not, wait until it is".

- Check the chain to see if transaction is finalized yet, if not wait until it is.
+ Check the chain to see if the transaction is finalized yet, if not, wait until it is.

Line range hint 42-42: Add a comma before 'and'.

Use a comma before 'and' if it connects two independent clauses.

- This means the transaction is finalized on chain and we can now relay it to the destination chain.
+ This means the transaction is finalized on chain, and we can now relay it to the destination chain.

Line range hint 44-44: Add a comma after 'it'.

The phrase "Once we get it we mark the transaction" should be "Once we get it, we mark the transaction".

- Listen for the relay in the logs. Once we get it we mark the transaction as [`RelayComplete`](https://pkg.go.dev/github.com/synapsecns/sanguine/services/rfq/relayer/reldb#RelayComplete)
+ Listen for the relay in the logs. Once we get it, we mark the transaction as [`RelayComplete`](https://pkg.go.dev/github.com/synapsecns/sanguine/services/rfq/relayer/reldb#RelayComplete)

Line range hint 61-61: Consider a more expressive alternative to 'To do this'.

The phrase "To do this" is a bit wordy. Consider using a more concise alternative.

- To do this, you will need to pull the [docker image](https://github.com/synapsecns/sanguine/pkgs/container/sanguine%2Frfq-relayer) and run it with the config file:
+ Simply pull the [docker image](https://github.com/synapsecns/sanguine/pkgs/container/sanguine%2Frfq-relayer) and run it with the config file:

Line range hint 87-87: Use a proper markdown link instead of a bare URL.

Replace the bare URL with a proper markdown link.

- You can install Go by following the instructions [here](https://golang.org/doc/install).
+ You can install Go by following the instructions [here](https://golang.org/doc/install).

Line range hint 88-88: Use a proper markdown link instead of a bare URL.

Replace the bare URL with a proper markdown link.

- git clone https://github.com/synapsecns/sanguine --recursive
+ `git clone https://github.com/synapsecns/sanguine --recursive`

Line range hint 89-89: Use a proper markdown link instead of a bare URL.

Replace the bare URL with a proper markdown link.

- docker run ghcr.io/synapsecns/sanguine/rfq-relayer:latest --config /path/to/config
+ `docker run ghcr.io/synapsecns/sanguine/rfq-relayer:latest --config /path/to/config`
Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 44076b2 and 39c1662.

Files ignored due to path filters (18)
  • docs/bridge/docs/Services/img/signer/aws/create-acces-key.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/create-access-key.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/iam-dash.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/iam-preview-user.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/key-details.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-1.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-2.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-advanced.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-labels.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-permissons.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-user-permissions.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/kms-user.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/perms.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/review.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/user-list.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/signer/aws/user-perms.png is excluded by !**/*.png
  • docs/bridge/docs/Services/img/submitter/metrics.png is excluded by !**/*.png
  • docs/bridge/docs/rfq/Relayer/dashboard.png is excluded by !**/*.png
Files selected for processing (7)
  • docs/bridge/docs/CCTP/Relayer.md (1 hunks)
  • docs/bridge/docs/Services/Signer.md (2 hunks)
  • docs/bridge/docs/Services/Submitter.md (1 hunks)
  • docs/bridge/docs/rfq/Relayer/Relayer.md (1 hunks)
  • ethergo/submitter/README.md (1 hunks)
  • ethergo/submitter/dashboard.json (18 hunks)
  • services/rfq/relayer/dashboards/dashboard.json (1 hunks)
Files skipped from review due to trivial changes (1)
  • services/rfq/relayer/dashboards/dashboard.json
Additional context used
LanguageTool
docs/bridge/docs/Services/Submitter.md

[uncategorized] ~30-~30: Loose punctuation mark.
Context: .... The metrics are: - num_pending_txs: The number of pending transactions. - ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~31-~31: Loose punctuation mark.
Context: ...pending transactions. - current_nonce: The current nonce. - `oldest_pending_t...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~32-~32: Loose punctuation mark.
Context: ...he current nonce. - oldest_pending_tx: The age of the oldest pending transacti...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~33-~33: Loose punctuation mark.
Context: ...ending transaction. - confirmed_queue: The number of confirmed transactions. ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~34-~34: Loose punctuation mark.
Context: ...confirmed transactions. - gas_balance: The current gas balance. The metrics ...

(UNLIKELY_OPENING_PUNCTUATION)

ethergo/submitter/README.md

[style] ~3-~3: In American English, abbreviations like “etc.” require a period.
Context: ...way gas bumping, confirmation checking, etc from the caller. ## Understanding `Su...

(ETC_PERIOD)

docs/bridge/docs/Services/Signer.md

[grammar] ~5-~5: The word “setup” is a noun. The verb is spelled with a white space.
Context: ...ner ## Setup with AWS KMS In order to setup the signer with AWS KMS, you will need ...

(NOUN_VERB_CONFUSION)


[grammar] ~5-~5: The word “setup” is a noun. The verb is spelled with a white space.
Context: ...this, you can follow the steps below to setup the KMS key and the user. Note: If...

(NOUN_VERB_CONFUSION)


[uncategorized] ~7-~7: Possible missing comma found.
Context: .... Note: If you already have an IAM user you can skip to the [Create a KMS Key](...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~7-~7: Possible missing comma found.
Context: ...section. If you have a custom IAM setup/role skip this and assign the permissions to...

(AI_HYDRA_LEO_MISSING_COMMA)


[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png) 5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)


[uncategorized] ~71-~71: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...key in the signer. The field is required but the value doesn't matter. - Description...

(COMMA_COMPOUND_SENTENCE_2)


[uncategorized] ~87-~87: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...review.png) 7. Your key will be created and you will be redirected to the key detai...

(COMMA_COMPOUND_SENTENCE)


[uncategorized] ~97-~97: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...key. Note: this is a very basic example and you should not use this in production. ...

(COMMA_COMPOUND_SENTENCE)


[uncategorized] ~100-~100: Loose punctuation mark.
Context: ...tion and use it securely. signer.yml: ```yaml signer_config: type: "aws" ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~107-~107: Loose punctuation mark.
Context: ...ile: "/path/to/aws.yaml" `aws.yaml`:yaml region: "us-east-1" # should ma...

(UNLIKELY_OPENING_PUNCTUATION)

docs/bridge/docs/CCTP/Relayer.md

[style] ~18-~18: Consider replacing ‘only’ with a different word to let your writing stand out.
Context: ....sol) events are relayed. This mode can only be used for USDC to USDC bridges and is...

(ONLY_EXCLUSIVELY_STYLE)


[style] ~32-~32: Consider a more expressive alternative.
Context: ...Relayer can also be run with docker. To do this, you will need to pull the [docker...

(DO_ACHIEVE)


[uncategorized] ~96-~96: Loose punctuation mark.
Context: ...559: true ```

- cctp_type: The type of CCTP to listen to. Can be e...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~96-~96: To form a complete sentence, be sure to include a subject or ‘there’.
Context: ...p_type: The type of CCTP to listen to. Can be either synapseorcircle. - ch...

(MISSING_IT_THERE)


[uncategorized] ~97-~97: Loose punctuation mark.
Context: ...ither synapse or circle. - chains: A list of chain ids and their correspon...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~98-~98: Loose punctuation mark.
Context: ...d if both are set. - base_omnirpc_url: The base URL for the OmniRPC service. ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~99-~99: Loose punctuation mark.
Context: ...he OmniRPC service. - unbonded_signer: The signer to use for transactions. Can...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~99-~99: To form a complete sentence, be sure to include a subject or ‘there’.
Context: ...r: The signer to use for transactions. Can be either AWS, FileorGCP`. The f...

(MISSING_IT_THERE)


[uncategorized] ~100-~100: Loose punctuation mark.
Context: ...nd here. - port: The port to run the relayer on (e.g. 80...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~103-~103: Loose punctuation mark.
Context: ... in milliseconds. - retry_interval_ms: The interval to wait between attestatio...

(UNLIKELY_OPENING_PUNCTUATION)

docs/bridge/docs/rfq/Relayer/Relayer.md

[style] ~11-~11: Consider a shorter alternative to avoid wordiness.
Context: ...n the origin chain. - Rebalancing - In order to handle the complexity of user flows, th...

(IN_ORDER_TO_PREMIUM)


[typographical] ~26-~26: It appears that a comma is missing after this introductory phrase.
Context: ...yer has enough liquidity on each chain. Right now only the CCTP rebalancer is supported a...

(RIGHT_NOW_PUNCTUATION_COMMA)


[grammar] ~28-~28: Probably a preposition is missing after ‘continue’.
Context: ...is below the maintenance_balance_pct, continue 2. Calculate the amount to rebalance by taking the d...

(ATD_VERBS_TO_COLLOCATION)


[style] ~30-~30: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ebalance to the max_rebalance_amount. If the amount to rebalance is less than th...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[uncategorized] ~41-~41: Possible missing article found.
Context: ...committed. 1. Check the chain to see if transaction is finalized yet, if not wait until it ...

(AI_HYDRA_LEO_MISSING_THE)


[uncategorized] ~41-~41: Possible missing comma found.
Context: ...see if transaction is finalized yet, if not wait until it is. 1. Once the transacti...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~42-~42: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...ns the transaction is finalized on chain and we can now relay it to the destination ...

(COMMA_COMPOUND_SENTENCE)


[typographical] ~44-~44: There might be a comma missing.
Context: ... for the relay in the logs. Once we get it we mark the transaction as [`RelayCompl...

(IF_PRP_PRP_COMMA)


[style] ~61-~61: Consider a more expressive alternative.
Context: ...relayer can also be run with docker. To do this, you will need to pull the [docker...

(DO_ACHIEVE)

Markdownlint
docs/bridge/docs/Services/Submitter.md

30-30: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


31-31: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


32-32: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


33-33: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


34-34: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


36-36: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


5-5: null
Multiple top-level headings in the same document

(MD025, single-title, single-h1)

ethergo/submitter/README.md

5-5: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


50-50: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


51-51: Expected: 1; Actual: 3
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


52-52: Expected: 1; Actual: 4
Multiple consecutive blank lines

(MD012, no-multiple-blanks)

docs/bridge/docs/Services/Signer.md

39-39: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


99-99: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


50-50: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


101-101: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


108-108: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


51-51: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


11-11: null
Bare URL used

(MD034, no-bare-urls)


51-51: null
Bare URL used

(MD034, no-bare-urls)

docs/bridge/docs/CCTP/Relayer.md

5-5: Expected: h2; Actual: h3
Heading levels should only increment by one level at a time

(MD001, heading-increment)


96-96: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


97-97: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


98-98: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


99-99: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


100-100: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


101-101: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


102-102: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


103-103: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


18-18: Expected: #configuration; Actual: #Configuration
Link fragments should be valid

(MD051, link-fragments)

docs/bridge/docs/rfq/Relayer/Relayer.md

20-20: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


21-21: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


22-22: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


218-218: Column: 5
Hard tabs

(MD010, no-hard-tabs)


17-17: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


181-181: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


87-87: null
Bare URL used

(MD034, no-bare-urls)


88-88: null
Bare URL used

(MD034, no-bare-urls)


89-89: null
Bare URL used

(MD034, no-bare-urls)


167-167: null
Bare URL used

(MD034, no-bare-urls)


175-175: null
Bare URL used

(MD034, no-bare-urls)


181-181: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

Gitleaks
docs/bridge/docs/Services/Signer.md

112-112: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

docs/bridge/docs/rfq/Relayer/Relayer.md

109-109: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


129-129: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


171-171: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


174-174: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

Additional comments not posted (10)
docs/bridge/docs/Services/Submitter.md (1)

11-17: Correct list indentation and punctuation.

Ensure consistent indentation and punctuation in the list items.

- - **Transaction Submission**: The main function of the module is the `SubmitTransaction` method, which returns a nonce and ensures that the transaction will eventually be confirmed.
- - **Gas Bumping**: Automatically adjusts the gas price to ensure timely transaction confirmation.
- - **Confirmation Checking**: Continuously checks the status of submitted transactions to confirm their inclusion in the blockchain.
- - **Reaper Functionality**: Flushes old entries in the database that have reached a terminal state.
+ - **Transaction Submission**: The main function of the module is the `SubmitTransaction` method, which returns a nonce and ensures that the transaction will eventually be confirmed.
+ - **Gas Bumping**: Automatically adjusts the gas price to ensure timely transaction confirmation.
+ - **Confirmation Checking**: Continuously checks the status of submitted transactions to confirm their inclusion in the blockchain.
+ - **Reaper Functionality**: Flushes old entries in the database that have reached a terminal state.

Likely invalid or redundant comment.

docs/bridge/docs/rfq/Relayer/Relayer.md (2)

224-227: Good documentation on observability.

The section provides detailed information about the observability features of the relayer, including metrics and Grafana dashboards.


228-231: Good documentation on metrics.

The section provides a clear and concise list of the metrics exposed by the relayer.

ethergo/submitter/dashboard.json (7)

26-31: Good documentation on required plugins.

The section provides a clear list of the required plugins and their versions.


67-86: Good documentation on the "Submitter Dashboard" panel.

The section provides a clear configuration for the "Submitter Dashboard" panel.


88-99: Good documentation on the "Submitter" panel.

The section provides a clear configuration for the "Submitter" panel.


Line range hint 160-196: Good documentation on the "Pending Transactions" panel.

The section provides a clear configuration for the "Pending Transactions" panel.


Line range hint 228-295: Good documentation on the "Nonce" panel.

The section provides a clear configuration for the "Nonce" panel.


Line range hint 327-395: Good documentation on the "Oldest Pending TX" panel.

The section provides a clear configuration for the "Oldest Pending TX" panel.


Line range hint 427-494: Good documentation on the "Confirmed Queue Size" panel.

The section provides a clear configuration for the "Confirmed Queue Size" panel.


3. Choose `Next` and fill in the following options:

![KMS Creation Step 2](img/kms-labels.png)
![KMS Creation Step 2](img/signer/aws/kms-labels.png)

- Alias: This is an alias that will be used to reference the key in the signer. The field is required but the value doesn't matter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comma before "but".

Add a comma for better readability.

  - Alias: This is an alias that will be used to reference the key in the signer. The field is required but the value doesn't matter.
+ - Alias: This is an alias that will be used to reference the key in the signer. The field is required, but the value doesn't matter.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Alias: This is an alias that will be used to reference the key in the signer. The field is required but the value doesn't matter.
- Alias: This is an alias that will be used to reference the key in the signer. The field is required, but the value doesn't matter.
Tools
LanguageTool

[uncategorized] ~71-~71: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...key in the signer. The field is required but the value doesn't matter. - Description...

(COMMA_COMPOUND_SENTENCE_2)


4. Add tags if you want and click `Create User`

![IAM Preview User](img/iam-preview-user.png)
![IAM Preview User](img/signer/aws/iam-preview-user.png)

5. The user will be create and appear in the list of users. Click on the user to view the user details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix verb form "be create".

Correct the verb form for grammatical accuracy.

  5. The user will be create and appear in the list of users. Click on the user to view the user details.
+ 5. The user will be created and appear in the list of users. Click on the user to view the user details.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
5. The user will be create and appear in the list of users. Click on the user to view the user details.
5. The user will be created and appear in the list of users. Click on the user to view the user details.
Tools
LanguageTool

[grammar] ~26-~26: There may an error in the verb form ‘be create’.
Context: ...iam-preview-user.png) 5. The user will be create and appear in the list of users. Click ...

(MD_BE_NON_VBP)


8. Click on `Create access key`

![Create Access Key](img/create-acces-key.png)
![Create Access Key](img/signer/aws/create-acces-key.png)

Note down the `Access key ID` and `Secret access key` as you will need these to configure the signer.

### Create a KMS Key
1. Sign in to the AWS Management Console and open the KMS console at https://console.aws.amazon.com/kms.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid bare URLs.

Use markdown link syntax instead of bare URLs.

  1. Sign in to the AWS Management Console and open the KMS console at https://console.aws.amazon.com/kms.
+ 1. Sign in to the AWS Management Console and open the KMS console at [AWS KMS Console](https://console.aws.amazon.com/kms).

Committable suggestion was skipped due to low confidence.

Tools
Markdownlint

51-51: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


51-51: null
Bare URL used

(MD034, no-bare-urls)

@@ -9,23 +9,23 @@
### Create an IAM User

1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid bare URLs.

Use markdown link syntax instead of bare URLs.

  1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam.
+ 1. Sign in to the AWS Management Console and open the IAM console at [AWS IAM Console](https://console.aws.amazon.com/iam).

Committable suggestion was skipped due to low confidence.

Tools
Markdownlint

11-11: null
Bare URL used

(MD034, no-bare-urls)


6. Choose `Next` and review your key settings. If everything looks good, choose `Finish`.

![Review](img/review.png)
![Review](img/signer/aws/review.png)

7. Your key will be created and you will be redirected to the key details page. Note down the `Key ID` as you will need this to configure the signer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comma before "and".

Add a comma for better readability.

  7. Your key will be created and you will be redirected to the key details page. Note down the `Key ID` as you will need this to configure the signer.
+ 7. Your key will be created, and you will be redirected to the key details page. Note down the `Key ID` as you will need this to configure the signer.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
7. Your key will be created and you will be redirected to the key details page. Note down the `Key ID` as you will need this to configure the signer.
7. Your key will be created, and you will be redirected to the key details page. Note down the `Key ID` as you will need this to configure the signer.
Tools
LanguageTool

[uncategorized] ~87-~87: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...review.png) 7. Your key will be created and you will be redirected to the key detai...

(COMMA_COMPOUND_SENTENCE)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 39c1662 and 32b7cd7.

Files selected for processing (1)
  • ethergo/submitter/metrics.go (1 hunks)
Files skipped from review due to trivial changes (1)
  • ethergo/submitter/metrics.go

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

  • Added sorting functionality for slices of big integers in /ethergo/submitter/util_test.go
  • Introduced new type bigIntSlice for sorting
  • Updated TestMapToBigIntSlice and TestMapToBigIntSliceWithStruct to include sorting before comparison

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

  • Documentation
    • Updated observability sections in docs/bridge/docs/CCTP/Relayer.md and docs/bridge/docs/rfq/Relayer/Relayer.md to recommend setting up the submitter dashboard for enhanced monitoring.

No major changes found since last review.

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@trajan0x trajan0x merged commit 8e3cf39 into master Jun 30, 2024
49 of 50 checks passed
@trajan0x trajan0x deleted the fix/document-submitter-dashboard branch June 30, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code M-docs size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant