MCPcopy Create free account

hub / github.com/alloy-rs/examples / functions

Functions180 in github.com/alloy-rs/examples

↓ 28 callersMethodcall
(&mut self, req: Request)
examples/layers/examples/delay_layer.rs:63
↓ 11 callersFunctionget_uniswappy_fee
()
helpers/src/alloy.rs:156
↓ 11 callersFunctionget_uniswappy_fee
()
examples/contracts/examples/helpers.rs:128
↓ 10 callersFunctionget_amount_out
(reserve_in: U256, reserve_out: U256, amount_in: U256)
examples/contracts/examples/helpers.rs:47
↓ 10 callersFunctionget_uniswappy_fee
()
helpers/src/ethers.rs:158
↓ 10 callersFunctionset_hash_storage_slot
( anvil_provider: &P, address: Address, hash_slot: U256, hash_key: Address, value: U256, )
examples/contracts/examples/helpers.rs:132
↓ 9 callersMethodincrement
Increments the number stored in the [`Counter`].
examples/providers/examples/wrapped_provider.rs:77
↓ 9 callersMethodnumber
Returns the current number stored in the [`Counter`].
examples/providers/examples/wrapped_provider.rs:71
↓ 7 callersMethodfrom
(val: PermitTransferFrom)
examples/transactions/examples/permit2_signature_transfer.rs:55
↓ 5 callersFunctionget_amount_in
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
examples/contracts/examples/helpers.rs:54
↓ 5 callersFunctionget_sushi_pair
https://etherscan.io/address/0xC3D03e4F041Fd4cD388c549Ee2A29a9E5075882f
examples/contracts/examples/helpers.rs:37
↓ 5 callersFunctionget_uniswap_pair
https://etherscan.io/address/0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11
examples/contracts/examples/helpers.rs:26
↓ 4 callersMethoddeploy
Deploys [`Counter`] using the given [`EthereumWallet`] and returns [`CounterInstance`]
examples/providers/examples/wrapped_provider.rs:49
↓ 4 callersMethodlayer
(&self, service: S)
examples/layers/examples/delay_layer.rs:44
↓ 3 callersFunctiondeser
(g: &mut BenchmarkGroup<'_, WallTime>, name: &str, s: &str)
benches/benches/json_abi.rs:27
↓ 3 callersFunctionser
(g: &mut BenchmarkGroup<'_, WallTime>, name: &str, s: &str)
benches/benches/json_abi.rs:40
↓ 2 callersFunctiondai
()
helpers/src/ethers.rs:66
↓ 2 callersFunctionprint_tuple
Utility function to print the decoded data.
examples/advanced/examples/encoding_dyn_abi.rs:87
↓ 2 callersFunctionsqrt
(input: U256)
helpers/src/alloy.rs:96
↓ 2 callersFunctionsqrt
(input: U256)
helpers/src/ethers.rs:98
↓ 2 callersFunctionsqrt
(input: U256)
examples/contracts/examples/helpers.rs:68
↓ 2 callersFunctionweth
()
helpers/src/ethers.rs:62
↓ 1 callersFunctionconfigure_evm
( block: AnyRpcBlock, shared: SharedBackend, )
examples/advanced/examples/foundry_fork_db.rs:125
↓ 1 callersFunctionconfigure_tx_env
(tx_req: TransactionRequest)
examples/advanced/examples/foundry_fork_db.rs:156
↓ 1 callersMethodfill
Fills in the transaction request with properties from GasFillable
examples/fillers/examples/urgent_filler.rs:56
↓ 1 callersFunctionformat_units_example
dApps business logics handle big numbers in 'wei' units (i.e. sending transactions, on-chain math, etc.). On the other hand it is useful to convert bi
examples/big-numbers/examples/math_utilities.rs:60
↓ 1 callersFunctiongenerate_mnemonic
()
examples/transactions/examples/permit2_signature_transfer.rs:152
↓ 1 callersFunctionget_denominator
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
helpers/src/alloy.rs:136
↓ 1 callersFunctionget_denominator
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
helpers/src/ethers.rs:138
↓ 1 callersFunctionget_denominator
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
examples/contracts/examples/helpers.rs:108
↓ 1 callersFunctionget_numerator
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
helpers/src/alloy.rs:110
↓ 1 callersFunctionget_numerator
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
helpers/src/ethers.rs:112
↓ 1 callersFunctionget_numerator
( reserves00: U256, reserves01: U256, is_weth0: bool, reserves10: U256, reserves11: U256,
examples/contracts/examples/helpers.rs:82
↓ 1 callersFunctionget_usd_value
(amount: u128, price_usd: U256)
examples/transactions/examples/gas_price_usd.rs:55
↓ 1 callersMethodlayer
(&self, inner: S)
examples/layers/examples/hyper_http_layer.rs:56
↓ 1 callersMethodlayer
(&self, inner: S)
examples/layers/examples/logging_layer.rs:29
↓ 1 callersFunctionparse_units_example
dApps business logics handle big numbers in 'wei' units (i.e. sending transactions, on-chain math, etc.). We provide convenient methods to map user in
examples/big-numbers/examples/math_utilities.rs:19
↓ 1 callersMethodprovider
Returns the inner provider.
examples/providers/examples/wrapped_provider.rs:90
↓ 1 callersFunctionserde_signature
(g: &mut BenchmarkGroup<'_, WallTime>, s: &str)
benches/benches/json_abi.rs:61
Methodcall
(&mut self, mut req: hyper::Request<B>)
examples/layers/examples/hyper_http_layer.rs:89
Methodcall
(&mut self, req: RequestPacket)
examples/layers/examples/logging_layer.rs:57
Functiondeser_group
(c: &mut Criterion)
benches/benches/json_abi.rs:19
Functiondisplay_token
Displays the token amount in a human-readable format
helpers/src/ethers.rs:71
Functionencoding_benchmark
(c: &mut Criterion)
benches/benches/abi_encoding.rs:29
Methodfill_sync
(&self, _tx: &mut SendableTx<N>)
examples/fillers/examples/urgent_filler.rs:53
Functionget_amount_in
Get amount in for Uniswap V2
helpers/src/alloy.rs:82
Functionget_amount_in
Gets the amountIn
helpers/src/ethers.rs:84
Functionget_amount_out
Get amount out for Uniswap V2
helpers/src/alloy.rs:74
Functionget_amount_out
Gets the amountOut
helpers/src/ethers.rs:76
Functionget_sushi_pair
https://etherscan.io/address/0xC3D03e4F041Fd4cD388c549Ee2A29a9E5075882f Get DAI-WETH Sushiswap pair
helpers/src/alloy.rs:46
Functionget_sushi_pair
https://etherscan.io/address/0xC3D03e4F041Fd4cD388c549Ee2A29a9E5075882f Get DAI-WETH Sushiswap pair
helpers/src/ethers.rs:35
Functionget_uniswap_pair
https://etherscan.io/address/0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11 Get DAI-WETH Uniswap V2 pair
helpers/src/alloy.rs:34
Functionget_uniswap_pair
https://etherscan.io/address/0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11 Get DAI-WETH Uniswap V2 pair
helpers/src/ethers.rs:23
Functionmain
()
examples/providers/examples/embed_consensus_rpc.rs:30
Functionmain
()
examples/providers/examples/ipc.rs:7
Functionmain
()
examples/providers/examples/dyn_provider.rs:29
Functionmain
()
examples/providers/examples/multicall_batching.rs:24
Functionmain
()
examples/providers/examples/batch_rpc.rs:11
Functionmain
()
examples/providers/examples/http_with_auth.rs:18
Functionmain
()
examples/providers/examples/http.rs:7
Functionmain
()
examples/providers/examples/multicall.rs:20
Functionmain
()
examples/providers/examples/ws.rs:8
Functionmain
()
examples/providers/examples/builtin.rs:11
Functionmain
()
examples/providers/examples/ws_with_auth.rs:11
Functionmain
()
examples/providers/examples/basic_provider.rs:15
Functionmain
()
examples/providers/examples/mocking.rs:14
Functionmain
()
examples/providers/examples/wrapped_provider.rs:96
Functionmain
()
examples/providers/examples/builder.rs:14
Functionmain
()
examples/comparison/examples/compare_new_heads.rs:22
Functionmain
()
examples/comparison/examples/compare_pending_txs.rs:21
Functionmain
()
examples/queries/examples/query_deployed_bytecode.rs:10
Functionmain
()
examples/queries/examples/query_logs_chunked.rs:24
Functionmain
()
examples/queries/examples/query_contract_storage.rs:10
Functionmain
()
examples/queries/examples/query_logs.rs:11
Functionmain
()
examples/layers/examples/delay_layer.rs:77
Functionmain
()
examples/layers/examples/hyper_http_layer.rs:22
Functionmain
()
examples/layers/examples/logging_layer.rs:71
Functionmain
()
examples/layers/examples/retry_layer.rs:11
Functionmain
()
examples/layers/examples/fallback_layer.rs:17
Functionmain
()
examples/transactions/examples/send_eip7594_transaction.rs:16
Functionmain
()
examples/transactions/examples/transfer_erc20.rs:19
Functionmain
()
examples/transactions/examples/trace_transaction.rs:14
Functionmain
()
examples/transactions/examples/transfer_eth.rs:12
Functionmain
()
examples/transactions/examples/send_eip4844_transaction.rs:13
Functionmain
()
examples/transactions/examples/trace_call.rs:12
Functionmain
()
examples/transactions/examples/encode_decode_eip1559.rs:11
Functionmain
()
examples/transactions/examples/gas_price_usd.rs:26
Functionmain
()
examples/transactions/examples/decode_input.rs:20
Functionmain
()
examples/transactions/examples/send_eip7702_transaction.rs:36
Functionmain
()
examples/transactions/examples/trace_call_many.rs:13
Functionmain
()
examples/transactions/examples/send_private_transaction.rs:15
Functionmain
()
examples/transactions/examples/send_raw_transaction.rs:12
Functionmain
()
examples/transactions/examples/debug_trace_call_many.rs:15
Functionmain
()
examples/transactions/examples/with_access_list.rs:19
Functionmain
()
examples/transactions/examples/send_legacy_transaction.rs:12
Functionmain
()
examples/transactions/examples/permit2_signature_transfer.rs:68
Functionmain
()
examples/transactions/examples/send_eip1559_transaction.rs:12
Functionmain
()
examples/transactions/examples/decode_receipt_log.rs:27
Functionmain
()
examples/node-bindings/examples/anvil_set_storage_at.rs:22
Functionmain
()
examples/node-bindings/examples/geth_local_instance.rs:10
next →1–100 of 180, ranked by callers