cw-denom 2.6.0

A package for validation and handling of cw20 and native Cosmos SDK denominations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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](https://github.com/cosmos/cosmos-sdk/blob/7728516abfab950dc7a9120caad4870f1f962df5/types/coin.go#L865-L867) 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.