Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion config/dev.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
log_dir = "./logs"
database_url = "sqlite:./data/st0x.db"
registry_url = "https://raw.githubusercontent.com/rainlanguage/rain.strategies/5d0a11ad4a3e89531c922317b09216200ea7bdc0/registry"
registry_url = "https://raw.githubusercontent.com/ST0x-Technology/st0x.registry/4576454c0860c2bbf5726b3d1fcdc60771e377a7/registry"
rate_limit_global_rpm = 600
rate_limit_per_key_rpm = 60
docs_dir = "./docs/book"
Expand Down
2 changes: 1 addition & 1 deletion config/rest-api.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
log_dir = "/mnt/data/st0x-rest-api/logs"
database_url = "sqlite:///mnt/data/st0x-rest-api/st0x.db"
registry_url = "https://raw.githubusercontent.com/rainlanguage/rain.strategies/5d0a11ad4a3e89531c922317b09216200ea7bdc0/registry"
registry_url = "https://raw.githubusercontent.com/ST0x-Technology/st0x.registry/4576454c0860c2bbf5726b3d1fcdc60771e377a7/registry"
rate_limit_global_rpm = 600
rate_limit_per_key_rpm = 60
docs_dir = "/var/lib/st0x-docs"
Expand Down
2 changes: 1 addition & 1 deletion lib/rain.orderbook
2 changes: 1 addition & 1 deletion src/routes/order/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub(crate) mod test_fixtures {
pub fn stub_raindex_client() -> serde_json::Value {
json!({
"orderbook_yaml": {
"documents": ["version: 4\nnetworks:\n base:\n rpcs:\n - https://mainnet.base.org\n chain-id: 8453\n currency: ETH\nsubgraphs:\n base: https://example.com/sg\norderbooks:\n base:\n address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7\n network: base\n subgraph: base\n deployment-block: 0\ndeployers:\n base:\n address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D\n network: base\n"],
"documents": ["version: 5\nnetworks:\n base:\n rpcs:\n - https://mainnet.base.org\n chain-id: 8453\n currency: ETH\nsubgraphs:\n base: https://example.com/sg\norderbooks:\n base:\n address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7\n network: base\n subgraph: base\n deployment-block: 0\nrainlangs:\n base:\n address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D\n network: base\n"],
"profile": "strict"
}
})
Expand Down
8 changes: 4 additions & 4 deletions src/routes/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mod tests {

#[rocket::async_test]
async fn test_get_tokens_returns_multiple_tokens() {
let settings = r#"version: 4
let settings = r#"version: 5
networks:
base:
rpcs:
Expand All @@ -137,7 +137,7 @@ orderbooks:
network: base
subgraph: base
deployment-block: 0
deployers:
rainlangs:
base:
address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D
network: base
Expand Down Expand Up @@ -180,7 +180,7 @@ tokens:

#[rocket::async_test]
async fn test_get_tokens_adds_name_and_isin_from_remote_tokens() {
let settings = r#"version: 4
let settings = r#"version: 5
networks:
base:
rpcs:
Expand All @@ -195,7 +195,7 @@ orderbooks:
network: base
subgraph: base
deployment-block: 0
deployers:
rainlangs:
base:
address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D
network: base
Expand Down
9 changes: 5 additions & 4 deletions src/test_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use alloy::primitives::{Address, U256};
use base64::Engine;
use rain_math_float::Float;
use rain_orderbook_bindings::IOrderBookV6::{EvaluableV4, OrderV4, IOV2};
use rain_orderbook_bindings::IRaindexV6::{EvaluableV4, OrderV4, IOV2};
use rain_orderbook_common::raindex_client::orders::RaindexOrder;
use rain_orderbook_common::take_orders::TakeOrderCandidate;
use rocket::local::asynchronous::Client;
Expand Down Expand Up @@ -72,7 +72,7 @@ pub(crate) async fn mock_raindex_config() -> crate::raindex::RaindexProvider {
}

pub(crate) async fn mock_raindex_registry_url() -> String {
let settings = r#"version: 4
let settings = r#"version: 5
networks:
base:
rpcs:
Expand All @@ -87,7 +87,7 @@ orderbooks:
network: base
subgraph: base
deployment-block: 0
deployers:
rainlangs:
base:
address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D
network: base
Expand Down Expand Up @@ -207,7 +207,7 @@ pub(crate) fn basic_auth_header(key_id: &str, secret: &str) -> String {
fn stub_raindex_client() -> serde_json::Value {
json!({
"orderbook_yaml": {
"documents": ["version: 4\nnetworks:\n base:\n rpcs:\n - https://mainnet.base.org\n chain-id: 8453\n currency: ETH\nsubgraphs:\n base: https://example.com/sg\norderbooks:\n base:\n address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7\n network: base\n subgraph: base\n deployment-block: 0\ndeployers:\n base:\n address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D\n network: base\n"],
"documents": ["version: 5\nnetworks:\n base:\n rpcs:\n - https://mainnet.base.org\n chain-id: 8453\n currency: ETH\nsubgraphs:\n base: https://example.com/sg\norderbooks:\n base:\n address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7\n network: base\n subgraph: base\n deployment-block: 0\nrainlangs:\n base:\n address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D\n network: base\n"],
"profile": "strict"
}
})
Expand Down Expand Up @@ -310,5 +310,6 @@ pub(crate) fn mock_candidate(max_output: &str, ratio: &str) -> TakeOrderCandidat
output_io_index: 0,
max_output: Float::parse(max_output.to_string()).unwrap(),
ratio: Float::parse(ratio.to_string()).unwrap(),
signed_context: vec![],
}
}
Loading