Go to file
mergify[bot] b9250f3454
feat: Add `HasSupply` method to bank keeper (backport #10393) (#10699)
* feat: Add `HasSupply` method to bank keeper (#10393)

<!--
The default pull request template is for types feat, fix, or refactor.
For other templates, add one of the following parameters to the url:
- template=docs.md
- template=other.md
-->

## Description
Add `HasSupply` method to ensure that input denom actually exists on chain.

Closes: #10387

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)

(cherry picked from commit 8b78406bd3)

# Conflicts:
#	CHANGELOG.md

* Fix conflicts

Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: Amaury M <1293565+amaurym@users.noreply.github.com>
2021-12-09 12:05:33 +01:00
.github build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
baseapp feat: add configurable iavl cache size (backport #10561) (#10698) 2021-12-08 11:01:40 +01:00
client build(deps): Use self-maintained btcutil (#10082) (backport #10201) (#10623) 2021-11-29 17:08:32 +01:00
codec fix: remove legacy REST endpoints for broadcast & encode (v0.44.x) (#10041) 2021-09-01 15:50:20 +02:00
contrib build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
cosmovisor build(deps): Use self-maintained btcutil (#10082) (backport #10201) (#10623) 2021-11-29 17:08:32 +01:00
crypto build(deps): Use self-maintained btcutil (#10082) (backport #10201) (#10623) 2021-11-29 17:08:32 +01:00
docs fix: always move auth module migration to the end (#10608) 2021-11-25 12:17:43 +01:00
internal/conv
proto/cosmos fix: Add Events to TxResponse (backport #10630) (#10643) 2021-12-02 16:43:17 +01:00
scripts style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
server feat: add configurable iavl cache size (backport #10561) (#10698) 2021-12-08 11:01:40 +01:00
simapp style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
snapshots style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
std
store feat: add configurable iavl cache size (backport #10561) (#10698) 2021-12-08 11:01:40 +01:00
telemetry
tests test: fix mockgen version (#9127) 2021-05-25 09:18:59 +00:00
testutil fix: start GRPCWebServer in goroutine (backport #9704) (#9719) 2021-07-19 11:02:23 +02:00
third_party/proto
types fix: types/errors Wrap and Wrapf (backport #10674) (#10676) 2021-12-06 12:06:06 +01:00
version feat: add cosmos-sdk Version (#9429) 2021-06-18 12:56:55 +00:00
x feat: Add `HasSupply` method to bank keeper (backport #10393) (#10699) 2021-12-09 12:05:33 +01:00
.build.sh
.clang-format
.codecov.yml
.deepsource.toml
.dockerignore
.gitattributes
.gitignore docs: fix cosmovisor quickstart (backport #9730) (#9789) 2021-07-28 11:27:49 +02:00
.golangci.yml fix(CI): add golangci-lint to dependencies (#10112) (#10172) 2021-09-17 00:34:36 +02:00
.goreleaser.yml
.markdownlint.json chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
.markdownlintignore chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
.mergify.yml ci: use title+body for commit message (#9496) 2021-06-11 11:56:00 -07:00
CHANGELOG.md feat: Add `HasSupply` method to bank keeper (backport #10393) (#10699) 2021-12-09 12:05:33 +01:00
CODE_OF_CONDUCT.md
CODING_GUIDELINES.md style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
CONTRIBUTING.md style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
Dockerfile
LICENSE
Makefile build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
README.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
RELEASE_NOTES.md chore: Cosmos SDK v0.44.5 release notes (#10667) 2021-12-02 17:14:12 +01:00
SECURITY.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
buf.yaml refactor: Bring back deprecated proto fields to `v1beta1` (#9534) 2021-06-23 13:03:33 +00:00
docker-compose.yml build: fix build environment for the liveness test (backport #10551) (#10552) 2021-11-15 23:45:29 +01:00
go.mod fix: upgrade IAVL (#10648) 2021-12-01 21:28:38 +01:00
go.sum fix: upgrade IAVL (#10648) 2021-12-01 21:28:38 +01:00

README.md

Cosmos SDK

banner

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.15+

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 repository 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.

Interblockchain Communication (IBC)

The IBC module for the SDK has moved to its own repository. Go there to build and integrate with the IBC module.

Starport

If you are starting a new app or a new module you can use Starport to help you get started and speed up development. If you have any questions or find a bug, feel free to open an issue in the repo.

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.