Docs.rs
tycho-execution-0.128.1
tycho-execution 0.128.1
Docs.rs crate page
MIT
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
kayibal
github:propeller-heads:core-engineers
Dependencies
alloy ^1.0.35
normal
optional
async-trait ^0.1.88
normal
optional
chrono ^0.4.39
normal
clap ^4.5.3
normal
dotenv ^0.15.0
normal
hex ^0.4.3
normal
lazy_static ^1.4.0
normal
num-bigint ^0.4.6
normal
num-traits ^0.2.19
normal
once_cell ^1.20.2
normal
serde ^1.0
normal
serde_json ^1.0.105
normal
thiserror ^1.0.69
normal
tokio ^1.38.0
normal
tycho-common ^0.90.0
normal
rstest ^0.24.0
dev
Versions
45.07%
of the crate is documented
Go to latest version
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Module utils
tycho_
execution
0.128.1
Module utils
Module Items
Functions
Type Aliases
In tycho_
execution::
encoding::
evm
tycho_execution
::
encoding
::
evm
Module
utils
Copy item path
Source
Functions
§
biguint_
to_
u256
Converts a general
BigUint
to an EVM-specific
U256
value.
bytes_
to_
address
Safely converts a
Bytes
object to an
Address
object.
get_
client
Gets the client used for interacting with the EVM-compatible network.
get_
runtime
Returns the current Tokio runtime handle, or creates a new one if it doesn’t exist. It also returns the runtime to prevent it from being dropped before use. This is required since tycho-execution does not have a pre-existing runtime.
get_
static_
attribute
Extracts a static attribute from a swap.
get_
token_
position
Gets the position of a token in a list of tokens.
pad_
to_
fixed_
size
Pads a byte slice to a fixed size array of N bytes.
percentage_
to_
uint24
Converts a decimal to a
U24
value. The percentage is a
f64
value between 0 and 1. MAX_UINT24 corresponds to 100%.
ple_
encode
Uses prefix-length encoding to efficient encode action data.
write_
calldata_
to_
file
Type Aliases
§
EVMProvider