jakobsn
1248929fb4
Search tokens
2024-10-31 10:55:29 +00: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
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
751c1df6a7
Add CRC20 index
2024-10-21 13:35:24 +02: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
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
528cc79725
API call for latest transactions
2024-09-25 13:39:06 +02: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
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
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
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
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
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
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
1c817c8cfd
Add support for calculating pool APY
2024-03-14 10:54:33 +01:00
Dagur Valberg Johannsson
1912b18f8d
Handle orphaned blocks
2024-03-01 09:49:40 +01:00
Dagur Valberg Johannsson
cd22aa8d70
Track transactions in the mempool
2024-02-16 14:18:41 +01:00
Dagur Valberg Johannsson
168670c9bf
Support block reorgs
2024-02-14 11:11:16 +01:00
Dagur Valberg Johannsson
861ce15a39
bugfix: prices in wrong interval
2024-02-06 13:58:50 +01:00
Dagur Valberg Johannsson
1d5f4a845c
history: Remove empty intervals from result
2024-02-06 11:47:17 +01:00
Dagur Valberg Johannsson
0be0cd8b63
Add price history API call
2024-02-05 16:32:42 +01:00
Dagur Valberg Johannsson
d0a8c49ec4
Include all tokens with liquidity in list
...
When listing tokens, include all tokens with liquidity, also those
without volume last 30 days.
2024-01-20 20:38:13 +01:00
Dagur Valberg Johannsson
b8943fb48d
Add CORS
2024-01-19 14:38:31 +01:00
Dagur Valberg Johannsson
b4305a07de
rpc: list_tokens update
...
Improve volume calculation; add additional fields
2024-01-19 14:03:23 +01:00
Dagur Valberg Johannsson
2387888017
Add call to list token by utxo volume
...
UTXO volume is a decent proxy for token activity.
2024-01-19 11:28:49 +01:00
Dagur Valberg Johannsson
0a07407546
Format fixes
2024-01-05 14:21:50 +01:00
Dagur Valberg Johannsson
61157dd65a
Add CI
...
Add basic CI build. Also, move tvl route to /cauldron/
2024-01-05 14:19:21 +01:00
Dagur Valberg Johannsson
69405d035a
Initial commit
2024-01-05 13:59:11 +01:00