Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump up cosmos [email protected] #468

Merged
merged 605 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
605 commits
Select commit Hold shift + click to select a range
5b36811
consistency in antehandler (#9144)
tac0turtle Apr 20, 2021
5c805d1
build(deps): bump github.com/confio/ics23/go from 0.6.3 to 0.6.6 (#9142)
dependabot[bot] Apr 20, 2021
35a1351
build(deps): bump codecov/codecov-action from v1.4.0 to v1.4.1 (#9154)
dependabot[bot] Apr 21, 2021
8351b26
Add support for permanent locked vesting accounts (#8520)
clevinson Apr 21, 2021
5a90282
Add hooks to governance actions (#9133)
sunnya97 Apr 21, 2021
f2f1d73
crypto/types: check for overflow and unreasonably large element count…
odeke-em Apr 22, 2021
2acfaa8
build(deps): bump github.com/prometheus/common from 0.20.0 to 0.21.0 …
dependabot[bot] Apr 22, 2021
6705711
types: make NewDecFromStr returns error for too large decimal (#9157)
cuonglm Apr 22, 2021
19b1830
Update README.md (#9181)
Apr 22, 2021
70afaa4
build(deps): bump github.com/grpc-ecosystem/go-grpc-middleware (#9186)
dependabot[bot] Apr 26, 2021
8e7562b
remove docs deployment (#9202)
tac0turtle Apr 26, 2021
ab7371f
remove IBC ADRs (#9191)
colin-axner Apr 26, 2021
5bdf446
setup: reuses proto container (#9192)
robert-zaremba Apr 26, 2021
1fab4a1
Merge pull request #9169 from cosmos/okwme-adr-committee
okwme Apr 26, 2021
63803dd
crypto/types: fix negative index accesses in CompactUnmarshal,GetInde…
odeke-em Apr 26, 2021
9e2591c
Fixed the --recover flag not working properly inside the init command…
RiccardoM Apr 26, 2021
5049cee
x/feegrant simulation audit changes (#9145)
atheeshp Apr 27, 2021
ce2b2b6
x/feegrant completeness audit updates (#9177)
blushi Apr 27, 2021
688c93c
Add labeler action (#9204)
aaronc Apr 27, 2021
00378a0
Add more details in error message for invalid vote option (#9185)
devashishdxt Apr 28, 2021
d65a2a9
remove unused list (#9219)
tac0turtle Apr 28, 2021
7b3b111
update contributor docs (#9190)
colin-axner Apr 28, 2021
73ed133
x/feegrant audit: clean up / add test coverage to types package (#9193)
technicallyty Apr 28, 2021
4edcb4c
x/feegrant state machine audit updates (#9176)
aleem1314 Apr 28, 2021
2e647ab
fix build
dudong2 Mar 7, 2022
f4cc971
fix test build
dudong2 Mar 7, 2022
0e19fc9
x/gov/keeper: fix flaky TestPaginatedVotesQuery (#9223)
Apr 28, 2021
688b993
Added a "new_shares" attribute inside the delegate event type (#9214)
RiccardoM Apr 29, 2021
a3d2f44
fix validator address prefix (#9212)
yihuang Apr 29, 2021
ab89871
codec: Rename codec and marshaler interfaces (#9226)
robert-zaremba Apr 29, 2021
30ea7da
build(deps): bump github.com/prometheus/common from 0.21.0 to 0.23.0 …
dependabot[bot] Apr 29, 2021
ab19a05
gov, params: refactor tests (#9137)
fedekunze Apr 30, 2021
850ae61
Improve readability in handleQueryP2P (#9205)
jeebster Apr 30, 2021
8bcec03
Remove ServiceMsgs from ADR-031 (#9139)
amaury1093 Apr 30, 2021
28f693a
fix zero coins (#9229)
atheeshp Apr 30, 2021
0d609d1
crypto/types: optimize compact bit array one count (#9216)
Apr 30, 2021
839c1ee
store/internal: validate keys before calling ProofsFromMap (#9235)
May 2, 2021
2b8be4a
x/feegrant API Audit changes (#9194)
technicallyty May 3, 2021
e94a349
Rename clientCtx.JSONMarshaler to JSONCodec (#9251)
amaury1093 May 3, 2021
daa2979
docs: x/distribution spec (#8928)
hjorthjort May 3, 2021
fb6b586
types: make chopPrecisionAndTruncate always non-mutative (#9250)
May 3, 2021
d35eaa1
Rename memo to note inside CLI (#9134)
anilcse May 4, 2021
e981937
bump iavl to 0.16.0 (#9261)
robert-zaremba May 5, 2021
dc016ed
x/bank/types: speedy up by singly sort balances without having to re-…
May 5, 2021
1598ff4
add sorted check for the coins sub/add fun parameter (#9240)
robert-zaremba May 5, 2021
41caaf4
x/feegrant remove height base expiration (#9206)
aleem1314 May 5, 2021
85a5c5c
x/staking: lazily get consensus key address (#9264)
May 5, 2021
82389d0
Update `memo` usage docs (#9265)
anilcse May 6, 2021
4c4b4d7
x/authz: audit updates (#9042)
robert-zaremba May 6, 2021
32fc540
Move x/feegrant/types to x/feegrant (#9273)
blushi May 7, 2021
b712556
Cleanup remains of ServiceMsg (#9236)
amaury1093 May 7, 2021
e50044c
router: fix handler name (#9281)
robert-zaremba May 7, 2021
3433bd8
x/gov v0.43 Audit updates (#9258)
amaury1093 May 7, 2021
a2e68b4
ADR-30 (authz) update based on authz audit (#9270)
robert-zaremba May 7, 2021
4de75e6
build(deps): bump codecov/codecov-action from v1.4.1 to v1.5.0 (#9256)
dependabot[bot] May 7, 2021
7a01c0d
store/cachekv: reduce allocation with []byte -> string in map keys (#…
May 6, 2021
d2ad33c
Fix proto format (#9279)
robert-zaremba May 7, 2021
97b748a
Update docs for building modules (#9272)
ryanchristo May 7, 2021
5364bca
authz: Update MsgGrant proto (#9280)
robert-zaremba May 10, 2021
e9db11c
x/staking v0.43 Audit updates (#9267)
likhita-809 May 10, 2021
c7e5c05
ADR-042: Group module (#9089)
blushi May 10, 2021
316a1d1
build(deps): bump github.com/otiai10/copy from 1.5.1 to 1.6.0 (#9289)
dependabot[bot] May 10, 2021
ea8a19c
x/bank v0.43 Audit updates (#9271)
technicallyty May 10, 2021
ec86ef8
Crypto v0.43 Audit updates (#9292)
technicallyty May 10, 2021
59ef76d
build(deps): bump github.com/armon/go-metrics from 0.3.7 to 0.3.8 (#9…
dependabot[bot] May 11, 2021
35e4508
v043 audit changes for telemetry/ (#9297)
likhita-809 May 11, 2021
d30bf83
fix build
dudong2 Mar 7, 2022
003cba0
fix test build & Marshaler -> Codec
dudong2 Mar 7, 2022
b9e392d
restore auth/MsgEmpty
dudong2 Mar 8, 2022
4369daa
fix test
dudong2 Mar 8, 2022
8e5c2f1
0.43 aidut changes for client module (#9295)
aleem1314 May 11, 2021
6203701
v043 audit changes for version (#9296)
likhita-809 May 11, 2021
39e6fa3
Remove migration scripts <=0.38 (#9291)
amaury1093 May 11, 2021
7d72a0b
x/authz: simulation audit changes (#9107)
aleem1314 May 11, 2021
ca56850
ADR-040: Storage and SMT State Commitments (#8430)
robert-zaremba May 11, 2021
a44b7c8
Update doc for IterateAccounts x/auth keeper meethod (#9285)
prb-pro May 11, 2021
9b94856
update labeler.yml with shortened labels (#9303)
aaronc May 11, 2021
ca70086
build(deps): bump actions/stale from 3 to 3.0.18 (#9311)
dependabot[bot] May 12, 2021
3a4af7d
Update x/auth AnteHandler Spec (#9298)
blushi May 12, 2021
b7d5d61
Fixed parse key issue (#9299)
PrathyushaLakkireddy May 12, 2021
27f560a
doc: Updates related to ServiceMsg, sdk.Msg and Msg service (#9294)
robert-zaremba May 12, 2021
5c0204b
Use module accounts in MsgSend and MsgMultiSend tests in bank module …
cyberbono3 May 13, 2021
438d1b6
add feature CHANGELOG entry for grpc-web (#9301)
clevinson May 13, 2021
8c20bb1
Minor doc fix (#9328)
shahankhatch May 14, 2021
6c798c8
rosetta: upgrade to newest version (#9314)
noandrea May 14, 2021
5dc77cd
Update Stable Release Managers (#9335)
robert-zaremba May 16, 2021
ce1ca54
build(deps): bump github.com/prometheus/common from 0.23.0 to 0.24.0 …
dependabot[bot] May 17, 2021
1abf0a0
build(deps): bump github.com/rs/zerolog from 1.21.0 to 1.22.0 (#9338)
dependabot[bot] May 17, 2021
5c01055
build(deps): bump google.golang.org/grpc from 1.37.0 to 1.37.1 (#9339)
dependabot[bot] May 17, 2021
4ae639b
build(deps): bump goreleaser/goreleaser-action from 2 to 2.5.0 (#9306)
dependabot[bot] May 17, 2021
8c922d6
v043 audit changes for `types/` (#9290)
amaury1093 May 17, 2021
e51fb46
build(deps): bump actions/stale from 3.0.18 to 3.0.19 (#9347)
dependabot[bot] May 18, 2021
83e14c7
fix client config don't take effect (#9211)
yihuang May 19, 2021
b0ca24d
Update why-app-specific.md (#9349)
unixpi May 19, 2021
95ccbe5
Remove Redundant Staking Errors (#9231)
jeebster May 19, 2021
edec683
build(deps): bump github.com/prometheus/common from 0.24.0 to 0.25.0 …
dependabot[bot] May 19, 2021
00bc59a
add cosmovisor docs on Auto-Download (#9358)
likhita-809 May 19, 2021
22257f9
x/upgrade gRPC methods for VersionMap (#9073)
technicallyty May 19, 2021
83187ee
docs: update module interfaces (#9322)
ryanchristo May 19, 2021
3cfc281
update spec and fix code snippets (#9334)
robert-zaremba May 19, 2021
991ff44
docs: cosmovisor docs clean-up (#9364)
likhita-809 May 20, 2021
2ac31ab
build(deps): bump google.golang.org/grpc from 1.37.1 to 1.38.0 (#9367)
dependabot[bot] May 20, 2021
30f3ba1
fix: store key uniqueness (#9363)
robert-zaremba May 20, 2021
09431cc
cosmovisor: set larger buffer size for cosmovisor to scan log (fix #8…
allthatjazzleo May 20, 2021
a0539fe
docs: minor edits and typo fix on 06_begin_block.md (#9370)
May 21, 2021
a5f532b
Adding the ts-relayer to the implementations list (#9380)
andynog May 21, 2021
014b0d0
fix copy pasta (#9376)
bryanchriswhite May 21, 2021
371d69d
chore: add lint-pr action (#9341)
ryanchristo May 21, 2021
6ddb3c9
fix build
dudong2 Mar 8, 2022
0fd8f44
docs: update simapp instructions (#9374)
ryanchristo May 25, 2021
a6f8d80
test: fix mockgen version (#9127)
robert-zaremba May 25, 2021
5a5edb6
build(deps): bump browserslist from 4.16.4 to 4.16.6 in /docs (#9389)
dependabot[bot] May 25, 2021
54350e6
docs: adding documentation writing guidelines (#9366)
robert-zaremba May 25, 2021
004e741
docs: adding documentation writing guidelines (#9366)
robert-zaremba May 25, 2021
3a1d37a
feat: add header hash to `Context` (#9390)
fedekunze May 26, 2021
291a08a
feat: add Dec.Float64() function (#9382)
freak12techno May 26, 2021
0ce97de
Fix the liveliness test Docker error (#9396)
RiccardoM May 26, 2021
c9287d7
test: add test for unpacking interface on validator request (#9391)
technicallyty May 26, 2021
ca6d3ea
build(deps): bump github.com/mattn/go-isatty from 0.0.12 to 0.0.13 (#…
dependabot[bot] May 27, 2021
8c17ca6
build(deps): bump goreleaser/goreleaser-action from 2.5.0 to 2.6.0 (#…
dependabot[bot] May 27, 2021
af31d6c
chore: add markdownlint to lint commands (#9353)
ryanchristo May 27, 2021
ec920af
build(deps): bump actions/cache from 2.1.5 to 2.1.6 (#9412)
dependabot[bot] May 28, 2021
93373d2
build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /docs (#9410)
dependabot[bot] May 28, 2021
e0dc8b2
fix: update simapp to use correct default broadcast mode (#9408)
alexanderbez May 28, 2021
16301ca
fix: rollback height->Height in x/upgrade plan.DueAt formatting (#9416)
robert-zaremba May 28, 2021
d8d7e98
build(deps): bump goreleaser/goreleaser-action from 2.6.0 to 2.6.1 (#…
dependabot[bot] May 31, 2021
c30b694
fix typo, v0.42 -> v0.43 (#9430)
colin-axner Jun 1, 2021
1451219
fix blond typo (#9422)
sunnya97 Jun 1, 2021
b27d460
fix: Staking delegations should return empty list instead of rpc erro…
likhita-809 Jun 1, 2021
f5dd963
fix: Bank module init genesis optimization (#9428)
yun-yeo Jun 1, 2021
f556830
fix memo flag description (#9436)
ryanchristo Jun 2, 2021
dd0058e
feat: add `RefundGas` function to `GasMeter` (#9403)
fedekunze Jun 2, 2021
5a9b634
fix: x/gov deposits querier (Initial Deposit) (#9288)
aleem1314 Jun 3, 2021
c21e7bf
fix: Fix testnet command (#9454)
likhita-809 Jun 3, 2021
68f6792
build(deps): bump github.com/prometheus/common from 0.25.0 to 0.27.0 …
dependabot[bot] Jun 4, 2021
de30785
docs: Fix simulation docs link (#9452)
ValarDragon Jun 4, 2021
ad719e4
feat: Add amino support for x/authz and x/feegrant (#9457)
amaury1093 Jun 4, 2021
d14f0d3
client: update client error handling to use tx hash from tendermint (…
fedekunze Jun 7, 2021
b06659c
build(deps): bump ws from 6.2.1 to 6.2.2 in /docs (#9461)
dependabot[bot] Jun 7, 2021
bdbdf7d
refactor: add util functions to reuse in simulations (#9456)
tac0turtle Jun 7, 2021
a18f41b
fix: make proto-format (#9470)
robert-zaremba Jun 7, 2021
089351b
fix: feegrant grant period not resetting (#9450)
ryanchristo Jun 7, 2021
d289b4d
build(deps): bump github.com/prometheus/client_golang (#9474)
dependabot[bot] Jun 8, 2021
b27c97a
fix interfaces links (#9448)
ryanchristo Jun 8, 2021
68666e5
style: fix lint errors and update lint timeout (#9464)
augchan42 Jun 8, 2021
1bfffed
Fix ReadRESTReq documentation (#9476)
LeCodeurDuDimanche Jun 9, 2021
1f7c348
build(deps): bump github.com/prometheus/common from 0.27.0 to 0.28.0 …
dependabot[bot] Jun 9, 2021
930326b
build(deps): bump github.com/btcsuite/btcd (#9483)
dependabot[bot] Jun 9, 2021
a8aaea8
docs: update contributing pull request process (#9472)
ryanchristo Jun 10, 2021
d3394b5
docs: Fix ADR 030 reference link (#9487)
Jun 10, 2021
6dc9be2
test (#9484)
aleem1314 Jun 10, 2021
cb7a823
refactor(client): add client/Context.Codec and deprecate JSONCodec (#…
robert-zaremba Jun 11, 2021
4463524
ci: use title+body for commit message (#9496)
ryanchristo Jun 11, 2021
4cfb5a7
fix: testnet cli command update genesis supply (#9497)
technicallyty Jun 14, 2021
c27f3fc
revert: Turn staking power reduction into an on-chain param (#9495)
amaury1093 Jun 14, 2021
92d1f65
build(deps): bump github.com/prometheus/common from 0.28.0 to 0.29.0 …
dependabot[bot] Jun 14, 2021
3719568
Remove Docs label from auto-label action (#9517)
aaronc Jun 15, 2021
1474b98
build(deps): bump github.com/rs/zerolog from 1.22.0 to 1.23.0 (#9515)
dependabot[bot] Jun 15, 2021
da90abe
build(deps): bump codecov/codecov-action from 1.5.0 to 1.5.2 (#9482)
dependabot[bot] Jun 15, 2021
ffaa5cc
build(deps): bump github.com/golang/mock from 1.5.0 to 1.6.0 (#9512)
dependabot[bot] Jun 16, 2021
62b114d
feat: grpc-web add CORS handler (#9493)
aleem1314 Jun 16, 2021
0d773ec
fix: Handle MAX_INT_256 (#9511)
mankenavenkatesh Jun 16, 2021
d6f1ff9
build(deps): bump postcss from 7.0.35 to 7.0.36 in /docs (#9525)
dependabot[bot] Jun 17, 2021
902936b
build(deps): bump github.com/armon/go-metrics from 0.3.8 to 0.3.9 (#9…
dependabot[bot] Jun 17, 2021
9a516e4
build(deps): bump github.com/spf13/viper from 1.7.1 to 1.8.0 (#9524)
dependabot[bot] Jun 17, 2021
344ceb1
perf: Speedup to params simulation (#9481)
ValarDragon Jun 17, 2021
ee56109
perf: MsgTypeUrl optimization (#9530)
robert-zaremba Jun 17, 2021
b9cdc5e
docs: Add docs for setting store loader (#9526)
likhita-809 Jun 17, 2021
864c03d
fix build
dudong2 Mar 8, 2022
1210c3a
fix build & fix test build
dudong2 Mar 8, 2022
ae295c6
fix test
dudong2 Mar 9, 2022
0f19372
fix: duplicate vesting and format (#9535)
ryanchristo Jun 18, 2021
0200646
build(deps): tendermint version (#9541)
tac0turtle Jun 18, 2021
0909fc0
feat: add cosmos-sdk Version (#9429)
tac0turtle Jun 18, 2021
b2bda7c
fix: collect all responses from authz/MsgExec (#9538)
robert-zaremba Jun 18, 2021
948ace1
fix: query txs command adds output flag (#9540)
chengwenxi Jun 21, 2021
26290f6
fix: Dumping upgrade info interrupted by cosmovisor (#9384)
yihuang Jun 21, 2021
097d06f
fix: set header hash every block (#9552)
fedekunze Jun 21, 2021
f49ed13
docs: use RFC 2119 keywords (#9532)
robert-zaremba Jun 22, 2021
437879b
chore: Update CHANGELOG with 0.42.5 and 0.42.6 (#9558)
amaury1093 Jun 22, 2021
a984ff7
test(bank): check that zero balances are deleted (#9559)
robert-zaremba Jun 22, 2021
75f0536
docs: fix cosmovisor readme (#9549)
ryanchristo Jun 22, 2021
b0170c5
feat: make authz MsgExec emit events from all executed msgs (#9522)
technicallyty Jun 22, 2021
dccf30e
feat: Allow app developers to override default appConfig template (#9…
anilcse Jun 23, 2021
7f359db
refactor: Bring back deprecated proto fields to `v1beta1` (#9534)
amaury1093 Jun 23, 2021
dd4fb81
feat: multisig should accept name, not just address (#9553)
likhita-809 Jun 23, 2021
e2d5306
fix(keyring): update keyring for kwallet fix (#9563)
robert-zaremba Jun 24, 2021
5e86479
feat: Non-zero Default Fees (#9371)
cyberbono3 Jun 25, 2021
9bd64ef
fix: added key when dry-run is true (#9480)
ryanchristo Jun 25, 2021
cde0390
fix: Correctly populate legacy Vote.Option field (#9583)
amaury1093 Jun 25, 2021
beedad0
chore: Create v0.43.0-rc0 section in CHANGELOG (#9572)
amaury1093 Jun 25, 2021
4eb0d7c
chore: Add release notes for 0.43.0-rc0 (#9584)
amaury1093 Jun 25, 2021
89f0c0a
feat: Error on blank chain-id in multisign command (backport #9593) (…
mergify[bot] Jun 30, 2021
2fb8f54
fix: Don't error on startup if min-gas-price is empty (#9621)
amaury1093 Jul 2, 2021
2746aa7
chore: Audit v0.43 CHANGELOG against commit log (backport #9592) (#9622)
mergify[bot] Jul 5, 2021
fe83bbe
docs(swagger): add authz & feegrant swagger docs (#9625) (#9632)
mergify[bot] Jul 5, 2021
8b97564
docs: add v0.43 version option (#9506) (#9676)
mergify[bot] Jul 12, 2021
d1ba336
feat: add migrations for balances with zero coins (backport #9664) (#…
mergify[bot] Jul 13, 2021
15842f7
chore: Cleanup Changelog, add Rosetta to Release Notes as beta (#9691)
amaury1093 Jul 14, 2021
c73846b
chore: separate changes between 0.43.0-rc0 and 0.43.0-rc1 (#9700)
robert-zaremba Jul 14, 2021
dca99b6
chore: add missing bugfix (zero coins pruning) to the changelog (#9701)
robert-zaremba Jul 15, 2021
c0c82bb
fix: start GRPCWebServer in goroutine (backport #9704) (#9719)
mergify[bot] Jul 19, 2021
844ebfb
docs: add chain upgrade guide v0.43 (backport #9567) (#9725)
mergify[bot] Jul 20, 2021
65d155a
perf(grpcweb): remove useless HTTP HandlerFun wrapping (#9711) (#9721)
mergify[bot] Jul 20, 2021
88f008e
fix: support output flag on tx commands (backport #9717) (#9771)
mergify[bot] Jul 26, 2021
6961387
feat: TxRaw must follow ADR 027 (#9743) (#9754)
mergify[bot] Jul 27, 2021
37b6fbf
refactor: Improve txRaw decoder code (backport #9769) (#9779)
mergify[bot] Jul 27, 2021
15b81f2
feat: Query txs by signature and by address+seq (backport #9750) (#9782)
mergify[bot] Jul 27, 2021
e68587c
feat: Low-s normalization for ecdsa secp256r1 signing (#9738) (#9793)
mergify[bot] Jul 27, 2021
715f1a8
docs: fix cosmovisor quickstart (backport #9730) (#9789)
mergify[bot] Jul 28, 2021
0c92530
docs: Update baseapp.md and tx-lifecycle.md (#9792) (#9802)
mergify[bot] Jul 28, 2021
fe2718f
fix: Cap Initialization Fix (forward-port #9392) (#9805)
mergify[bot] Jul 28, 2021
d353e61
chore: added changelog for 9793 (secp256r1 tx malleability) (backport…
mergify[bot] Jul 28, 2021
ce5bf11
fix: hardcoded ledger algo on `keys add` (backport #9766) (#9803)
mergify[bot] Jul 28, 2021
9b61660
feat: Improve withdraw-all-rewards UX (backport #9781) (#9824)
mergify[bot] Aug 2, 2021
4378d72
fix!: update gentx val pub key input parsing (backport #9827) (#9833)
mergify[bot] Aug 2, 2021
bcfdeeb
fix: fixed missing coin denomination in msg server logs (backport #97…
mergify[bot] Aug 4, 2021
2ce79e2
fix!: Capability Issue on Restart, Backport to v0.43 (backport #9836)…
mergify[bot] Aug 4, 2021
e9d3a33
style(capability)!: update go doc comments and remove BeginBlocker (b…
mergify[bot] Aug 4, 2021
e45bceb
chore: Changelog and Release Notes for 0.43.0-rc3 (#9801)
amaury1093 Aug 5, 2021
631b777
refactor: update default pruning strategy (#9859) (#9863)
mergify[bot] Aug 6, 2021
cc28835
chore: add missing changelog entry from #9859 (backport #9867) (#9871)
mergify[bot] Aug 6, 2021
d60f8b1
chore: v0.43.0 Changelog and Release Notes (#9886)
amaury1093 Aug 10, 2021
8cacd78
fix build
dudong2 Mar 10, 2022
40c2aeb
fix test build
dudong2 Mar 10, 2022
12dbb33
fix test
dudong2 Mar 11, 2022
1eb832b
fix build
dudong2 Mar 11, 2022
5665e87
fix test build
dudong2 Mar 11, 2022
f96a426
fix proto
dudong2 Mar 11, 2022
df79301
fix test
dudong2 Mar 11, 2022
fef783d
remove GetTotalSupply
dudong2 Mar 13, 2022
1f42b49
fix keyring output about val address, cons address
dudong2 Mar 14, 2022
39b9e1a
retore gov/client/rest/rest_test.go build norace flag
dudong2 Mar 14, 2022
53e1883
revert github workflow files
dudong2 Mar 14, 2022
0fff136
fix lint
dudong2 Mar 14, 2022
52b82e6
ci: add swagger check (#457)
0Tech Mar 13, 2022
6ca4878
fix lint
dudong2 Mar 14, 2022
89c3c80
fix proto-swagger-gen(Grants -> TokenGrants in query.proto of token m…
dudong2 Mar 14, 2022
69f535c
remove "git diff-index --quite HEAD" from proto.yml swagger test
dudong2 Mar 14, 2022
4d9f828
Revert "remove "git diff-index --quite HEAD" from proto.yml swagger t…
dudong2 Mar 15, 2022
3e79870
fix update swagger docs
dudong2 Mar 15, 2022
13f8fae
fix proto swagger-docs diff test
dudong2 Mar 15, 2022
0cde898
fix sim test
dudong2 Mar 15, 2022
208e88b
fix proto swagger-docs diff test
dudong2 Mar 15, 2022
7ff3631
fix x/distribution InitGenesis OutstandingRewards
dudong2 Mar 16, 2022
90d37e7
Merge branch 'main' into dudong2/feat/[email protected]
dudong2 Mar 16, 2022
cf68b75
remove docs/architecture/*
dudong2 Mar 21, 2022
e88a81c
fix cosmos-sdk issues url
dudong2 Mar 21, 2022
26dec27
rename from TokenBalance, TokenGrant to Balance, Grant in token modul…
dudong2 Mar 21, 2022
04bd48c
edit config.json("Grant" -> "Grants")
dudong2 Mar 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
with:
go-version: 1.15
- uses: ./.github/actions/generate-swagger
- run: git diff-index --quiet HEAD
- name: report
run: git diff
if: ${{failure()}}

# TODO ebony: release comment after merging initial proto files to v2 branch
# breakage:
Expand Down
44 changes: 25 additions & 19 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ func (app *BaseApp) Info(req abci.RequestInfo) abci.ResponseInfo {

return abci.ResponseInfo{
Data: app.name,
Version: app.version,
AppVersion: app.appVersion,
LastBlockHeight: lastCommitID.Version,
LastBlockAppHash: lastCommitID.Hash,
}
Expand Down Expand Up @@ -806,7 +808,7 @@ func handleQueryApp(app *BaseApp, path []string, req abci.RequestQuery) abci.Res
return abci.ResponseQuery{
Codespace: sdkerrors.RootCodespace,
Height: req.Height,
Value: []byte(app.appVersion),
Value: []byte(app.version),
}

default:
Expand Down Expand Up @@ -848,28 +850,32 @@ func handleQueryStore(app *BaseApp, path []string, req abci.RequestQuery) abci.R

func handleQueryP2P(app *BaseApp, path []string) abci.ResponseQuery {
// "/p2p" prefix for p2p queries
if len(path) >= 4 {
cmd, typ, arg := path[1], path[2], path[3]
switch cmd {
case "filter":
switch typ {
case "addr":
return app.FilterPeerByAddrPort(arg)

case "id":
return app.FilterPeerByID(arg)
}
if len(path) < 4 {
return sdkerrors.QueryResult(
sdkerrors.Wrap(
sdkerrors.ErrUnknownRequest, "path should be p2p filter <addr|id> <parameter>",
),
)
}

default:
return sdkerrors.QueryResult(sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "expected second parameter to be 'filter'"))
var resp abci.ResponseQuery

cmd, typ, arg := path[1], path[2], path[3]
switch cmd {
case "filter":
switch typ {
case "addr":
resp = app.FilterPeerByAddrPort(arg)

case "id":
resp = app.FilterPeerByID(arg)
}

default:
resp = sdkerrors.QueryResult(sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "expected second parameter to be 'filter'"))
}

return sdkerrors.QueryResult(
sdkerrors.Wrap(
sdkerrors.ErrUnknownRequest, "expected path is p2p filter <addr|id> <parameter>",
),
)
return resp
}

func handleQueryCustom(app *BaseApp, path []string, req abci.RequestQuery) abci.ResponseQuery {
Expand Down
57 changes: 37 additions & 20 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"sync"

"github.com/gogo/protobuf/proto"

abci "github.com/line/ostracon/abci/types"
"github.com/line/ostracon/crypto/tmhash"
"github.com/line/ostracon/libs/log"
Expand All @@ -20,6 +21,7 @@ import (
"github.com/line/lbm-sdk/store/rootmulti"
sdk "github.com/line/lbm-sdk/types"
sdkerrors "github.com/line/lbm-sdk/types/errors"
"github.com/line/lbm-sdk/x/auth/legacy/legacytx"
)

var (
Expand Down Expand Up @@ -113,7 +115,11 @@ type BaseApp struct { // nolint: maligned
minRetainBlocks uint64

// application's version string
appVersion string
version string

// application's protocol version that increments on every upgrade
// if BaseApp is passed to the upgrade keeper's NewKeeper method.
appVersion uint64

// recovery handler for app.runTx method
runTxRecoveryMiddleware recoveryMiddleware
Expand Down Expand Up @@ -170,11 +176,16 @@ func (app *BaseApp) Name() string {
return app.name
}

// AppVersion returns the application's version string.
func (app *BaseApp) AppVersion() string {
// AppVersion returns the application's protocol version.
func (app *BaseApp) AppVersion() uint64 {
return app.appVersion
}

// Version returns the application's version string.
func (app *BaseApp) Version() string {
return app.version
}

// Logger returns the logger of the BaseApp.
func (app *BaseApp) Logger() log.Logger {
return app.logger
Expand Down Expand Up @@ -566,6 +577,10 @@ func (app *BaseApp) preCheckTx(txBytes []byte) (tx sdk.Tx, err error) {
return tx, err
}

func (app *BaseApp) PreCheckTx(txBytes []byte) (sdk.Tx, error) {
return app.preCheckTx(txBytes)
}

func (app *BaseApp) checkTx(txBytes []byte, tx sdk.Tx, recheck bool) (gInfo sdk.GasInfo, err error) {
ctx := app.getCheckContextForTx(txBytes, recheck)
gasCtx := &ctx
Expand Down Expand Up @@ -718,37 +733,39 @@ func (app *BaseApp) runMsgs(ctx sdk.Context, msgs []sdk.Msg) (*sdk.Result, error
// NOTE: GasWanted is determined by the AnteHandler and GasUsed by the GasMeter.
for i, msg := range msgs {
var (
msgEvents sdk.Events
msgResult *sdk.Result
msgFqName string
err error
msgResult *sdk.Result
eventMsgName string // name to use as value in event `message.action`
err error
)

if svcMsg, ok := msg.(sdk.ServiceMsg); ok {
msgFqName = svcMsg.MethodName
handler := app.msgServiceRouter.Handler(msgFqName)
if handler == nil {
return nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "unrecognized message service method: %s; message index: %d", msgFqName, i)
}
msgResult, err = handler(ctx, svcMsg.Request)
} else {
if handler := app.msgServiceRouter.Handler(msg); handler != nil {
// ADR 031 request type routing
msgResult, err = handler(ctx, msg)
eventMsgName = sdk.MsgTypeURL(msg)
} else if legacyMsg, ok := msg.(legacytx.LegacyMsg); ok {
// legacy sdk.Msg routing
msgRoute := msg.Route()
msgFqName = msg.Type()
// Assuming that the app developer has migrated all their Msgs to
// proto messages and has registered all `Msg services`, then this
// path should never be called, because all those Msgs should be
// registered within the `msgServiceRouter` already.
msgRoute := legacyMsg.Route()
eventMsgName = legacyMsg.Type()
handler := app.router.Route(ctx, msgRoute)
if handler == nil {
return nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "unrecognized message route: %s; message index: %d", msgRoute, i)
}

msgResult, err = handler(ctx, msg)
} else {
return nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "can't route message %+v", msg)
}

if err != nil {
return nil, sdkerrors.Wrapf(err, "failed to execute message; message index: %d", i)
}

msgEvents = sdk.Events{
sdk.NewEvent(sdk.EventTypeMessage, sdk.NewAttribute(sdk.AttributeKeyAction, msgFqName)),
msgEvents := sdk.Events{
sdk.NewEvent(sdk.EventTypeMessage, sdk.NewAttribute(sdk.AttributeKeyAction, eventMsgName)),
}
msgEvents = msgEvents.AppendEvents(msgResult.GetEvents())

Expand All @@ -758,7 +775,7 @@ func (app *BaseApp) runMsgs(ctx sdk.Context, msgs []sdk.Msg) (*sdk.Result, error
// separate each result.
events = events.AppendEvents(msgEvents)

txMsgData.Data = append(txMsgData.Data, &sdk.MsgData{MsgType: msg.Type(), Data: msgResult.Data})
txMsgData.Data = append(txMsgData.Data, &sdk.MsgData{MsgType: sdk.MsgTypeURL(msg), Data: msgResult.Data})
msgLogs = append(msgLogs, sdk.NewABCIMessageLog(uint32(i), msgResult.Log, msgEvents))
}

Expand Down
42 changes: 21 additions & 21 deletions baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func setupBaseAppWithSnapshots(t *testing.T, blocks uint, blockTxs int, options
tx.Msgs = append(tx.Msgs, msgKeyValue{Key: key, Value: value})
keyCounter++
}
txBytes, err := codec.MarshalBinaryBare(tx)
txBytes, err := codec.Marshal(tx)
require.NoError(t, err)
resp := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
require.True(t, resp.IsOK(), "%v", resp.String())
Expand Down Expand Up @@ -341,21 +341,21 @@ func TestSetLoader(t *testing.T) {
}
}

func TestAppVersionSetterGetter(t *testing.T) {
func TestVersionSetterGetter(t *testing.T) {
logger := defaultLogger()
pruningOpt := SetPruning(store.PruneDefault)
db := memdb.NewDB()
name := t.Name()
app := NewBaseApp(name, logger, db, nil, pruningOpt)

require.Equal(t, "", app.AppVersion())
require.Equal(t, "", app.Version())
res := app.Query(abci.RequestQuery{Path: "app/version"})
require.True(t, res.IsOK())
require.Equal(t, "", string(res.Value))

versionString := "1.0.0"
app.SetAppVersion(versionString)
require.Equal(t, versionString, app.AppVersion())
app.SetVersion(versionString)
require.Equal(t, versionString, app.Version())
res = app.Query(abci.RequestQuery{Path: "app/version"})
require.True(t, res.IsOK())
require.Equal(t, versionString, string(res.Value))
Expand Down Expand Up @@ -477,7 +477,7 @@ func TestTxDecoder(t *testing.T) {

app := newBaseApp(t.Name())
tx := newTxCounter(1, 0)
txBytes := codec.MustMarshalBinaryBare(tx)
txBytes := codec.MustMarshal(tx)

dTx, err := app.txDecoder(txBytes)
require.NoError(t, err)
Expand All @@ -499,7 +499,7 @@ func TestInfo(t *testing.T) {
assert.Equal(t, t.Name(), res.GetData())
assert.Equal(t, int64(0), res.LastBlockHeight)
require.Equal(t, []uint8(nil), res.LastBlockAppHash)

require.Equal(t, app.AppVersion(), res.AppVersion)
// ----- test a proper response -------
// TODO
}
Expand All @@ -511,7 +511,7 @@ func TestBaseAppOptionSeal(t *testing.T) {
app.SetName("")
})
require.Panics(t, func() {
app.SetAppVersion("")
app.SetVersion("")
})
require.Panics(t, func() {
app.SetDB(nil)
Expand Down Expand Up @@ -805,7 +805,7 @@ func testTxDecoder(cdc *codec.LegacyAmino) sdk.TxDecoder {
return nil, sdkerrors.Wrap(sdkerrors.ErrTxDecode, "tx bytes are empty")
}

err := cdc.UnmarshalBinaryBare(txBytes, &tx)
err := cdc.Unmarshal(txBytes, &tx)
if err != nil {
return nil, sdkerrors.ErrTxDecode
}
Expand Down Expand Up @@ -936,7 +936,7 @@ func TestCheckTx(t *testing.T) {

for i := int64(0); i < nTxs; i++ {
tx := newTxCounter(i, 0) // no messages
txBytes, err := codec.MarshalBinaryBare(tx)
txBytes, err := codec.Marshal(tx)
require.NoError(t, err)
r := app.CheckTxSync(abci.RequestCheckTx{Tx: txBytes})
require.Empty(t, r.GetEvents())
Expand Down Expand Up @@ -1000,7 +1000,7 @@ func TestDeliverTx(t *testing.T) {
counter := int64(blockN*txPerHeight + i)
tx := newTxCounter(counter, counter)

txBytes, err := codec.MarshalBinaryBare(tx)
txBytes, err := codec.Marshal(tx)
require.NoError(t, err)

res := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
Expand Down Expand Up @@ -1050,7 +1050,7 @@ func TestMultiMsgDeliverTx(t *testing.T) {
header := ocproto.Header{Height: 1}
app.BeginBlock(abci.RequestBeginBlock{Header: header})
tx := newTxCounter(0, 0, 1, 2)
txBytes, err := codec.MarshalBinaryBare(tx)
txBytes, err := codec.Marshal(tx)
require.NoError(t, err)
res := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
require.True(t, res.IsOK(), fmt.Sprintf("%v", res))
Expand All @@ -1070,7 +1070,7 @@ func TestMultiMsgDeliverTx(t *testing.T) {
tx = newTxCounter(1, 3)
tx.Msgs = append(tx.Msgs, msgCounter2{0})
tx.Msgs = append(tx.Msgs, msgCounter2{1})
txBytes, err = codec.MarshalBinaryBare(tx)
txBytes, err = codec.Marshal(tx)
require.NoError(t, err)
res = app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
require.True(t, res.IsOK(), fmt.Sprintf("%v", res))
Expand Down Expand Up @@ -1132,7 +1132,7 @@ func TestSimulateTx(t *testing.T) {
app.BeginBlock(abci.RequestBeginBlock{Header: header})

tx := newTxCounter(count, count)
txBytes, err := cdc.MarshalBinaryBare(tx)
txBytes, err := cdc.Marshal(tx)
require.Nil(t, err)

// simulate a message, check gas reported
Expand Down Expand Up @@ -1261,7 +1261,7 @@ func TestRunInvalidTransaction(t *testing.T) {
registerTestCodec(newCdc)
newCdc.RegisterConcrete(&msgNoDecode{}, "lbm-sdk/baseapp/msgNoDecode", nil)

txBytes, err := newCdc.MarshalBinaryBare(tx)
txBytes, err := newCdc.Marshal(tx)
require.NoError(t, err)

res := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
Expand Down Expand Up @@ -1529,7 +1529,7 @@ func TestBaseAppAnteHandler(t *testing.T) {
// the next txs ante handler execution (anteHandlerTxTest).
tx := newTxCounter(0, 0)
tx.setFailOnAnte(true)
txBytes, err := cdc.MarshalBinaryBare(tx)
txBytes, err := cdc.Marshal(tx)
require.NoError(t, err)
res := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
require.Empty(t, res.Events)
Expand All @@ -1544,7 +1544,7 @@ func TestBaseAppAnteHandler(t *testing.T) {
tx = newTxCounter(0, 0)
tx.setFailOnHandler(true)

txBytes, err = cdc.MarshalBinaryBare(tx)
txBytes, err = cdc.Marshal(tx)
require.NoError(t, err)

res = app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
Expand All @@ -1560,7 +1560,7 @@ func TestBaseAppAnteHandler(t *testing.T) {
// implicitly checked by previous tx executions
tx = newTxCounter(1, 0)

txBytes, err = cdc.MarshalBinaryBare(tx)
txBytes, err = cdc.Marshal(tx)
require.NoError(t, err)

res = app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
Expand Down Expand Up @@ -1633,15 +1633,15 @@ func TestGasConsumptionBadTx(t *testing.T) {

tx := newTxCounter(5, 0)
tx.setFailOnAnte(true)
txBytes, err := cdc.MarshalBinaryBare(tx)
txBytes, err := cdc.Marshal(tx)
require.NoError(t, err)

res := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
require.False(t, res.IsOK(), fmt.Sprintf("%v", res))

// require next tx to fail due to black gas limit
tx = newTxCounter(5, 0)
txBytes, err = cdc.MarshalBinaryBare(tx)
txBytes, err = cdc.Marshal(tx)
require.NoError(t, err)

res = app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
Expand Down Expand Up @@ -2000,7 +2000,7 @@ func TestWithRouter(t *testing.T) {
counter := int64(blockN*txPerHeight + i)
tx := newTxCounter(counter, counter)

txBytes, err := codec.MarshalBinaryBare(tx)
txBytes, err := codec.Marshal(tx)
require.NoError(t, err)

res := app.DeliverTx(abci.RequestDeliverTx{Tx: txBytes})
Expand Down
Loading