API Reference rujira_ex v#0.0.1

Copy Markdown View Source

Modules

Domain library for Rujira.

Integer amounts normalized to 8 decimal places.

Asset resolution for Rujira.

Defines the Asset struct for representing blockchain assets.

Module for handling asset metadata.

Canonical coin type for Rujira.

Convenience methods for querying CosmWasm smart contracts.

Resolves deployed Rujira contracts from THORChain's contract-info index.

A deployment target resolved from on-chain contract metadata.

Custom enum utilities for safer and more efficient list processing.

Generic event parser for all Rujira events.

Default event struct for unrecognized or not-yet-implemented events.

Public API for the FIN DEX protocol.

Order book for the FIN protocol.

Represents a price level in the order book with associated order details.

Parser for FIN protocol wasm events.

Protocol-level envelope for FIN events. Allows matching all FIN events by struct.

A range fee claim event (wasm-rujira-fin/range.claim).

A range close event (wasm-rujira-fin/range.close).

A range creation event (wasm-rujira-fin/range.create).

A range deposit event (wasm-rujira-fin/range.deposit).

A range fee accrual event (wasm-rujira-fin/range.fee).

A range withdrawal event (wasm-rujira-fin/range.withdraw).

An order retraction event (wasm-rujira-fin/retract).

An order submission event (wasm-rujira-fin/submit).

A FIN trade event (wasm-rujira-fin/trade).

Trading order for the FIN protocol.

Trading pair for the FIN protocol.

Concentrated liquidity position (range) for the FIN protocol.

Math utilities for Rujira financial calculations

Behaviour and configurable delegator for chain node queries.

Behaviour and configurable delegator for asset price lookups.

Default price adapter: oracle → FIN book mid-price fallback.

No-op prices adapter. Returns 0 for all lookups.

Parser for THORChain native chain events.

A THORChain add liquidity event.

A THORChain bond/rebond event.

Protocol-level envelope for THORChain events. Allows matching all THORChain events by struct.

A THORChain oracle price update event.

A THORChain pending liquidity event.

A THORChain governance mimir update event.

A THORChain pool swap event.

A THORChain token transfer event.

A THORChain withdraw event.

Oracle struct for Thorchain Enshrined Oracle data.