#native #cosmos #validation #cosmwasm #cw20 #valid #denominations

cw-denom

A package for validation and handling of cw20 and native Cosmos SDK denominations

9 stable releases

new 2.6.0 Nov 7, 2024
2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.3.0 Oct 18, 2023
0.1.0 Sep 25, 2022

#569 in Magic Beans

Download history 905/week @ 2024-07-18 449/week @ 2024-07-25 477/week @ 2024-08-01 567/week @ 2024-08-08 533/week @ 2024-08-15 125/week @ 2024-08-22 114/week @ 2024-08-29 277/week @ 2024-09-05 294/week @ 2024-09-12 154/week @ 2024-09-19 143/week @ 2024-09-26 69/week @ 2024-10-03 172/week @ 2024-10-10 209/week @ 2024-10-17 63/week @ 2024-10-24 472/week @ 2024-10-31

926 downloads per month
Used in 28 crates (5 directly)

BSD-3-Clause

18KB
334 lines

CosmWasm Denom

This is a simple package for validating cw20 and Cosmos SDK native denominations. It proves the types, UncheckedDenom and CheckedDenom. UncheckedDenom may be used in CosmWasm contract messages and checked via the into_checked method.

To validate native denominations, this package uses the same rules as the SDK.

To validate cw20 denominations this package ensures that the specified address is valid, that the specified address is a CosmWasm contract, and that the specified address responds correctly to cw20 TokenInfo queries.

Dependencies

~4–6MB
~125K SLoC