#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

#1549 in Magic Beans

Download history 42/week @ 2024-01-02 77/week @ 2024-01-09 54/week @ 2024-01-16 119/week @ 2024-01-23 78/week @ 2024-01-30 87/week @ 2024-02-06 139/week @ 2024-02-13 104/week @ 2024-02-20 147/week @ 2024-02-27 97/week @ 2024-03-05 135/week @ 2024-03-12 134/week @ 2024-03-19 114/week @ 2024-03-26 168/week @ 2024-04-02 53/week @ 2024-04-09 96/week @ 2024-04-16

449 downloads per month
Used in 25 crates (4 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
~120K SLoC