use alloy_unit_macros::*;
use alloy_primitives::U256;
const ETHER_AMOUNT: U256 = ether!(1.23);
const GWEI_AMOUNT: U256 = gwei!(1.23);
const BTC_AMOUNT: U256 = btc!(1.23);
const USDC_AMOUNT: U256 = mwei!(1.23);
const WEI_AMOUNT: U256 = wei!(123);
const AMOUNT: U256 = u256!(123);
const CUSTOM_AMOUNT: U256 = amount!(14, 1.23);
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
makcandrov/alloy-unit-macros
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Stars
Watchers
Forks
Releases
No releases published