Skip to content

lezzokafka/cosmos-sdk-calvincoin

 
 

Repository files navigation

Simple CosmosSDK Token

This is a simple implementation of a token using CosmosSDK. It uses the bank and supply module from CosmosSDK and re-exported the balances, total supply and 1 to 1 transfer features to the calvincoin application.

Pre-requisite

Golang

Setup

Build

make install

Reset and Init chain

./unsafe-reset-all.sh

p.s. Alice and Bob's address has been created for you in ./appcli.

Start chain

appd start

Interact with chain

To start with, source the environment variables of Alice and Bob addresses:

Bash

. ./env.sh

Fish

./env_fish.sh

Query balances

appcli query calvincoin balances $ALICE
appcli query calvincoin balances $BOB

Query total supply

appcli query calvincoin totalsupply

Send transfer transaction

appcli tx calvincoin transfer $BOB 1calvincoin --from alice

About

Simple token created using Cosmos SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.2%
  • Makefile 1.7%
  • Shell 1.1%