#native #cosmos #validation #cosmwasm #cw20 #contract #denominations

cw-denom

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

5 releases (stable)

2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023
2.1.5 Jul 6, 2023
2.0.2 Jan 19, 2023
0.1.0 Sep 25, 2022

#1541 in Magic Beans

Download history 121/week @ 2024-03-11 134/week @ 2024-03-18 129/week @ 2024-03-25 167/week @ 2024-04-01 57/week @ 2024-04-08 95/week @ 2024-04-15 91/week @ 2024-04-22 82/week @ 2024-04-29 105/week @ 2024-05-06 123/week @ 2024-05-13 119/week @ 2024-05-20 280/week @ 2024-05-27 76/week @ 2024-06-03 67/week @ 2024-06-10 95/week @ 2024-06-17 97/week @ 2024-06-24

336 downloads per month
Used in 26 crates (5 directly)

BSD-3-Clause

18KB
340 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–5.5MB
~121K SLoC