Commit graph

268 commits

Author SHA1 Message Date
Dagur Valberg Johannsson
d465c51480
missing build file 2024-10-25 15:28:40 +02:00
Dagur Valberg Johannsson
c1940a54a4
Add missing config spec 2024-10-25 15:26:49 +02:00
Dagur Valberg Johannsson
b4b9bf1eb5
Make rostrum server configurable
New default set to localhost
2024-10-25 15:22:44 +02:00
Dagur Valberg Johannsson
058f751a21
Improve querying for active pools
By using new field in the pool history entry table, we can improve the
query time for finding active cauldron pools.

This change also fixes a datatype issue in the table where TEXT was used
instead of INT.
2024-10-25 14:45:37 +02:00
Dagur Valberg Johannsson
73e29b1bbe
Query the mempool for new pools
Previous mempool filter did not include transactions that use the
'SUMMON' OP_RETURN feature to detect new pools.
2024-10-25 14:44:14 +02:00
Dagur Valberg Johannsson
96a960a6bd
Improve mempool removal speed
Remove multiple in one query and trust in `ON DELETE CASCADE` to do its
job.
2024-10-25 14:32:04 +02:00
Dagur Valberg Johannsson
6cfd95dacf
Bump riftenlabs-defi dep 2024-10-24 11:52:11 +02:00
Dagur Valberg Johannsson
8401ef7362 Merge branch 'apy' into 'master'
Add aggregated APY endpoint

See merge request riftenlabs/riftenlabs-indexer!17
2024-10-24 07:16:57 +00:00
Dagur Valberg Johannsson
19b3a3d3ea
Update tests for new table layout
Also rewrote tests to use insert functions
2024-10-24 09:12:12 +02:00
Dagur Valberg Johannsson
e4e7ec3b71
Add aggregated APY endpoint
Add an endpoint that gives a APY value across multiple micro-pools
2024-10-23 16:54:06 +02:00
Dagur Valberg Johannsson
d2b169d03a Merge branch 'crc20-index' into 'master'
Add CRC20 index

See merge request riftenlabs/riftenlabs-indexer!16
2024-10-21 11:39:59 +00:00
Dagur Valberg Johannsson
751c1df6a7
Add CRC20 index 2024-10-21 13:35:24 +02:00
Dagur Valberg Johannsson
8fc7fc74bb Merge branch 'tokensPage' into 'master'
Tokens page

See merge request riftenlabs/riftenlabs-indexer!15
2024-10-14 11:18:50 +00:00
jakobsn
07c75b1a7e Tokens page 2024-10-14 11:18:50 +00:00
Dagur Valberg Johannsson
5aebe7bdaf
Use package electrum-client-netagnostic
Replace package that pointed at a git repo with
electrum-client-netagnostic.
2024-10-08 22:15:46 +02:00
Dagur Valberg Johannsson
6794e97fd2 Merge branch 'timestamp-to-pool' into 'master'
Add timestamp to pools table

See merge request riftenlabs/riftenlabs-indexer!14
2024-10-08 15:34:47 +00:00
Dagur Valberg Johannsson
3abbdbc177
Add timestamp to pools table
To speed up historical price queries, add timestamp to pools.
This denormalizes the database a bit for improved query performance.
2024-10-08 17:22:37 +02:00
Dagur Valberg Johannsson
fdf03bc48c Merge branch 'tx-latest' into 'master'
API call for latest transactions

See merge request riftenlabs/riftenlabs-indexer!13
2024-09-25 11:46:23 +00:00
Dagur Valberg Johannsson
528cc79725
API call for latest transactions 2024-09-25 13:39:06 +02:00
Dagur Valberg Johannsson
eeab81c761 Merge branch 'well-known' into 'master'
Add well-known BCMR sources

See merge request riftenlabs/riftenlabs-indexer!12
2024-09-25 11:37:55 +00:00
Dagur Valberg Johannsson
cd6ce4d4ef
Add well-known BCMR sources
This adds additional BCMR data sources, mainly OTR.
2024-09-10 22:39:30 +02:00
Dagur Valberg Johannsson
0dac53ca25 Merge branch 'unique-addr' into 'master'
rpc: Unique addresses

