Skip to content

makcandrov/alloy-unit-macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alloy-unit-macros

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);

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

Languages