Crate odos_sdk

Source

Modules§

ERC20
Generated by the following Solidity interface…
OdosLimitOrderRouter
Module containing a contract’s types and functions.
OdosLimitOrderV2
Generated by the following Solidity interface…
OdosRouterV2
Module containing a contract’s types and functions.
OdosV2Router
Generated by the following Solidity interface…
SignatureValidator
Module containing a contract’s types and functions.

Structs§

AssembleRequest
Request to the Odos Assemble API: https://docs.odos.xyz/build/api-docs
AssemblyResponse
Response from the Odos Assemble API: https://docs.odos.xyz/build/api-docs
Erc20
The ERC20 contract.
InputToken
LimitOrderV2
The Limit Order Router contract.
OdosSorV2
OutputToken
QuoteRequest
Request to the Odos quote API: https://docs.odos.xyz/build/api-docs
QuoteRequestBuilder
Use builder syntax to set the inputs and finish with build().
Simulation
Simulation from the Odos Assemble API: https://docs.odos.xyz/build/api-docs
SimulationError
Simulation error from the Odos Assemble API: https://docs.odos.xyz/build/api-docs
SingleQuoteResponse
Single quote response from the Odos quote API: https://docs.odos.xyz/build/api-docs
SwapContext
A token swap.
SwapContextBuilder
Use builder syntax to set the inputs and finish with build().
SwapInputs
TransactionData
Transaction data from the Odos Assemble API: https://docs.odos.xyz/build/api-docs
TransferRouterFunds
A transfer of a token from one address to another.
TransferRouterFundsBuilder
Use builder syntax to set the inputs and finish with build().
V2Router
The V2 SOR Router contract.

Constants§

ASSEMBLE_URL
ODOS_V2_ARBITRUM_ROUTER
https://arbiscan.io/address/0xa669e7a0d4b3e4fa48af2de86bd4cd7126be4e13
ODOS_V2_AVALANCHE_ROUTER
https://snowtrace.io/address/0x88de50b233052e4fb783d4f6db78cc34fea3e9fc
ODOS_V2_BASE_ROUTER
https://basescan.org/address/0x19cEeAd7105607Cd444F5ad10dd51356436095a1
ODOS_V2_BSC_ROUTER
https://bscscan.com/address/0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e
ODOS_V2_ETHEREUM_ROUTER
https://etherscan.io/address/0xcf5540fffcdc3d510b18bfca6d2b9987b0772559
ODOS_V2_FANTOM_ROUTER
https://ftmscan.com/address/0xD0c22A5435F4E8E5770C1fAFb5374015FC12F7cD
ODOS_V2_FRAXTAL_ROUTER
https://fraxscan.com/address/0x56c85a254DD12eE8D9C04049a4ab62769Ce98210
ODOS_V2_LINEA_ROUTER
https://linea.blockscout.com/address/0x2d8879046f1559E53eb052E949e9544bCB72f414
ODOS_V2_MANTLE_ROUTER
https://mantlescan.xyz/address/0xD9F4e85489aDCD0bAF0Cd63b4231c6af58c26745
ODOS_V2_MODE_ROUTER
https://explorer.mode.network/address/0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874
ODOS_V2_OP_ROUTER
https://optimistic.etherscan.io/address/0xca423977156bb05b13a2ba3b76bc5419e2fe9680
ODOS_V2_POLYGON_ROUTER
https://polygonscan.com/address/0x4e3288c9ca110bcc82bf38f09a7b425c095d92bf
ODOS_V2_SCROLL_ROUTER
https://explorer.scroll.io/address/0xbFe03C9E20a9Fc0b37de01A172F207004935E0b1
ODOS_V2_SONIC_ROUTER
https://sonar.explorer.sonar.watch/address/0xaC041Df48dF9791B0654f1Dbbf2CC8450C5f2e9D
ODOS_V2_ZKSYNC_ROUTER
https://explorer.zksync.io/address/0x4bBa932E9792A2b917D47830C93a9BC79320E4f7

Traits§

OdosChain

Functions§

parse_value