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 <alexis@semiotic.ai>

* chore: silence one clippy::too_many_arguments

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* ci: add postgres/sqlx to clippy job

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor(tap_agent): trim_start_matches addresses

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* 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 <alexis@semiotic.ai>

* refactor: dashes in bin and crate names

Instead of underscores.

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* style: fix spaces in macro call

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor: rename Account to SenderAllocationRelationship

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor: simplify update_unaggregated_fees_static

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

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor: cleanup config

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

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

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* feat: add timeout config for RAV request

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* fix: state-based receipt notification rejection

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor: cleanup

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* fix: duration conversions

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* feat: rav trigger config in GRT instead of wei

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor: rename "gateway" to "sender"

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

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

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

---------

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
  • Loading branch information
aasseman authored 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.