Thanks to visit codestin.com
Credit goes to lib.rs

2 stable releases

1.2.3 Dec 2, 2024
1.1.0 Oct 6, 2024

#5 in #packages-and-protocols

Codestin Search App

148 downloads per month

MIT license

4KB
56 lines

CW Extra

Experimental CosmWasm based contracts, packages and protocols

Smart Account Standards

Standards focusing on interfaces for smart contract based accounts

Name Description Examples
cw22 Supported Interface (by Aura Network) link
cw81 Signature verification for smart contracts (inspired by ERC-1271) link
cw82 Minimal smart contract based abstract account link
cw83 Registry for smart contract based accounts (inspired by ERC-6551) link
cw84 Signed Actions and actioon queries for smart contract accounts link

NFTs

To be released in near future

Examples

Example contracts showcasing usage of the proposed protocols and standards

CW22

Any example contract from this repository

CW81

Contract Description
cw-81-last-signature Contract owner stores an exprirable signature and checks a queried one is equal to it
cw-81-pubkey Using secp256k1 public key provided by contract creator and verifying using ecdsa
cw-81-sn-ks SecretWasm based contract using a secp256k1 private key for signature generation and verification

CW82

Contract Description
cw82-key-account Signatures are verified against secp256k1 public key and all executable cosmos message must be signed by a corresponding private key
cw82-sn-sym Secret Network specifc contract that only allow cosmos messages that had been encrypted by a secret (symmetric) key provided to the contract by instantiator. Signatures must be coming from a separate key generated inside the contract to be valid
cw82-tba-base Only an NFT owner can execute some cosmos messages. Signature are checked against the stored public key through direct sign

CW83

Contract Description
cw83-tba-registry A Registry of token (NFT) bound accounts

CW84

To be added shortly



Purpose

This is playground repository for MegaRock to test out new ideas that can standartised. All the projects in the reposity are of an experimental nature with low-maintanace and support. The projects here shouldn't be used for production before being peer-review and explicitly green-lighted by the team. (in case where the usage is licensed )

Disclaimer

As part of our mission of promoting public goods and open source culture we are planning to be contributing the standards that gain adoption into the original repository maintained by the official team working on CosmWasm. Altenatively the team might choose to maintain a standard ourselves.

Unless explicietely specified otherwise with a standalone License file or description all the interface packages in the repository are released under open-source lincense and all the examples contracts are treated as source available only.

Dependencies

~1.5MB
~39K SLoC