├── .cargo └── audit.toml ├── .config └── nextest.toml ├── .env.ci ├── .env.example ├── .envrc ├── .github ├── dependabot.yml └── workflows │ ├── audit.yml │ ├── check-code.yml │ ├── dependencies-test-integration.yml │ ├── spelling.yml │ ├── test-integration.yml │ └── vendor │ ├── rust-audit.yml │ ├── rust-check-code.yml │ └── spelling.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── DEV.md ├── Dockerfile ├── Dockerfile.release ├── Makefile ├── README.md ├── bin └── osxcross-compile.sh ├── bria-client ├── Cargo.toml ├── build.rs ├── src │ ├── client.rs │ ├── config.rs │ ├── error.rs │ └── lib.rs └── tests │ └── bria_client.rs ├── ci ├── pipeline.yml ├── repipe ├── tasks │ ├── build-release.sh │ ├── bump-image-digest.sh │ ├── github-release.sh │ ├── open-charts-pr.sh │ ├── set-dev-version.sh │ ├── test-integration.sh │ └── update-repo.sh ├── values.yml ├── vendir.lock.yml ├── vendir.yml └── vendor │ ├── config │ └── git-cliff.toml │ ├── pipeline-fragments.lib.yml │ └── tasks │ ├── chart-open-charts-pr.sh │ ├── chart-test-integration.sh │ ├── docker-bump-image-digest.sh │ ├── docker-prep-docker-build-env.sh │ ├── helpers.sh │ ├── prep-release-src.sh │ ├── rust-check-code.sh │ └── test-on-docker-host.sh ├── cli ├── Cargo.toml ├── sqlx-data.json └── src │ ├── app.rs │ ├── config.rs │ ├── db.rs │ ├── health.rs │ ├── lib.rs │ ├── main.rs │ ├── price_client.rs │ ├── quotes_client.rs │ └── tracing.rs ├── dev ├── bitcoind │ └── bitcoin.conf ├── bria.yml ├── fulcrum │ ├── fulcrum.conf │ ├── tls.cert │ └── tls.key └── otel-agent-config.yaml ├── docker-compose.override.yml ├── docker-compose.yml ├── flake.lock ├── flake.nix ├── galoy-client ├── Cargo.toml ├── src │ ├── client │ │ ├── config.rs │ │ ├── convert.rs │ │ ├── galoy_tracing.rs │ │ ├── graphql │ │ │ ├── mutations │ │ │ │ └── user_login.graphql │ │ │ ├── queries │ │ │ │ └── transactions_list.graphql │ │ │ └── schema.graphql │ │ ├── mod.rs │ │ ├── queries.rs │ │ └── transaction.rs │ ├── error.rs │ └── lib.rs └── tests │ └── galoy_client.rs ├── hedging ├── .env ├── .gitignore ├── .sqlx │ ├── query-0eb7034d6a8048df9d45a2950feb3031fbc4024b17547e89f3370fa9987f25a5.json │ ├── query-0fdfa3de8a33878aecf60e29e1fd6ed3eeff1bd92e3eca50d51e221350518745.json │ ├── query-26fa2863be469d0f97b42390da4c73344a7d5152e4b5704574dc2f83756a94c6.json │ ├── query-4b0b1c2376210b3e700e4faa13a3fb6ee3505989f7a74cad2b47b2441ca94933.json │ ├── query-5a7a2a9f44d59aa52bf93bae05be9078b4de460c26ad0c66520f4361601f5700.json │ ├── query-755920d9b23d1c31d6479964d3e1130409f4b74ad5c7519e838818f07ebefd47.json │ ├── query-96f7ee6322ab9ae4a1a69d230e50dcbec45afacfbbf811d90078643fa67cd772.json │ ├── query-9f0ad7bff9fc100811e93f38ee7eff83114f092eee6971a1a15586597beb61f2.json │ ├── query-a3364ac9e48a6dc9b7cf1b02d70b454ccc1e20bc1528ed1896e8411b30ae9d00.json │ ├── query-a96d3a4a4c19ae27d60f46d99e12dcc09ea2440aaae906c0e159bed1b8b71ad3.json │ ├── query-bdc01a6886522e6a9730c9b7bda89fe76907909a86ae77f91f95b3db677e0a74.json │ ├── query-d393086f855e0eb9bae8575eabf08e0882c0dbaaa7235c8ef9f94954c1f4a9a4.json │ ├── query-ec7ba61bfab2d7ce85f306efac3a90a1fc514ce949e1984fe518b46e2c4a3612.json │ ├── query-f0d88cf22a894b17539514bc1e8dfc412dcc36212cccd5f99a6715b057f0fb52.json │ └── query-f7c8576f2bd7f5f9124bd5eb7f959064f6d3bc255aa827dc3eb86460b60d2881.json ├── Cargo.toml ├── build.rs ├── src │ ├── app │ │ ├── config.rs │ │ └── mod.rs │ ├── config.rs │ ├── error.rs │ ├── hack_user_trades_lag.rs │ ├── lib.rs │ ├── main.rs │ └── okex │ │ ├── config.rs │ │ ├── engine.rs │ │ ├── funding_adjustment.rs │ │ ├── hedge_adjustment.rs │ │ ├── job │ │ ├── adjust_funding.rs │ │ ├── adjust_hedge.rs │ │ ├── mod.rs │ │ └── poll_okex.rs │ │ ├── mod.rs │ │ ├── orders.rs │ │ └── transfers.rs └── tests │ └── hedging.rs ├── ledger ├── Cargo.toml ├── src │ ├── balances.rs │ ├── constants.rs │ ├── error.rs │ ├── lib.rs │ └── templates │ │ ├── adjust_exchange_allocation.rs │ │ ├── buy_usd_quote_accepted.rs │ │ ├── decrease_exchange_position.rs │ │ ├── increase_exchange_position.rs │ │ ├── mod.rs │ │ ├── revert_user_buys_usd.rs │ │ ├── revert_user_sells_usd.rs │ │ ├── sell_usd_quote_accepted.rs │ │ ├── user_buys_usd.rs │ │ └── user_sells_usd.rs └── tests │ └── ledger.rs ├── migrations ├── 20210316025847_setup.down.sql ├── 20210316025847_setup.up.sql ├── 20210921115907_clear.down.sql ├── 20210921115907_clear.up.sql ├── 20211013151757_fix_mq_latest_message.down.sql ├── 20211013151757_fix_mq_latest_message.up.sql ├── 20220208120856_fix_concurrent_poll.down.sql ├── 20220208120856_fix_concurrent_poll.up.sql ├── 20220713122907_fix-clear_all-keep-nil-message.down.sql ├── 20220713122907_fix-clear_all-keep-nil-message.up.sql ├── 20221109221657_sqlx_ledger_setup.down.sql ├── 20221109221657_sqlx_ledger_setup.up.sql ├── 20230121215956_user-trades-setup.down.sql ├── 20230121215956_user-trades-setup.up.sql ├── 20230121220359_hedging-setup.down.sql ├── 20230121220359_hedging-setup.up.sql ├── 20230127130716_remove-correlation-id-unique-constraint.down.sql ├── 20230127130716_remove-correlation-id-unique-constraint.up.sql ├── 20230202095205_add-ledger-tx-id-to-user-trades.down.sql ├── 20230202095205_add-ledger-tx-id-to-user-trades.up.sql ├── 20230203140853_external-ref-not-null.down.sql ├── 20230203140853_external-ref-not-null.up.sql ├── 20230206130127_remove-synth-usd-liability.down.sql ├── 20230206130127_remove-synth-usd-liability.up.sql ├── 20230206214954_remove-user-trade-balances.down.sql ├── 20230206214954_remove-user-trade-balances.up.sql ├── 20230208092911_user-trade-unit-enum.down.sql ├── 20230208092911_user-trade-unit-enum.up.sql ├── 20230208101626_reset-sqlx-ledger.down.sql ├── 20230208101626_reset-sqlx-ledger.up.sql ├── 20230222080947_reset-galoy-transactions.down.sql ├── 20230222080947_reset-galoy-transactions.up.sql ├── 20230608050451_galoy-transactions-unpaired-last-check-at.down.sql ├── 20230608050451_galoy-transactions-unpaired-last-check-at.up.sql ├── 20231114105134_stablesats_quotes.down.sql ├── 20231114105134_stablesats_quotes.up.sql ├── 20240318082106_lock_and_skip_rows_in_mq_poll.down.sql └── 20240318082106_lock_and_skip_rows_in_mq_poll.up.sql ├── okex-client ├── Cargo.toml ├── src │ ├── client │ │ ├── error.rs │ │ ├── mod.rs │ │ ├── okex_response.rs │ │ └── primitives.rs │ └── lib.rs └── tests │ └── client.rs ├── okex-price ├── Cargo.toml ├── src │ ├── convert.rs │ ├── error.rs │ ├── lib.rs │ ├── okex_shared.rs │ ├── order_book │ │ ├── book.rs │ │ └── mod.rs │ └── price_feed │ │ ├── mod.rs │ │ └── tick.rs └── tests │ ├── fixtures │ ├── order-book-snapshot.json │ ├── order-book-update-1.json │ ├── order-book-update-2.json │ ├── order-book-update-3.json │ └── price_feed.json │ └── price_feed.rs ├── price-server ├── Cargo.toml ├── build.rs ├── src │ ├── app │ │ ├── config.rs │ │ └── mod.rs │ ├── cache_config.rs │ ├── currency │ │ ├── convert.rs │ │ └── mod.rs │ ├── error.rs │ ├── exchange_tick_cache.rs │ ├── fee_calculator │ │ ├── config.rs │ │ └── mod.rs │ ├── lib.rs │ ├── order_book_cache.rs │ ├── price_converter │ │ └── mod.rs │ ├── price_mixer.rs │ └── server │ │ ├── config.rs │ │ ├── convert.rs │ │ ├── error.rs │ │ └── mod.rs └── tests │ └── price_app.rs ├── proto ├── bria │ └── bria_service.proto ├── price │ └── price_service.proto └── quotes │ └── quote_service.proto ├── quotes-server ├── .sqlx │ ├── query-6e87c7231f91379afe2414309051966925d022b3b41170dca18dccc1cdecf4ec.json │ └── query-a9f2e532a8cedde9ff6c74ce159591ff133ed437f2169d48ee162189b8f4f5c8.json ├── Cargo.toml ├── build.rs ├── src │ ├── app │ │ ├── config.rs │ │ └── mod.rs │ ├── cache │ │ ├── config.rs │ │ ├── mod.rs │ │ └── order_book_cache.rs │ ├── currency │ │ ├── convert.rs │ │ ├── mod.rs │ │ └── value.rs │ ├── entity │ │ ├── error.rs │ │ ├── event.rs │ │ └── mod.rs │ ├── error.rs │ ├── lib.rs │ ├── price │ │ ├── converter.rs │ │ ├── error.rs │ │ ├── fee.rs │ │ ├── mixer.rs │ │ ├── mod.rs │ │ ├── tick_converter.rs │ │ └── traits.rs │ ├── quote │ │ ├── entity.rs │ │ ├── error.rs │ │ ├── mod.rs │ │ └── repo.rs │ └── server │ │ ├── config.rs │ │ ├── convert.rs │ │ ├── error.rs │ │ └── mod.rs └── tests │ └── quote_app.rs ├── rust-toolchain.toml ├── shared ├── Cargo.toml └── src │ ├── health.rs │ ├── lib.rs │ ├── macros.rs │ ├── main.rs │ ├── payload │ ├── constants.rs │ ├── mod.rs │ └── primitives.rs │ ├── pubsub │ ├── error.rs │ ├── memory.rs │ ├── message.rs │ └── mod.rs │ ├── sqlxmq.rs │ ├── time.rs │ ├── tonic.rs │ └── tracing.rs ├── stablesats.yml ├── typos.toml └── user-trades ├── .env ├── .gitignore ├── .sqlx ├── query-21fff44c3d9afbeb410e20503d5503ed369d2e1e973d7240ea7e6db64d15af9d.json ├── query-2b868fd5a78978ec8bc3bcd79008f831a139e070f994b0b8bfe4e8a3dd3105f7.json ├── query-826a2e93ff9e145528eaafb810f5c8028a099f205369d4e59766f46c6a0d7500.json ├── query-c0a3dad5c21faee2e7ee480ceeba54924c70f5d53c344cfcf6ac09d759016976.json ├── query-cb456cade246ef96b3f03e01d373e081166e03d1ec2914606b975d33273c195c.json ├── query-e232bc879d083e5ed3f97f7b4a784c353d97703588b64cd44452d4f07b858cfa.json ├── query-ecda7feba70249cfa67e14e09d73daaac625dcbf4b307ae664f26b9f5d0eef2d.json └── query-fee34cfbdb19294324dc4ceb3cc20fcf3bd61814cd8f1a680564ba14a14b2185.json ├── Cargo.toml ├── build.rs ├── src ├── app │ ├── config.rs │ └── mod.rs ├── error.rs ├── galoy_transactions │ └── mod.rs ├── job │ ├── mod.rs │ └── poll_galoy_transactions.rs ├── lib.rs └── user_trades │ ├── mod.rs │ └── unit.rs └── tests └── app.rs /.cargo/audit.toml: -------------------------------------------------------------------------------- 1 | [advisories] 2 | ignore = ["RUSTSEC-2023-0071"] 3 | -------------------------------------------------------------------------------- /.config/nextest.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.config/nextest.toml -------------------------------------------------------------------------------- /.env.ci: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.env.ci -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.env.example -------------------------------------------------------------------------------- /.envrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.envrc -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/audit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/audit.yml -------------------------------------------------------------------------------- /.github/workflows/check-code.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/check-code.yml -------------------------------------------------------------------------------- /.github/workflows/dependencies-test-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/dependencies-test-integration.yml -------------------------------------------------------------------------------- /.github/workflows/spelling.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/spelling.yml -------------------------------------------------------------------------------- /.github/workflows/test-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/test-integration.yml -------------------------------------------------------------------------------- /.github/workflows/vendor/rust-audit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/vendor/rust-audit.yml -------------------------------------------------------------------------------- /.github/workflows/vendor/rust-check-code.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/vendor/rust-check-code.yml -------------------------------------------------------------------------------- /.github/workflows/vendor/spelling.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.github/workflows/vendor/spelling.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /DEV.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/DEV.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile.release: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/Dockerfile.release -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/README.md -------------------------------------------------------------------------------- /bin/osxcross-compile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bin/osxcross-compile.sh -------------------------------------------------------------------------------- /bria-client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/Cargo.toml -------------------------------------------------------------------------------- /bria-client/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/build.rs -------------------------------------------------------------------------------- /bria-client/src/client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/src/client.rs -------------------------------------------------------------------------------- /bria-client/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/src/config.rs -------------------------------------------------------------------------------- /bria-client/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/src/error.rs -------------------------------------------------------------------------------- /bria-client/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/src/lib.rs -------------------------------------------------------------------------------- /bria-client/tests/bria_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/bria-client/tests/bria_client.rs -------------------------------------------------------------------------------- /ci/pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/pipeline.yml -------------------------------------------------------------------------------- /ci/repipe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/repipe -------------------------------------------------------------------------------- /ci/tasks/build-release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/build-release.sh -------------------------------------------------------------------------------- /ci/tasks/bump-image-digest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/bump-image-digest.sh -------------------------------------------------------------------------------- /ci/tasks/github-release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/github-release.sh -------------------------------------------------------------------------------- /ci/tasks/open-charts-pr.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/open-charts-pr.sh -------------------------------------------------------------------------------- /ci/tasks/set-dev-version.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/set-dev-version.sh -------------------------------------------------------------------------------- /ci/tasks/test-integration.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/test-integration.sh -------------------------------------------------------------------------------- /ci/tasks/update-repo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/tasks/update-repo.sh -------------------------------------------------------------------------------- /ci/values.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/values.yml -------------------------------------------------------------------------------- /ci/vendir.lock.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendir.lock.yml -------------------------------------------------------------------------------- /ci/vendir.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendir.yml -------------------------------------------------------------------------------- /ci/vendor/config/git-cliff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/config/git-cliff.toml -------------------------------------------------------------------------------- /ci/vendor/pipeline-fragments.lib.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/pipeline-fragments.lib.yml -------------------------------------------------------------------------------- /ci/vendor/tasks/chart-open-charts-pr.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/chart-open-charts-pr.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/chart-test-integration.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/chart-test-integration.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/docker-bump-image-digest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/docker-bump-image-digest.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/docker-prep-docker-build-env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/docker-prep-docker-build-env.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/helpers.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/helpers.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/prep-release-src.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/prep-release-src.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/rust-check-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/rust-check-code.sh -------------------------------------------------------------------------------- /ci/vendor/tasks/test-on-docker-host.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ci/vendor/tasks/test-on-docker-host.sh -------------------------------------------------------------------------------- /cli/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/Cargo.toml -------------------------------------------------------------------------------- /cli/sqlx-data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/sqlx-data.json -------------------------------------------------------------------------------- /cli/src/app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/app.rs -------------------------------------------------------------------------------- /cli/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/config.rs -------------------------------------------------------------------------------- /cli/src/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/db.rs -------------------------------------------------------------------------------- /cli/src/health.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/health.rs -------------------------------------------------------------------------------- /cli/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/lib.rs -------------------------------------------------------------------------------- /cli/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/main.rs -------------------------------------------------------------------------------- /cli/src/price_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/price_client.rs -------------------------------------------------------------------------------- /cli/src/quotes_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/quotes_client.rs -------------------------------------------------------------------------------- /cli/src/tracing.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/cli/src/tracing.rs -------------------------------------------------------------------------------- /dev/bitcoind/bitcoin.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/dev/bitcoind/bitcoin.conf -------------------------------------------------------------------------------- /dev/bria.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/dev/bria.yml -------------------------------------------------------------------------------- /dev/fulcrum/fulcrum.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/dev/fulcrum/fulcrum.conf -------------------------------------------------------------------------------- /dev/fulcrum/tls.cert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/dev/fulcrum/tls.cert -------------------------------------------------------------------------------- /dev/fulcrum/tls.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/dev/fulcrum/tls.key -------------------------------------------------------------------------------- /dev/otel-agent-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/dev/otel-agent-config.yaml -------------------------------------------------------------------------------- /docker-compose.override.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/docker-compose.override.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/flake.nix -------------------------------------------------------------------------------- /galoy-client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/Cargo.toml -------------------------------------------------------------------------------- /galoy-client/src/client/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/config.rs -------------------------------------------------------------------------------- /galoy-client/src/client/convert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/convert.rs -------------------------------------------------------------------------------- /galoy-client/src/client/galoy_tracing.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/galoy_tracing.rs -------------------------------------------------------------------------------- /galoy-client/src/client/graphql/mutations/user_login.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/graphql/mutations/user_login.graphql -------------------------------------------------------------------------------- /galoy-client/src/client/graphql/queries/transactions_list.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/graphql/queries/transactions_list.graphql -------------------------------------------------------------------------------- /galoy-client/src/client/graphql/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/graphql/schema.graphql -------------------------------------------------------------------------------- /galoy-client/src/client/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/mod.rs -------------------------------------------------------------------------------- /galoy-client/src/client/queries.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/queries.rs -------------------------------------------------------------------------------- /galoy-client/src/client/transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/client/transaction.rs -------------------------------------------------------------------------------- /galoy-client/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/error.rs -------------------------------------------------------------------------------- /galoy-client/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/src/lib.rs -------------------------------------------------------------------------------- /galoy-client/tests/galoy_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/galoy-client/tests/galoy_client.rs -------------------------------------------------------------------------------- /hedging/.env: -------------------------------------------------------------------------------- 1 | DATABASE_URL=postgres://user:password@127.0.0.1:5432/pg 2 | -------------------------------------------------------------------------------- /hedging/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /hedging/.sqlx/query-0eb7034d6a8048df9d45a2950feb3031fbc4024b17547e89f3370fa9987f25a5.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-0eb7034d6a8048df9d45a2950feb3031fbc4024b17547e89f3370fa9987f25a5.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-0fdfa3de8a33878aecf60e29e1fd6ed3eeff1bd92e3eca50d51e221350518745.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-0fdfa3de8a33878aecf60e29e1fd6ed3eeff1bd92e3eca50d51e221350518745.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-26fa2863be469d0f97b42390da4c73344a7d5152e4b5704574dc2f83756a94c6.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-26fa2863be469d0f97b42390da4c73344a7d5152e4b5704574dc2f83756a94c6.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-4b0b1c2376210b3e700e4faa13a3fb6ee3505989f7a74cad2b47b2441ca94933.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-4b0b1c2376210b3e700e4faa13a3fb6ee3505989f7a74cad2b47b2441ca94933.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-5a7a2a9f44d59aa52bf93bae05be9078b4de460c26ad0c66520f4361601f5700.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-5a7a2a9f44d59aa52bf93bae05be9078b4de460c26ad0c66520f4361601f5700.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-755920d9b23d1c31d6479964d3e1130409f4b74ad5c7519e838818f07ebefd47.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-755920d9b23d1c31d6479964d3e1130409f4b74ad5c7519e838818f07ebefd47.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-96f7ee6322ab9ae4a1a69d230e50dcbec45afacfbbf811d90078643fa67cd772.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-96f7ee6322ab9ae4a1a69d230e50dcbec45afacfbbf811d90078643fa67cd772.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-9f0ad7bff9fc100811e93f38ee7eff83114f092eee6971a1a15586597beb61f2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-9f0ad7bff9fc100811e93f38ee7eff83114f092eee6971a1a15586597beb61f2.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-a3364ac9e48a6dc9b7cf1b02d70b454ccc1e20bc1528ed1896e8411b30ae9d00.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-a3364ac9e48a6dc9b7cf1b02d70b454ccc1e20bc1528ed1896e8411b30ae9d00.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-a96d3a4a4c19ae27d60f46d99e12dcc09ea2440aaae906c0e159bed1b8b71ad3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-a96d3a4a4c19ae27d60f46d99e12dcc09ea2440aaae906c0e159bed1b8b71ad3.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-bdc01a6886522e6a9730c9b7bda89fe76907909a86ae77f91f95b3db677e0a74.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-bdc01a6886522e6a9730c9b7bda89fe76907909a86ae77f91f95b3db677e0a74.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-d393086f855e0eb9bae8575eabf08e0882c0dbaaa7235c8ef9f94954c1f4a9a4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-d393086f855e0eb9bae8575eabf08e0882c0dbaaa7235c8ef9f94954c1f4a9a4.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-ec7ba61bfab2d7ce85f306efac3a90a1fc514ce949e1984fe518b46e2c4a3612.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-ec7ba61bfab2d7ce85f306efac3a90a1fc514ce949e1984fe518b46e2c4a3612.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-f0d88cf22a894b17539514bc1e8dfc412dcc36212cccd5f99a6715b057f0fb52.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-f0d88cf22a894b17539514bc1e8dfc412dcc36212cccd5f99a6715b057f0fb52.json -------------------------------------------------------------------------------- /hedging/.sqlx/query-f7c8576f2bd7f5f9124bd5eb7f959064f6d3bc255aa827dc3eb86460b60d2881.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/.sqlx/query-f7c8576f2bd7f5f9124bd5eb7f959064f6d3bc255aa827dc3eb86460b60d2881.json -------------------------------------------------------------------------------- /hedging/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/Cargo.toml -------------------------------------------------------------------------------- /hedging/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/build.rs -------------------------------------------------------------------------------- /hedging/src/app/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/app/config.rs -------------------------------------------------------------------------------- /hedging/src/app/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/app/mod.rs -------------------------------------------------------------------------------- /hedging/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/config.rs -------------------------------------------------------------------------------- /hedging/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/error.rs -------------------------------------------------------------------------------- /hedging/src/hack_user_trades_lag.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/hack_user_trades_lag.rs -------------------------------------------------------------------------------- /hedging/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/lib.rs -------------------------------------------------------------------------------- /hedging/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("Hello, world!"); 3 | } 4 | -------------------------------------------------------------------------------- /hedging/src/okex/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/config.rs -------------------------------------------------------------------------------- /hedging/src/okex/engine.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/engine.rs -------------------------------------------------------------------------------- /hedging/src/okex/funding_adjustment.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/funding_adjustment.rs -------------------------------------------------------------------------------- /hedging/src/okex/hedge_adjustment.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/hedge_adjustment.rs -------------------------------------------------------------------------------- /hedging/src/okex/job/adjust_funding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/job/adjust_funding.rs -------------------------------------------------------------------------------- /hedging/src/okex/job/adjust_hedge.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/job/adjust_hedge.rs -------------------------------------------------------------------------------- /hedging/src/okex/job/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/job/mod.rs -------------------------------------------------------------------------------- /hedging/src/okex/job/poll_okex.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/job/poll_okex.rs -------------------------------------------------------------------------------- /hedging/src/okex/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/mod.rs -------------------------------------------------------------------------------- /hedging/src/okex/orders.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/orders.rs -------------------------------------------------------------------------------- /hedging/src/okex/transfers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/src/okex/transfers.rs -------------------------------------------------------------------------------- /hedging/tests/hedging.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/hedging/tests/hedging.rs -------------------------------------------------------------------------------- /ledger/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/Cargo.toml -------------------------------------------------------------------------------- /ledger/src/balances.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/balances.rs -------------------------------------------------------------------------------- /ledger/src/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/constants.rs -------------------------------------------------------------------------------- /ledger/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/error.rs -------------------------------------------------------------------------------- /ledger/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/lib.rs -------------------------------------------------------------------------------- /ledger/src/templates/adjust_exchange_allocation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/adjust_exchange_allocation.rs -------------------------------------------------------------------------------- /ledger/src/templates/buy_usd_quote_accepted.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/buy_usd_quote_accepted.rs -------------------------------------------------------------------------------- /ledger/src/templates/decrease_exchange_position.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/decrease_exchange_position.rs -------------------------------------------------------------------------------- /ledger/src/templates/increase_exchange_position.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/increase_exchange_position.rs -------------------------------------------------------------------------------- /ledger/src/templates/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/mod.rs -------------------------------------------------------------------------------- /ledger/src/templates/revert_user_buys_usd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/revert_user_buys_usd.rs -------------------------------------------------------------------------------- /ledger/src/templates/revert_user_sells_usd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/revert_user_sells_usd.rs -------------------------------------------------------------------------------- /ledger/src/templates/sell_usd_quote_accepted.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/sell_usd_quote_accepted.rs -------------------------------------------------------------------------------- /ledger/src/templates/user_buys_usd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/user_buys_usd.rs -------------------------------------------------------------------------------- /ledger/src/templates/user_sells_usd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/src/templates/user_sells_usd.rs -------------------------------------------------------------------------------- /ledger/tests/ledger.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/ledger/tests/ledger.rs -------------------------------------------------------------------------------- /migrations/20210316025847_setup.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20210316025847_setup.down.sql -------------------------------------------------------------------------------- /migrations/20210316025847_setup.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20210316025847_setup.up.sql -------------------------------------------------------------------------------- /migrations/20210921115907_clear.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20210921115907_clear.down.sql -------------------------------------------------------------------------------- /migrations/20210921115907_clear.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20210921115907_clear.up.sql -------------------------------------------------------------------------------- /migrations/20211013151757_fix_mq_latest_message.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20211013151757_fix_mq_latest_message.down.sql -------------------------------------------------------------------------------- /migrations/20211013151757_fix_mq_latest_message.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20211013151757_fix_mq_latest_message.up.sql -------------------------------------------------------------------------------- /migrations/20220208120856_fix_concurrent_poll.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20220208120856_fix_concurrent_poll.down.sql -------------------------------------------------------------------------------- /migrations/20220208120856_fix_concurrent_poll.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20220208120856_fix_concurrent_poll.up.sql -------------------------------------------------------------------------------- /migrations/20220713122907_fix-clear_all-keep-nil-message.down.sql: -------------------------------------------------------------------------------- 1 | -- Add down migration script here 2 | -------------------------------------------------------------------------------- /migrations/20220713122907_fix-clear_all-keep-nil-message.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20220713122907_fix-clear_all-keep-nil-message.up.sql -------------------------------------------------------------------------------- /migrations/20221109221657_sqlx_ledger_setup.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20221109221657_sqlx_ledger_setup.down.sql -------------------------------------------------------------------------------- /migrations/20221109221657_sqlx_ledger_setup.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20221109221657_sqlx_ledger_setup.up.sql -------------------------------------------------------------------------------- /migrations/20230121215956_user-trades-setup.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230121215956_user-trades-setup.down.sql -------------------------------------------------------------------------------- /migrations/20230121215956_user-trades-setup.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230121215956_user-trades-setup.up.sql -------------------------------------------------------------------------------- /migrations/20230121220359_hedging-setup.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230121220359_hedging-setup.down.sql -------------------------------------------------------------------------------- /migrations/20230121220359_hedging-setup.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230121220359_hedging-setup.up.sql -------------------------------------------------------------------------------- /migrations/20230127130716_remove-correlation-id-unique-constraint.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230127130716_remove-correlation-id-unique-constraint.down.sql -------------------------------------------------------------------------------- /migrations/20230127130716_remove-correlation-id-unique-constraint.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230127130716_remove-correlation-id-unique-constraint.up.sql -------------------------------------------------------------------------------- /migrations/20230202095205_add-ledger-tx-id-to-user-trades.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE user_trades DROP COLUMN ledger_tx_id; 2 | -------------------------------------------------------------------------------- /migrations/20230202095205_add-ledger-tx-id-to-user-trades.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE user_trades ADD COLUMN ledger_tx_id UUID DEFAULT NULL; 2 | -------------------------------------------------------------------------------- /migrations/20230203140853_external-ref-not-null.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230203140853_external-ref-not-null.down.sql -------------------------------------------------------------------------------- /migrations/20230203140853_external-ref-not-null.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230203140853_external-ref-not-null.up.sql -------------------------------------------------------------------------------- /migrations/20230206130127_remove-synth-usd-liability.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230206130127_remove-synth-usd-liability.down.sql -------------------------------------------------------------------------------- /migrations/20230206130127_remove-synth-usd-liability.up.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE synth_usd_liability; 2 | -------------------------------------------------------------------------------- /migrations/20230206214954_remove-user-trade-balances.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230206214954_remove-user-trade-balances.down.sql -------------------------------------------------------------------------------- /migrations/20230206214954_remove-user-trade-balances.up.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE user_trade_balances; 2 | -------------------------------------------------------------------------------- /migrations/20230208092911_user-trade-unit-enum.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230208092911_user-trade-unit-enum.down.sql -------------------------------------------------------------------------------- /migrations/20230208092911_user-trade-unit-enum.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230208092911_user-trade-unit-enum.up.sql -------------------------------------------------------------------------------- /migrations/20230208101626_reset-sqlx-ledger.down.sql: -------------------------------------------------------------------------------- 1 | -- Add down migration script here 2 | -------------------------------------------------------------------------------- /migrations/20230208101626_reset-sqlx-ledger.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230208101626_reset-sqlx-ledger.up.sql -------------------------------------------------------------------------------- /migrations/20230222080947_reset-galoy-transactions.down.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/20230222080947_reset-galoy-transactions.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230222080947_reset-galoy-transactions.up.sql -------------------------------------------------------------------------------- /migrations/20230608050451_galoy-transactions-unpaired-last-check-at.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE galoy_transactions DROP COLUMN unpaired_last_checked_at; 2 | -------------------------------------------------------------------------------- /migrations/20230608050451_galoy-transactions-unpaired-last-check-at.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20230608050451_galoy-transactions-unpaired-last-check-at.up.sql -------------------------------------------------------------------------------- /migrations/20231114105134_stablesats_quotes.down.sql: -------------------------------------------------------------------------------- 1 | -- Add down migration script here 2 | -------------------------------------------------------------------------------- /migrations/20231114105134_stablesats_quotes.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20231114105134_stablesats_quotes.up.sql -------------------------------------------------------------------------------- /migrations/20240318082106_lock_and_skip_rows_in_mq_poll.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20240318082106_lock_and_skip_rows_in_mq_poll.down.sql -------------------------------------------------------------------------------- /migrations/20240318082106_lock_and_skip_rows_in_mq_poll.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/migrations/20240318082106_lock_and_skip_rows_in_mq_poll.up.sql -------------------------------------------------------------------------------- /okex-client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/Cargo.toml -------------------------------------------------------------------------------- /okex-client/src/client/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/src/client/error.rs -------------------------------------------------------------------------------- /okex-client/src/client/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/src/client/mod.rs -------------------------------------------------------------------------------- /okex-client/src/client/okex_response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/src/client/okex_response.rs -------------------------------------------------------------------------------- /okex-client/src/client/primitives.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/src/client/primitives.rs -------------------------------------------------------------------------------- /okex-client/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/src/lib.rs -------------------------------------------------------------------------------- /okex-client/tests/client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-client/tests/client.rs -------------------------------------------------------------------------------- /okex-price/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/Cargo.toml -------------------------------------------------------------------------------- /okex-price/src/convert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/convert.rs -------------------------------------------------------------------------------- /okex-price/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/error.rs -------------------------------------------------------------------------------- /okex-price/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/lib.rs -------------------------------------------------------------------------------- /okex-price/src/okex_shared.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/okex_shared.rs -------------------------------------------------------------------------------- /okex-price/src/order_book/book.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/order_book/book.rs -------------------------------------------------------------------------------- /okex-price/src/order_book/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/order_book/mod.rs -------------------------------------------------------------------------------- /okex-price/src/price_feed/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/price_feed/mod.rs -------------------------------------------------------------------------------- /okex-price/src/price_feed/tick.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/src/price_feed/tick.rs -------------------------------------------------------------------------------- /okex-price/tests/fixtures/order-book-snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/tests/fixtures/order-book-snapshot.json -------------------------------------------------------------------------------- /okex-price/tests/fixtures/order-book-update-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/tests/fixtures/order-book-update-1.json -------------------------------------------------------------------------------- /okex-price/tests/fixtures/order-book-update-2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/tests/fixtures/order-book-update-2.json -------------------------------------------------------------------------------- /okex-price/tests/fixtures/order-book-update-3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/tests/fixtures/order-book-update-3.json -------------------------------------------------------------------------------- /okex-price/tests/fixtures/price_feed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/tests/fixtures/price_feed.json -------------------------------------------------------------------------------- /okex-price/tests/price_feed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/okex-price/tests/price_feed.rs -------------------------------------------------------------------------------- /price-server/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/Cargo.toml -------------------------------------------------------------------------------- /price-server/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/build.rs -------------------------------------------------------------------------------- /price-server/src/app/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/app/config.rs -------------------------------------------------------------------------------- /price-server/src/app/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/app/mod.rs -------------------------------------------------------------------------------- /price-server/src/cache_config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/cache_config.rs -------------------------------------------------------------------------------- /price-server/src/currency/convert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/currency/convert.rs -------------------------------------------------------------------------------- /price-server/src/currency/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/currency/mod.rs -------------------------------------------------------------------------------- /price-server/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/error.rs -------------------------------------------------------------------------------- /price-server/src/exchange_tick_cache.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/exchange_tick_cache.rs -------------------------------------------------------------------------------- /price-server/src/fee_calculator/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/fee_calculator/config.rs -------------------------------------------------------------------------------- /price-server/src/fee_calculator/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/fee_calculator/mod.rs -------------------------------------------------------------------------------- /price-server/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/lib.rs -------------------------------------------------------------------------------- /price-server/src/order_book_cache.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/order_book_cache.rs -------------------------------------------------------------------------------- /price-server/src/price_converter/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/price_converter/mod.rs -------------------------------------------------------------------------------- /price-server/src/price_mixer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/price_mixer.rs -------------------------------------------------------------------------------- /price-server/src/server/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/server/config.rs -------------------------------------------------------------------------------- /price-server/src/server/convert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/server/convert.rs -------------------------------------------------------------------------------- /price-server/src/server/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/server/error.rs -------------------------------------------------------------------------------- /price-server/src/server/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/src/server/mod.rs -------------------------------------------------------------------------------- /price-server/tests/price_app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/price-server/tests/price_app.rs -------------------------------------------------------------------------------- /proto/bria/bria_service.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/proto/bria/bria_service.proto -------------------------------------------------------------------------------- /proto/price/price_service.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/proto/price/price_service.proto -------------------------------------------------------------------------------- /proto/quotes/quote_service.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/proto/quotes/quote_service.proto -------------------------------------------------------------------------------- /quotes-server/.sqlx/query-6e87c7231f91379afe2414309051966925d022b3b41170dca18dccc1cdecf4ec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/.sqlx/query-6e87c7231f91379afe2414309051966925d022b3b41170dca18dccc1cdecf4ec.json -------------------------------------------------------------------------------- /quotes-server/.sqlx/query-a9f2e532a8cedde9ff6c74ce159591ff133ed437f2169d48ee162189b8f4f5c8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/.sqlx/query-a9f2e532a8cedde9ff6c74ce159591ff133ed437f2169d48ee162189b8f4f5c8.json -------------------------------------------------------------------------------- /quotes-server/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/Cargo.toml -------------------------------------------------------------------------------- /quotes-server/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/build.rs -------------------------------------------------------------------------------- /quotes-server/src/app/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/app/config.rs -------------------------------------------------------------------------------- /quotes-server/src/app/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/app/mod.rs -------------------------------------------------------------------------------- /quotes-server/src/cache/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/cache/config.rs -------------------------------------------------------------------------------- /quotes-server/src/cache/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/cache/mod.rs -------------------------------------------------------------------------------- /quotes-server/src/cache/order_book_cache.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/cache/order_book_cache.rs -------------------------------------------------------------------------------- /quotes-server/src/currency/convert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/currency/convert.rs -------------------------------------------------------------------------------- /quotes-server/src/currency/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/currency/mod.rs -------------------------------------------------------------------------------- /quotes-server/src/currency/value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/currency/value.rs -------------------------------------------------------------------------------- /quotes-server/src/entity/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/entity/error.rs -------------------------------------------------------------------------------- /quotes-server/src/entity/event.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/entity/event.rs -------------------------------------------------------------------------------- /quotes-server/src/entity/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/entity/mod.rs -------------------------------------------------------------------------------- /quotes-server/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/error.rs -------------------------------------------------------------------------------- /quotes-server/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/lib.rs -------------------------------------------------------------------------------- /quotes-server/src/price/converter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/converter.rs -------------------------------------------------------------------------------- /quotes-server/src/price/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/error.rs -------------------------------------------------------------------------------- /quotes-server/src/price/fee.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/fee.rs -------------------------------------------------------------------------------- /quotes-server/src/price/mixer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/mixer.rs -------------------------------------------------------------------------------- /quotes-server/src/price/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/mod.rs -------------------------------------------------------------------------------- /quotes-server/src/price/tick_converter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/tick_converter.rs -------------------------------------------------------------------------------- /quotes-server/src/price/traits.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/price/traits.rs -------------------------------------------------------------------------------- /quotes-server/src/quote/entity.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/quote/entity.rs -------------------------------------------------------------------------------- /quotes-server/src/quote/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/quote/error.rs -------------------------------------------------------------------------------- /quotes-server/src/quote/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/quote/mod.rs -------------------------------------------------------------------------------- /quotes-server/src/quote/repo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/quote/repo.rs -------------------------------------------------------------------------------- /quotes-server/src/server/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/server/config.rs -------------------------------------------------------------------------------- /quotes-server/src/server/convert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/server/convert.rs -------------------------------------------------------------------------------- /quotes-server/src/server/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/server/error.rs -------------------------------------------------------------------------------- /quotes-server/src/server/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/src/server/mod.rs -------------------------------------------------------------------------------- /quotes-server/tests/quote_app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/quotes-server/tests/quote_app.rs -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/rust-toolchain.toml -------------------------------------------------------------------------------- /shared/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/Cargo.toml -------------------------------------------------------------------------------- /shared/src/health.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/health.rs -------------------------------------------------------------------------------- /shared/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/lib.rs -------------------------------------------------------------------------------- /shared/src/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/macros.rs -------------------------------------------------------------------------------- /shared/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("hello world") 3 | } 4 | -------------------------------------------------------------------------------- /shared/src/payload/constants.rs: -------------------------------------------------------------------------------- 1 | pub const OKEX_EXCHANGE_ID: &str = "okex"; 2 | -------------------------------------------------------------------------------- /shared/src/payload/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/payload/mod.rs -------------------------------------------------------------------------------- /shared/src/payload/primitives.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/payload/primitives.rs -------------------------------------------------------------------------------- /shared/src/pubsub/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/pubsub/error.rs -------------------------------------------------------------------------------- /shared/src/pubsub/memory.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/pubsub/memory.rs -------------------------------------------------------------------------------- /shared/src/pubsub/message.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/pubsub/message.rs -------------------------------------------------------------------------------- /shared/src/pubsub/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/pubsub/mod.rs -------------------------------------------------------------------------------- /shared/src/sqlxmq.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/sqlxmq.rs -------------------------------------------------------------------------------- /shared/src/time.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/time.rs -------------------------------------------------------------------------------- /shared/src/tonic.rs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /shared/src/tracing.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/shared/src/tracing.rs -------------------------------------------------------------------------------- /stablesats.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/stablesats.yml -------------------------------------------------------------------------------- /typos.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/typos.toml -------------------------------------------------------------------------------- /user-trades/.env: -------------------------------------------------------------------------------- 1 | DATABASE_URL=postgres://user:password@127.0.0.1:5432/pg 2 | -------------------------------------------------------------------------------- /user-trades/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /user-trades/.sqlx/query-21fff44c3d9afbeb410e20503d5503ed369d2e1e973d7240ea7e6db64d15af9d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-21fff44c3d9afbeb410e20503d5503ed369d2e1e973d7240ea7e6db64d15af9d.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-2b868fd5a78978ec8bc3bcd79008f831a139e070f994b0b8bfe4e8a3dd3105f7.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-2b868fd5a78978ec8bc3bcd79008f831a139e070f994b0b8bfe4e8a3dd3105f7.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-826a2e93ff9e145528eaafb810f5c8028a099f205369d4e59766f46c6a0d7500.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-826a2e93ff9e145528eaafb810f5c8028a099f205369d4e59766f46c6a0d7500.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-c0a3dad5c21faee2e7ee480ceeba54924c70f5d53c344cfcf6ac09d759016976.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-c0a3dad5c21faee2e7ee480ceeba54924c70f5d53c344cfcf6ac09d759016976.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-cb456cade246ef96b3f03e01d373e081166e03d1ec2914606b975d33273c195c.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-cb456cade246ef96b3f03e01d373e081166e03d1ec2914606b975d33273c195c.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-e232bc879d083e5ed3f97f7b4a784c353d97703588b64cd44452d4f07b858cfa.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-e232bc879d083e5ed3f97f7b4a784c353d97703588b64cd44452d4f07b858cfa.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-ecda7feba70249cfa67e14e09d73daaac625dcbf4b307ae664f26b9f5d0eef2d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-ecda7feba70249cfa67e14e09d73daaac625dcbf4b307ae664f26b9f5d0eef2d.json -------------------------------------------------------------------------------- /user-trades/.sqlx/query-fee34cfbdb19294324dc4ceb3cc20fcf3bd61814cd8f1a680564ba14a14b2185.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/.sqlx/query-fee34cfbdb19294324dc4ceb3cc20fcf3bd61814cd8f1a680564ba14a14b2185.json -------------------------------------------------------------------------------- /user-trades/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/Cargo.toml -------------------------------------------------------------------------------- /user-trades/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/build.rs -------------------------------------------------------------------------------- /user-trades/src/app/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/app/config.rs -------------------------------------------------------------------------------- /user-trades/src/app/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/app/mod.rs -------------------------------------------------------------------------------- /user-trades/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/error.rs -------------------------------------------------------------------------------- /user-trades/src/galoy_transactions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/galoy_transactions/mod.rs -------------------------------------------------------------------------------- /user-trades/src/job/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/job/mod.rs -------------------------------------------------------------------------------- /user-trades/src/job/poll_galoy_transactions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/job/poll_galoy_transactions.rs -------------------------------------------------------------------------------- /user-trades/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/lib.rs -------------------------------------------------------------------------------- /user-trades/src/user_trades/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/user_trades/mod.rs -------------------------------------------------------------------------------- /user-trades/src/user_trades/unit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/src/user_trades/unit.rs -------------------------------------------------------------------------------- /user-trades/tests/app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GaloyMoney/stablesats-rs/HEAD/user-trades/tests/app.rs --------------------------------------------------------------------------------