Skip to content

Commit

Permalink
feat: TAP Agent (#83)
Browse files Browse the repository at this point in the history
* feat: TAP Agent

Signed-off-by: Alexis Asseman <[email protected]>

* chore: silence one clippy::too_many_arguments

Signed-off-by: Alexis Asseman <[email protected]>

* ci: add postgres/sqlx to clippy job

Signed-off-by: Alexis Asseman <[email protected]>

* refactor(tap_agent): trim_start_matches addresses

Signed-off-by: Alexis Asseman <[email protected]>

* fix: table name `scalar_tap_ravs` discrepancy

Was `scalar_tap_latest_ravs` everywhere except in the down migration.
Opted for the shorter of the 2 everywhere.

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: dashes in bin and crate names

Instead of underscores.

Signed-off-by: Alexis Asseman <[email protected]>

* style: fix spaces in macro call

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: rename Account to SenderAllocationRelationship

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: simplify update_unaggregated_fees_static

In particular, simplify handling of NULL results from the DB.

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: cleanup config

Signed-off-by: Alexis Asseman <[email protected]>

* docs: importance of receipt's SERIAL id in DB

Signed-off-by: Alexis Asseman <[email protected]>

* feat: add timeout config for RAV request

Signed-off-by: Alexis Asseman <[email protected]>

* fix: state-based receipt notification rejection

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: cleanup

Signed-off-by: Alexis Asseman <[email protected]>

* fix: duration conversions

Signed-off-by: Alexis Asseman <[email protected]>

* feat: rav trigger config in GRT instead of wei

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: rename "gateway" to "sender"

Signed-off-by: Alexis Asseman <[email protected]>

* refactor: rename `is_last` col to `final` in `scalar_tap_ravs` table

Signed-off-by: Alexis Asseman <[email protected]>

---------

Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Nov 14, 2023
1 parent 7e3595b commit d2fad80
Show file tree
Hide file tree
Showing 35 changed files with 4,610 additions and 788 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,22 @@ jobs:
clippy:
name: cargo clippy
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
container:
image: rust:latest
env:
DATABASE_URL: postgres://postgres@postgres:5432
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand All @@ -34,6 +48,10 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
- name: Install sqlx
run: cargo install sqlx-cli --no-default-features --features postgres
- name: Run the test sqlx migrations
run: cargo sqlx migrate run
- run: |
rustup component add clippy
# Temporarily allowing dead-code, while denying all other warnings
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d2fad80

Please sign in to comment.