ostium-rust-sdk 0.1.0

Rust SDK for interacting with the Ostium trading platform on Arbitrum
Documentation
[[bin]]
name = "transaction_correctness_test"
path = "tests/transaction_correctness_test.rs"

[build-dependencies.reqwest]
features = ["blocking", "json"]
version = "0.12"

[build-dependencies.serde]
features = ["derive"]
version = "1.0"

[build-dependencies.serde_json]
version = "1.0"

[build-dependencies.tokio]
features = ["rt", "macros"]
version = "1.42"

[dependencies.alloy]
features = ["full"]
version = "1.0.6"

[dependencies.alloy-contract]
version = "1.0.6"

[dependencies.alloy-primitives]
version = "1.0.6"

[dependencies.alloy-provider]
version = "1.0.6"

[dependencies.alloy-rpc-types]
version = "1.0.6"

[dependencies.alloy-signer]
version = "1.0.6"

[dependencies.alloy-signer-local]
version = "1.0.6"

[dependencies.alloy-sol-types]
version = "1.0.6"

[dependencies.anyhow]
version = "1.0"

[dependencies.backoff]
features = ["tokio"]
version = "0.4"

[dependencies.chrono]
features = ["serde"]
version = "0.4"

[dependencies.dotenv]
optional = true
version = "0.15"

[dependencies.fastrand]
version = "2.0"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
features = ["json", "rustls-tls"]
version = "0.12"

[dependencies.rust_decimal]
features = ["serde", "maths"]
version = "1.36"

[dependencies.rust_decimal_macros]
version = "1.36"

[dependencies.serde]
features = ["derive"]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
features = ["full"]
version = "1.42"

[dependencies.tokio-retry]
version = "0.3"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3"

[dependencies.url]
features = ["serde"]
version = "2.5"

[dev-dependencies.mockito]
version = "1.6"

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.tokio-test]
version = "0.4"

[[example]]
name = "advanced_orders"
path = "examples/advanced_orders.rs"

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[example]]
name = "complete_unsigned_workflow"
path = "examples/complete_unsigned_workflow.rs"

[[example]]
name = "constraint_validation_example"
path = "examples/constraint_validation_example.rs"

[[example]]
name = "dynamic_contracts"
path = "examples/dynamic_contracts.rs"

[[example]]
name = "rate_limiting_demo"
path = "examples/rate_limiting_demo.rs"

[[example]]
name = "retry_demo"
path = "examples/retry_demo.rs"

[[example]]
name = "trading"
path = "examples/trading.rs"

[[example]]
name = "unsigned_transaction_demo"
path = "examples/unsigned_transaction_demo.rs"

[[example]]
name = "unsigned_transactions"
path = "examples/unsigned_transactions.rs"

[[example]]
name = "unsigned_transactions_working"
path = "examples/unsigned_transactions_working.rs"

[features]
default = ["env"]
env = ["dotenv"]
full = ["env"]
update-contracts = []

[lib]
name = "ostium_rust_sdk"
path = "src/lib.rs"

[package]
authors = ["Ranger Finance"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["api-bindings", "cryptography::cryptocurrencies"]
description = "Rust SDK for interacting with the Ostium trading platform on Arbitrum"
edition = "2021"
keywords = ["trading", "defi", "arbitrum", "ostium", "perpetuals"]
license = "MIT"
name = "ostium-rust-sdk"
readme = "README.md"
repository = "https://github.com/ranger-finance/ostium-rust-sdk"
version = "0.1.0"

[profile.release]
codegen-units = 1
lto = true
opt-level = 3

[[test]]
name = "account_functionality_test"
path = "tests/account_functionality_test.rs"

[[test]]
name = "constraint_validation_test"
path = "tests/constraint_validation_test.rs"

[[test]]
name = "contract_interaction_test"
path = "tests/contract_interaction_test.rs"

[[test]]
name = "error_mapping_test"
path = "tests/error_mapping_test.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "minimum_size_validation_test"
path = "tests/minimum_size_validation_test.rs"

[[test]]
name = "price_functionality_test"
path = "tests/price_functionality_test.rs"

[[test]]
name = "transaction_correctness_test"
path = "tests/transaction_correctness_test.rs"

[[test]]
name = "unsigned_transaction_validation_test"
path = "tests/unsigned_transaction_validation_test.rs"

[[test]]
name = "unsigned_transactions"
path = "tests/unsigned_transactions.rs"

[[test]]
name = "usdc_approval_test"
path = "tests/usdc_approval_test.rs"