See merge request riftenlabs/riftenlabs-indexer!11
2024-09-10 20:39:19 +00:00
Dagur Valberg Johannsson
675b3f08f9
rpc: Unique addresses
RPC method to show number of unique addresses interracting with cauldron
2024-09-04 13:25:36 +02:00
Dagur Valberg Johannsson
fea08d2b84
fix division by zero 2024-06-06 08:03:12 +02:00
Dagur Valberg Johannsson
37f2e15333
bugfix: Use correct cache key in closure 2024-05-30 12:20:52 +02:00
Dagur Valberg Johannsson
9b6ba5784a Merge branch 'cache-list' into 'master'
Cache list_by_volume call

See merge request riftenlabs/riftenlabs-indexer!8
2024-05-29 06:56:45 +00:00
Dagur Valberg Johannsson
3ba04dfd58
Cache list_by_volume call
This is an expensive call used by all users of Cauldron DEX; cache for
60 seconds.
2024-05-29 08:46:35 +02:00
Dagur Valberg Johannsson
f398b77974 Merge branch 'bcmr-fix' into 'master'
bugfix: BCMR authchain

See merge request riftenlabs/riftenlabs-indexer!7
2024-05-28 10:27:18 +00:00
Dagur Valberg Johannsson
d177f463f3
bugfix: BCMR authchain
Invalid assumption in code that authchain utxo must be spent as first
output.
2024-05-28 12:21:05 +02:00
Dagur Valberg Johannsson
a202578c16 Merge branch 'bcmr' into 'master'
Add BCMR indexer

See merge request riftenlabs/riftenlabs-indexer!6
2024-05-27 11:11:30 +00:00
Dagur Valberg Johannsson
e38eaaa26c
Add BCMR indexer
This adds BCMR indexer, including downloading and parsing the actual
BCMR files.
2024-05-27 11:56:35 +02:00
Dagur Valberg Johannsson
49730f27ca
chore: Fix clippy issue 2024-05-06 11:18:05 +02:00
Dagur Valberg Johannsson
c2bb75b375
bugfix: Don't list old APY state 2024-05-04 19:45:13 +02:00
Dagur Valberg Johannsson
98ab9a81b3
bugfix: List most recent pool utxos 2024-04-15 23:05:06 +02:00
Dagur Valberg Johannsson
bce825c91b
bug: sql syntax error 2024-04-04 08:09:05 +02:00
Dagur Valberg Johannsson
4ef2257f5d Merge branch 'add-rpc' into 'master'
Add more rpc endpoints

See merge request riftenlabs/riftenlabs-indexer!5
2024-04-04 06:08:07 +00:00
Dagur Valberg Johannsson
76f0dcdb31
rpc: List pools by token and pkh 2024-04-03 21:45:18 +02:00
Dagur Valberg Johannsson
a53782d035
Add cashaddr support 2024-04-03 21:45:18 +02:00
Dagur Valberg Johannsson
17f0d6017f
Add contract count for specific token 2024-04-03 21:44:42 +02:00
Dagur Valberg Johannsson
1b38f65224
Add 'valuelocked' endpoints 2024-04-03 21:44:42 +02:00
Dagur Valberg Johannsson
03a149e29a Merge branch 'rename' into 'master'
rename binary

See merge request riftenlabs/riftenlabs-indexer!4
2024-04-03 19:44:26 +00:00
Dagur Valberg Johannsson
519c442e34
rename binary 2024-04-02 14:07:30 +02:00
Dagur Valberg Johannsson
3dc1a695d5 Merge branch 'price' into 'master'
api: current price

See merge request riftenlabs/riftenlabs-indexer!3
2024-04-02 11:24:36 +00:00
Dagur Valberg Johannsson
b80b1144da
api: current price 2024-04-02 13:17:25 +02:00
Dagur Valberg Johannsson
c8ca5cc698
Add volume endpoint 2024-03-21 11:15:44 +01:00
Dagur Valberg Johannsson
e52314c138
rpc: Add contract count
Fixes #2
2024-03-18 12:34:46 +01:00
Dagur Valberg Johannsson
a4c194ff3e
Enable foreign key pragma with every connection 2024-03-14 15:00:38 +01:00
Dagur Valberg Johannsson
21a57554f8
Add sqlite connection pool 2024-03-14 12:14:55 +01:00
Dagur Valberg Johannsson
ca6fd42cbd
Fix wrong license in Cargo file
License was changed with commit b6eae5bdfa
2024-03-14 11:38:11 +01:00
Dagur Valberg Johannsson
efe1618611
README: contributors license 2024-03-14 10:54:44 +01:00