Giter Club home page Giter Club logo

cw-contract-template's Introduction

CosmWasm Project

Project Structure

Contract are partitioned into query and execute functions. Query functions read contract state; whereas, execute functions may mutate state. These groups of functions are contained in distinct modules: src/execute/ and src/query/. If the contract implements any other entrypoint, like reply, one can create a new reply module following the established pattern.

Building, Deploying, Instantiating

make build
make schemas
make deploy
make instantiate

Local Development

A. Docker Setup

  1. Run local Juno node
make devnet

B. Local System Setup

  1. Initialize Juno & Import key again
junod init --chain-id testing localdev
  1. Import key
junod keys add JunoWallet --recover

> Enter your bip39 mnemonic
clip hire initial neck maid actor venue client foam budget lock catalog sweet steak waste crater broccoli pipe steak sister coyote moment obvious choose

Edit $HOME/.juno/config/client.toml and set keyring-backend = "test" to match the Juno node running in Docker.

OSX Notes

  • grep - Need to run brew install grep. Follow post-install instructions to add new location to PATH

Execute Functions

Change Ownership

This lets you change the "owner" address associated with the contract.

Query Functions

Select

Return one or more specified properties from state.

cw-contract-template's People

Contributors

cheddarwhizzy avatar dgabriele avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

cheddarwhizzy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.