From fdf1e544a5806defbaa1a721ee2727b5683dc6c2 Mon Sep 17 00:00:00 2001 From: jaensen <4954577+jaensen@users.noreply.github.com> Date: Tue, 23 May 2023 17:25:07 +0200 Subject: [PATCH] added a binary dump of the balances and trusts to the repo --- README.md | 33 +++++++++++++++++++++++++++++++++ graph_at_20230523_15_00.db | Bin 0 -> 13700138 bytes 2 files changed, 33 insertions(+) create mode 100644 graph_at_20230523_15_00.db diff --git a/README.md b/README.md index eb39b8d..cd326c8 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,39 @@ Number of worker threads: 4 Size of request queue: 10 +#### Run with test data +1) Download the balances and trust binary dump from [binary dump from 2023-05-23](graph_at_20230523_15_00.db) +2) Start the server with `cargo run --release :` +3) Import the data with the curl command below +4) Query the server with the curl command below + +The data can be imported into a running pathfinder2 server with the following command: +```shell +curl -X POST \ + -H "Content-Type: application/json" \ + -d '{ + "id": "timestamp_value", + "method": "load_safes_binary", + "params": { + "file": "/path/to/graph_at_20230523_15_00.db" + } +}' \ + "http://:" +``` +afterward the server can be queried with the following command: +```shell +curl -X POST \ + -H "Content-Type: application/json" \ + -d '{ + "from": "0x000...", + "to": "0x000...", + "value": 999999999999, + "iterative": false, + "prune": true +}' \ + "http://:" +``` + ### Using the CLI The CLI will load an edge database file and compute the transitive transfers from one source to one destination. You can limit the number of hops to explore and the maximum amount of circles to transfer. diff --git a/graph_at_20230523_15_00.db b/graph_at_20230523_15_00.db new file mode 100644 index 0000000000000000000000000000000000000000..adadedcefe4222da69d7325cb31f634411592b96 GIT binary patch literal 13700138 zcmV(lK=i)=0o>x+8V;5p?x!FKQfNr{?58x* z7J0-_m5J`*74Uq$Vg{;o^gYbLH{yW}tOionEX~%x6w+GTc)4y*_en1Hm^)d`w>2*I zG@q6dPiB?%x9DcBvaY^1(&^*nKEbsszlWz}u9l{sW6|+lCFQ6$*ZpyF-yc`*fz`Zs zWN0n0qS9u#5b6WM!SRq0b*9?Z73b^Q_6B&!8AY-3d@k;;7yGmDeT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