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

Initial /search/transactions (Currently Only user_command) #32

Merged
merged 28 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d2b66c8
add /search/transactions route
piotr-iohk Sep 30, 2024
63301c6
Add indexer SQL scripts for internal commands, user commands, and zka…
joaosreis Sep 17, 2024
e9eae6d
partial implement fetch_user_commands to UserCommand struct
piotr-iohk Oct 1, 2024
49b3c1a
enable sql logging script
piotr-iohk Oct 2, 2024
cfba4b0
initial implementation of /search/transaction - only user_commands query
piotr-iohk Oct 2, 2024
4cfe74d
next offset
piotr-iohk Oct 2, 2024
89f9292
adjust into_block_transaction to comply with Ocaml implementation
piotr-iohk Oct 2, 2024
eb10583
query cache
piotr-iohk Oct 2, 2024
561972d
use utlis:Wrapper for getting token_id
piotr-iohk Oct 3, 2024
ff1af3d
decoded tx memo
piotr-iohk Oct 3, 2024
190aa9f
satisfy clippy
piotr-iohk Oct 4, 2024
4d64658
query formatting
piotr-iohk Oct 4, 2024
3e7859d
query cache
piotr-iohk Oct 4, 2024
b6ed3c4
fix formatting
harrysolovay Oct 4, 2024
8307236
rebase and move operation to where it can be utilized
harrysolovay Oct 4, 2024
1ab0dee
post-rebase
piotr-iohk Oct 7, 2024
31f44fb
reuse types
piotr-iohk Oct 7, 2024
e2f0499
reuse OperationType
piotr-iohk Oct 7, 2024
deb7b42
reuse operations fn
piotr-iohk Oct 7, 2024
e4389c7
update snap
piotr-iohk Oct 7, 2024
b2343da
basic test
piotr-iohk Oct 7, 2024
739e291
don't parse creation_fee to i64 and rearrange comments
piotr-iohk Oct 8, 2024
650b988
remove redundant match on user_commands
piotr-iohk Oct 8, 2024
e2d59f8
change operation's argument AccountIdentifier to &AccountIdentifier
piotr-iohk Oct 8, 2024
70d4c7f
rearange search_transactions impl to the top
piotr-iohk Oct 8, 2024
32af75f
return InvalidTransactionStatus
piotr-iohk Oct 8, 2024
e30495f
remove new error variant
harrysolovay Oct 8, 2024
69b783e
remove generated new snap
harrysolovay Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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

10 changes: 10 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ indoc = "2.0.5"
aide = { version = "0.13.4", features = ["scalar"] }
anyhow = "1.0.86"
axum = { version = "0.7.5", features = ["macros"] }
bs58 = "0.5.1"
clap = { version = "4.5.11", features = ["derive", "env"] }
coinbase-mesh = "0.1.0"
convert_case = "0.6.0"
Expand Down
10 changes: 10 additions & 0 deletions scripts/enable_logging.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# This script enables logging of sql statements in the PostgreSQL database
# Put this script in the `../sql_scripts` directory and once you use `just pg` it will be executed automatically
# In order to follow the logs, you can use `docker mina-archive-db logs -f`

echo "Enabling logging settings..."

echo "log_statement = 'all'" >> /var/lib/postgresql/data/postgresql.conf
echo "log_min_duration_statement = 0" >> /var/lib/postgresql/data/postgresql.conf
Loading