Go to file
Federico Kunze 722a633f54
Sim refactor 3: move weighted operations to modules (#4869)
* move GenesisState generators to modules

* minor change on slashing genState generator

* move simulation params back to modules (#4839)

move simulation params back to modules (#4839)

* cleanup params

* various fixes

* move store decoders to modules

* fix

* module pattern

* split generators for param change

* param changes

* revert util pkg

* banksim

* compile

* update Decoders params

* fix

* address @colin-axner comments

* move weighted operations to modules

* cleanup

* cleanup

* Update cmd_test.go

* simulation manager

* mino fixes

* cleanup

* add GenerateGenesisState to simulation manager

* Apply suggestions from code review

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* address @rigelrozanski comments

* changelog

* Apply suggestions from code review

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* restructure modules simulation pkgs

* remove cycle deps

* rename funcs and add missing params

* modularize simulator param changes

* build

* fix params keys

* make format

* various fixes

* fix tests

* minor updates to sim_test

* cleanup

* more cleanup

* modularize genesis generators

* minor cleanup

* remove cdc from generators

* remove cdc

* add get or generate

* fix non-determinism in simulation

* changelog and x/simulation godoc

* cleanup operations

* update operations to use baseapp

* updates and cleanup operations

* update operations

* restructure sim ops params

* rename sim /operations/msg.go to /operations.go

* move GenTx to a helper pkg to avoid circle deps

* rm msg.ValidateBasic

* changelog

* random fees; delete auth's DeductFees sim operation

* add chain-id for sig verification

* Update x/simulation/account.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* fix bank, gov and distr errors

* fix staking and slashing errors; increase prob for send enabled

* increase gas x10

* make format

* fix some distr and staking edge cases

* fix all edge cases

* golang ci

* rename acc vars; default no fees to 0stake

* cleanup; check for exchange rate and skip invalid ops

* fixes

* check for max entries

* add pubkey to genaccounts

* fix gov bug

* update staking sim ops

* fix small redelegation error

* fix small self delegation on unjail

* rm inf loop on random val/accs

* copy array

* add ok boolean to RandomValidator return values

* format

* build

* add WeightedOperations to AppModuleSimulation

* define each module proposals content as part of the module pattern

* Update x/bank/simulation/operations.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Update simapp/helpers/test_helpers.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* address @colin-axner comments

* add genaccount pubkey validation

* fix test

* update operations and move RandomFees to x/simulation

* update gov ops

* address @alexanderbez comments

* avoid modifications to config

* reorder params

* modularized sim operations working

* changelog

* Update types/module/simulation.go

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* Update x/simulation/params.go

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* Update x/simulation/params.go

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* update /types/module

* Update x/distribution/simulation/genesis.go

Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* remove named return values

* ensure all operations are simulated

* golangci

* add nolint

* disable whitespace and funlen linter

* disable godox

* add TODO on unjail

* update ops weights

* remove dup

* update godoc

* remove unused func

* build fixes

* move weights to the same file

* scopelint

* changelog

* address @AdityaSripal comments

* address @alexanderbez comments
2019-12-05 10:29:54 +01:00
.circleci add docs staging build (#5306) 2019-11-13 12:06:05 +01:00
.github Updated PR template, stale and codecov settings (#5362) 2019-12-04 18:11:37 +01:00
baseapp Allow node to restart after halt config trigger (#5352) 2019-12-03 10:24:12 +01:00
client Merge PR #5345: Add dev docs for COSMOS_SDK_TEST_KEYRING 2019-11-30 09:32:08 -05:00
codec Merge PR #4881: Linting Galore 2019-08-19 12:06:27 -04:00
contrib Merge PR #5105: Upgrade golangci-lint to latest release (1.19.1) 2019-09-27 20:44:34 -07:00
crypto Merge PR #5345: Add dev docs for COSMOS_SDK_TEST_KEYRING 2019-11-30 09:32:08 -05:00
docs Merge PR #5340: ADR 17: Historical header module 2019-12-04 10:18:02 -05:00
scripts Merge PR #4902: Changelog Flow Updates 2019-08-13 16:00:28 -04:00
server Allow node to restart after halt config trigger (#5352) 2019-12-03 10:24:12 +01:00
simapp Sim refactor 3: move weighted operations to modules (#4869) 2019-12-05 10:29:54 +01:00
store Merge PR #5279: Fix IAVL Iterator Race Condition 2019-11-06 06:52:22 -07:00
tests Merge PR #5192: golangcI-lint updates & set static version to 1.19 2019-10-14 11:43:19 -04:00
types Sim refactor 3: move weighted operations to modules (#4869) 2019-12-05 10:29:54 +01:00
version Merge PR #4837: Cleanup node_info Endpoint 2019-08-02 11:52:55 -04:00
x Sim refactor 3: move weighted operations to modules (#4869) 2019-12-05 10:29:54 +01:00
.codecov.yml Updated PR template, stale and codecov settings (#5362) 2019-12-04 18:11:37 +01:00
.dockerignore Add basic Dockerfile to build all binaries and export gaiad 2018-04-10 12:39:47 +02:00
.gitattributes Merge PR #3192: This is not a js repo :) 2018-12-26 20:16:25 +01:00
.gitignore Merge PR #4787: Updated docs build process 2019-08-26 09:09:18 -04:00
.golangci.yml Merge PR #5203: Add more linters 2019-10-17 09:47:35 -04:00
CHANGELOG.md Sim refactor 3: move weighted operations to modules (#4869) 2019-12-05 10:29:54 +01:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-01-29 12:38:50 +01:00
CONTRIBUTING.md Merge PR #5036: Code Owner Membership - Contributing Guidelines 2019-09-19 09:56:41 -04:00
LICENSE Add README.md to Basecoin; Update licenses 2018-01-28 18:17:19 -08:00
Makefile Run tests with passwordless keyring (#5332) 2019-11-20 10:42:02 +01:00
README.md Merge PR #4989: Go 1.13 Upgrade 2019-09-04 10:58:29 -04:00
SECURITY.md Remove mismatch in specification section (for now) 2018-07-09 11:36:43 -07:00
Vagrantfile Fix Makefile's all target (#3085) 2018-12-20 10:03:59 -08:00
go.mod Bump github.com/tendermint/tendermint from 0.32.7 to 0.32.8 (#5330) 2019-12-01 18:14:44 -05:00
go.sum Bump github.com/tendermint/tendermint from 0.32.7 to 0.32.8 (#5330) 2019-12-01 18:14:44 -05:00
snapcraft.yaml replace dep with go mod (#3907) 2019-03-18 13:45:25 +01:00
snapcraft.yaml.in Autobuild snap (#3455) 2019-01-31 09:59:19 -08:00

README.md

Cosmos SDK

banner

version CircleCI codecov Go Report Card license LoC API Reference riot.im

The Cosmos-SDK is a framework for building blockchain applications in Golang. It is being used to build Gaia, the first implementation of the Cosmos Hub.

WARNING: The SDK has mostly stabilized, but we are still making some breaking changes.

Note: Requires Go 1.13+

Quick Start

To learn how the SDK works from a high-level perspective, go to the SDK Intro.

If you want to get started quickly and learn how to build on top of the SDK, please follow the SDK Application Tutorial. You can also fork the tutorial's repo to get started building your own Cosmos SDK application.

For more, please go to the Cosmos SDK Docs

Cosmos Hub Mainnet

The Cosmos Hub application, gaia, has moved to its own repository. Go there to join the Cosmos Hub mainnet and more.

Disambiguation

This Cosmos-SDK project is not related to the React-Cosmos project (yet). Many thanks to Evan Coury and Ovidiu (@skidding) for this Github organization name. As per our agreement, this disambiguation notice will stay here.