Skip to content

Commit 3d6235e

Browse files
johnleteymergify[bot]
authored andcommitted
feat(x/bank): support depinject for send restrictions (#20014)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> (cherry picked from commit ab919fe) # Conflicts: # api/cosmos/bank/module/v1/module.pulsar.go # proto/cosmos/bank/module/v1/module.proto # x/bank/CHANGELOG.md # x/bank/depinject.go
1 parent f76c659 commit 3d6235e

File tree

5 files changed

+359
-1
lines changed

5 files changed

+359
-1
lines changed

api/cosmos/bank/module/v1/module.pulsar.go

Lines changed: 163 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/cosmos/bank/module/v1/module.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,14 @@ message Module {
1717

1818
// authority defines the custom module authority. If not set, defaults to the governance module.
1919
string authority = 2;
20-
}
20+
<<<<<<< HEAD:proto/cosmos/bank/module/v1/module.proto
21+
}
22+
=======
23+
24+
// restrictions_order specifies the order of send restrictions and should be
25+
// a list of module names which provide a send restriction instance. If no
26+
// order is provided, then restrictions will be applied in alphabetical order
27+
// of module names.
28+
repeated string restrictions_order = 3;
29+
}
30+
>>>>>>> ab919fed8 (feat(x/bank): support depinject for send restrictions (#20014)):x/bank/proto/cosmos/bank/module/v1/module.proto

x/bank/CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!--
2+
Guiding Principles:
3+
Changelogs are for humans, not machines.
4+
There should be an entry for every single version.
5+
The same types of changes should be grouped.
6+
Versions and sections should be linkable.
7+
The latest version comes first.
8+
The release date of each version is displayed.
9+
Mention whether you follow Semantic Versioning.
10+
Usage:
11+
Change log entries are to be added to the Unreleased section under the
12+
appropriate stanza (see below). Each entry should ideally include a tag and
13+
the Github issue reference in the following format:
14+
* (<tag>) [#<issue-number>] Changelog message.
15+
Types of changes (Stanzas):
16+
"Features" for new features.
17+
"Improvements" for changes in existing functionality.
18+
"Deprecated" for soon-to-be removed features.
19+
"Bug Fixes" for any bug fixes.
20+
"API Breaking" for breaking exported APIs used by developers building on SDK.
21+
Ref: https://keepachangelog.com/en/1.0.0/
22+
-->
23+
24+
# Changelog
25+
26+
## [Unreleased]
27+
28+
### Features
29+
30+
* [#17569](https://github.com/cosmos/cosmos-sdk/pull/17569) Introduce a new message type, `MsgBurn`, to burn coins.
31+
* [#20014](https://github.com/cosmos/cosmos-sdk/pull/20014) Support app wiring for `SendRestrictionFn`.
32+
33+
### Improvements
34+
35+
* [#18636](https://github.com/cosmos/cosmos-sdk/pull/18636) `SendCoinsFromModuleToAccount`, `SendCoinsFromModuleToModule`, `SendCoinsFromAccountToModule`, `DelegateCoinsFromAccountToModule`, `UndelegateCoinsFromModuleToAccount`, `MintCoins` and `BurnCoins` methods now returns an error instead of panicking if any module accounts does not exist or unauthorized.
36+
37+
### API Breaking Changes
38+
39+
* [#19954](https://github.com/cosmos/cosmos-sdk/pull/19954) Removal of the Address.String() method and related changes:
40+
* Changed `NewInput`, `NewOutput`, `NewQueryBalanceRequest`, `NewQueryAllBalancesRequest`, `NewQuerySpendableBalancesRequest` to accept a string instead of an `AccAddress`.
41+
* Added an address codec as an argument to `NewSendAuthorization`.
42+
* Added an address codec as an argument to `SanitizeGenesisBalances` which also returns an error.
43+
* (simulation) `RandomGenesisBalances` also returns an error.
44+
* [#17569](https://github.com/cosmos/cosmos-sdk/pull/17569) `BurnCoins` takes an address instead of a module name
45+
* [#19477](https://github.com/cosmos/cosmos-sdk/pull/19477) `appmodule.Environment` is passed to bank `NewKeeper`
46+
* [#19627](https://github.com/cosmos/cosmos-sdk/pull/19627) The genesis api has been updated to match `appmodule.HasGenesis`.
47+
* [#19740](https://github.com/cosmos/cosmos-sdk/pull/19740) Verify `InitGenesis` and `ExportGenesis` module code and keeper code do not panic.
48+
49+
### Consensus Breaking Changes
50+
51+
* [#19188](https://github.com/cosmos/cosmos-sdk/pull/19188) Remove creation of `BaseAccount` when sending a message to an account that does not exist

0 commit comments

Comments
 (0)