Skip to content

Commit 7c3db3b

Browse files
authored
feat: add a feature of whitelist for /lbm.foundation.v1.MsgWithdrawFromTreasury (#528)
* feat: add grant to proto * feat: add authorization feature * feat: update grant releated proto * feat: add grant revoke handlers to msg server * feat: add grant to genesis * feat: apply authorization check onto withdrawfromtreasury * fix: change auth name * feat: add grant tx cli * test: add tests on grant * fix: replace validator whitelist with grant * fix: remove validator auth * feat: add grant query * style: lint * docs: update CHANGELOG.md * docs: update CHANGELOG.md * fix: make caller to select granter * style: lint * docs: apply renames in the docs * style: proto lint * fix: move events * fix: remove deprecated SetBalance * docs: fix typo * fix: replace weight of Member into a boolean flag * style: lint * docs: update weight related statements * fix: remove weight related logics * fix: update grant related events * chore: comment out the migration handler registration for now * fix: remove unused specs * refactor: define own authorization interface * fix: force a user to revoke the authorization before override it * style: lint * fix: shorten the error message * refactor: restructure x/stakingplus * refactor: move CreateValidatorAuthorization * fix: fix grant query * refactor: use the getter once * style: lint * test: increase coverage of msgs.go * test: increase coverage of genesis * chore: refine messages * style: lint * test: increase coverage of proposal.go
1 parent a94c0c9 commit 7c3db3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6993
-3933
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
4141
* (x/wasm) [\#470](https://github.com/line/lbm-sdk/pull/470) remove contract activation control by actor
4242
* (x/wasm) [\#513](https://github.com/line/lbm-sdk/pull/513) fix message representation for signing
4343
* (x/foundation) [\#518](https://github.com/line/lbm-sdk/pull/518) add foundation treasury feature to x/foundation
44+
* (x/foundation) [\#528](https://github.com/line/lbm-sdk/pull/528) add a feature of whitelist for /lbm.foundation.v1.MsgWithdrawFromTreasury
4445

4546
### Improvements
4647

client/docs/config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@
159159
"Proposals": "FoundationProposals",
160160
"Vote": "FoundationVote",
161161
"Votes": "FoundationVotes",
162-
"TallyResult": "FoundationTallyResult"
162+
"TallyResult": "FoundationTallyResult",
163+
"Grants": "FoundationGrants"
163164
}
164165
}
165166
},

client/docs/statik/statik.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/docs/swagger-ui/swagger.yaml

+1,414-1,327
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)