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: stargate upgrade #85

Merged
merged 1,755 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1755 commits
Select commit Hold shift + click to select a range
be2225a
crypto/hd: add 'm/' prefix to hd path (#7970)
fedekunze Nov 18, 2020
836ed01
ibc: commit packet and hash (#7808)
fedekunze Nov 18, 2020
86a8b66
Fix StatusCommand (#7974)
amaury1093 Nov 18, 2020
a66e662
Bech32 PubKey: use protobuf in slashing keeper
robert-zaremba Nov 19, 2020
e5c27c1
remove unused function
robert-zaremba Nov 19, 2020
fba071a
changelog update
robert-zaremba Nov 19, 2020
909979d
ADR-031: elaborate consequences and encapsulation of module client-se…
robert-zaremba Nov 18, 2020
ee5ec65
exclude *.pb.gw.go files from codecov.io report (#7981)
Nov 19, 2020
f25e22a
revert tiny portion of #7970 (#7984)
Nov 19, 2020
63c53a6
docs: x/bank: Atlas Doc (#7961)
alexanderbez Nov 19, 2020
7a08ce7
CI: Fix codecov flag project config (#7994)
alpe Nov 20, 2020
a7d8cf2
Bump Tendermint v0.34.0 (#7995)
alexanderbez Nov 20, 2020
7aa5621
types/Coin: compile and reuse Regexps to reduce massive RAM+CPU burn …
odeke-em Nov 20, 2020
c64982c
Fix tendermint misbehaviour trusted consensus state age check (#8006)
colin-axner Nov 23, 2020
6d500ac
Update ADR status (#8009)
aaronc Nov 23, 2020
bf3850f
Update adr-034-account-rekeying.md
sunnya97 Nov 24, 2020
9f9c87a
Show height on legacy REST endpoints (#7997)
amaury1093 Nov 24, 2020
3a8f4cc
Add ConsensusState to IBC Upgrades (#7919)
AdityaSripal Nov 24, 2020
0385b3f
check clients against params and consensus against clients (#8016)
AdityaSripal Nov 24, 2020
cb5cd1a
docs: Add REST endpoints migration guide (#8011)
amaury1093 Nov 24, 2020
e66677d
Update "Core Concepts" docs (#7948)
amaury1093 Nov 24, 2020
5f7f631
Deterministic connection and channel identifiers (#7993)
colin-axner Nov 24, 2020
fa5e1c4
Rename Version to Revision in IBC Height (#8020)
AdityaSripal Nov 24, 2020
9572398
CopyTx also copies timeoutHeight (#8015)
amaury1093 Nov 24, 2020
b785959
CLI `migrate` command for x/{upgrade,params} proposals (#7875)
amaury1093 Nov 24, 2020
47ad13d
Makefile: use docker run --rm whenever possible (#8026)
Nov 25, 2020
b6326bf
Fix legacy querying tx ("unregistered type" bug) (#7992)
amaury1093 Nov 25, 2020
0417ba3
gRPC-gateway routes as alternative to legacy tendermint REST endpoint…
aleem1314 Nov 25, 2020
7e91f3a
cli: ParseCoin doesn't do normalize (#7954)
yihuang Nov 25, 2020
345e25b
Add an IBC prefix to transfer escrow addresses (#7967)
colin-axner Nov 26, 2020
d0f0e49
docs: Remove legacy Msg/queriers in "Basics" section (#7782)
amaury1093 Nov 27, 2020
839450d
Use generated client identifiers (#8034)
colin-axner Nov 30, 2020
a0b3133
Add panic handler on queries (#8039)
amaury1093 Nov 30, 2020
e11d7b6
multistore: fix SetInitialVersion (#8048)
alexanderbez Nov 30, 2020
6699ac4
client/keys: support export of unarmored private key (#8043)
Nov 30, 2020
90f6d9e
Fix QueryByEvents with multiple events and empty pagination request (…
aleem1314 Dec 1, 2020
3fda16f
Fix CryptoCdc inconsistent (#7987)
chengwenxi Dec 2, 2020
0739fae
Add tx broadcast gRPC endpoint (#7852)
aleem1314 Dec 2, 2020
dc118bc
evidence: fix query command (#8066)
alexanderbez Dec 2, 2020
0253f0d
fix: Metadata is not initialized in x/bank InitGenesis #7951 (#8065)
robert-zaremba Dec 3, 2020
5619379
Update signbatch multisig to work online (#7801)
sahith-narahari Dec 3, 2020
3b26d65
Refactor Logging using Zerolog (#8072)
alexanderbez Dec 3, 2020
eabdd27
build(deps): bump vuepress-theme-cosmos from 1.0.175 to 1.0.176 in /d…
dependabot[bot] Dec 3, 2020
d185ca4
Audit through legacy endpoints to find breaking changes (#8037)
amaury1093 Dec 3, 2020
fab04e7
fix: bank gRPC error status codes (#7814)
fdymylja Dec 4, 2020
03c3bb5
Rename GRPCRouter (#8079)
anilcse Dec 4, 2020
a763862
build(deps): bump vuepress-theme-cosmos from 1.0.176 to 1.0.177 in /d…
dependabot[bot] Dec 4, 2020
84a153c
increase ibc basic genesis validation (#8081)
colin-axner Dec 5, 2020
6d047e4
x/bank/keeper: fix a missing gRPC error in AllBalances (#8085)
odeke-em Dec 7, 2020
477a670
build(deps): bump vuepress-theme-cosmos from 1.0.177 to 1.0.178 in /d…
dependabot[bot] Dec 7, 2020
d5dc679
fix typo (#8097)
Dec 7, 2020
64450c4
Implement Connection-specified delay (#8069)
AdityaSripal Dec 7, 2020
d74f4a1
change TmService's validator pubkey type to any (#8060)
aleem1314 Dec 7, 2020
87d79e0
x/ibc/core/23-commitment/types: fix MerkleProof.Empty comparisons (#8…
odeke-em Dec 7, 2020
23cdfdf
removed gov docs bug (#8105)
sunnya97 Dec 7, 2020
96348ed
Move and update codec.MarshalAny functions to codec.Marshaler interf…
robert-zaremba Dec 8, 2020
442476f
x/ibc/light-clients: simplify max time comparison (#8089)
odeke-em Dec 8, 2020
ad4eb88
docs: docs-staging → master (#8084)
lovincyrus Dec 8, 2020
795d196
Recover private validator key (#8099)
RiccardoM Dec 8, 2020
04f02b9
Robert/api clientctx (#8107)
robert-zaremba Dec 8, 2020
92325fd
ADR template: add Further Discussions (#8108)
robert-zaremba Dec 9, 2020
fdea3fd
Add UnpackInterfaces to BroadcastReq (#8118)
amaury1093 Dec 9, 2020
63df1cc
fix ibc-transfer receiving denom bug (#8119)
colin-axner Dec 9, 2020
0269af2
testutil: new TempFile function, simplify WriteToNewTempFile (#8123)
Dec 9, 2020
f71632b
go.mod: update cosmos/go-bip39 to v1.0.0 (#8127)
odeke-em Dec 10, 2020
e88b775
make it exit gracefully. (#8101)
jgimeno Dec 10, 2020
179f27b
add page flags for staking validators (#8103)
anilcse Dec 10, 2020
7270ccc
use testutil in test cases (#8130)
Dec 10, 2020
123439c
x/bank: update atlas manifest (#8137)
alexanderbez Dec 10, 2020
3871e14
atlas: x/auth v0.39.1 (#7996)
alexanderbez Dec 10, 2020
ce46e9a
x/auth: atlas manifest (#8140)
alexanderbez Dec 10, 2020
bb4120d
Switch LogFormat to Plain by default (#8131)
amaury1093 Dec 10, 2020
a941113
build(deps): bump vuepress-theme-cosmos from 1.0.178 to 1.0.179 in /d…
dependabot[bot] Dec 10, 2020
be57d48
build(deps): bump gaurav-nelson/github-action-markdown-link-check (#8…
dependabot[bot] Dec 10, 2020
cb97a9e
Snapshot sync: use hasher for chunk hashes (#7215) (#7259)
robert-zaremba Dec 10, 2020
6bc4ce0
server: init commit (#8144)
alexanderbez Dec 10, 2020
c61fb28
Update CONTRIBUTING.md Point Release Procedure (#7999)
aaronc Dec 11, 2020
df2bcd6
build(deps): bump gaurav-nelson/github-action-markdown-link-check (#8…
dependabot[bot] Dec 11, 2020
9c816e8
Use SignModeLegacyAminoJSON when signer is ledger key (#8136)
amaury1093 Dec 11, 2020
dadd77e
Model-based tests for relay functions of ICS-20 token transfer (#8145)
andrey-kuprianov Dec 11, 2020
839bea3
docs: Add grpc & rest endpoints overview (#8064)
amaury1093 Dec 14, 2020
c9e1154
update error message and add tests (#8166)
colin-axner Dec 14, 2020
f75c715
support upgrade on same revision (#8165)
AdityaSripal Dec 14, 2020
ecd05d4
fix: Signature only flag bug on tx sign command 7632 (#8106)
robert-zaremba Dec 14, 2020
2fd8ae1
Combine client.ReadTxCommandFlags with GetClientContextFromCmd (#8155)
robert-zaremba Dec 14, 2020
b4dc20b
Add msg on CLI for migrating GenesisDoc (#8164)
amaury1093 Dec 14, 2020
af3a8cc
update changelog for v0.40.0-rc5 (#8156)
clevinson Dec 15, 2020
8931ee9
add Increment method to Height interface (#8157)
bluele Dec 15, 2020
4c53d86
build(deps): bump github.com/cosmos/iavl from 0.15.0-rc5 to 0.15.2 (#…
dependabot[bot] Dec 15, 2020
56385ba
build(deps): bump github.com/armon/go-metrics from 0.3.4 to 0.3.5 (#8…
dependabot[bot] Dec 15, 2020
72ca861
build(deps): bump gaurav-nelson/github-action-markdown-link-check (#8…
dependabot[bot] Dec 15, 2020
7ead290
x/upgrade: fix software upgrade proposals from automatically failing,…
colin-axner Dec 15, 2020
b434867
x/ibc: fix ClientUpdateProposal unpacker (#8170)
fedekunze Dec 16, 2020
2f27ecb
docs: typo fix (#8172)
jordaaash Dec 16, 2020
4e8df91
build(deps): bump github.com/otiai10/copy from 1.2.0 to 1.3.0 (#8160)
dependabot[bot] Dec 16, 2020
f163ccc
build(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#8159)
dependabot[bot] Dec 16, 2020
fab821d
client: remove redundant/repeated code (#8182)
odeke-em Dec 17, 2020
1f98e07
change gentx cmd amount field to arg from flag (#8183)
PrathyushaLakkireddy Dec 17, 2020
9f54fcc
Fix IBC upgrade: manually tested (#8187)
AdityaSripal Dec 17, 2020
3006708
Update default historical header number for stargate (#8178)
jackzampolin Dec 17, 2020
6147944
Tulasi/export homepath (#8194)
NagaTulasi Dec 18, 2020
75a843a
Clean Any interface (#8167)
robert-zaremba Dec 18, 2020
5362f7a
update x/upgrade docs (#8196)
anilcse Dec 18, 2020
f3acbee
fix timeout bug (#8200)
colin-axner Dec 18, 2020
8f9e630
types: unconditionally divide by 2 because of integer truncation ⌊x/2…
odeke-em Dec 20, 2020
57b9c03
Fix proto-swagger-gen (#8184)
amaury1093 Dec 21, 2020
ac0d439
build(deps): bump codecov/codecov-action from v1.0.15 to v1.1.0 (#8195)
dependabot[bot] Dec 21, 2020
d6f8780
go.mod: update to cosmos/iavl@v0.15.3 for performance updates (#8214)
odeke-em Dec 22, 2020
66428e1
build(deps): bump codecov/codecov-action from v1.1.0 to v1.1.1 (#8215)
dependabot[bot] Dec 22, 2020
fdcd24c
simulation: close opened files and check for error while creating fil…
PrathyushaLakkireddy Dec 22, 2020
e31c00c
Fix Unregistered interface types.Evidence (#8221)
aleem1314 Dec 23, 2020
297f61f
x/ibc: minor channel fixes (#8229)
PrathyushaLakkireddy Dec 23, 2020
00d8ffa
test: Use the bond denomination from the configuration, not the defau…
hydrogen18 Dec 24, 2020
e25699e
build(deps): bump github.com/otiai10/copy from 1.3.0 to 1.4.0 (#8227)
dependabot[bot] Dec 28, 2020
c68c623
Fix tendermint query proto scoping (#8236)
tony-iqlusion Dec 29, 2020
77c3ebe
Update randomfees selection of non-zero coins (#8209)
likhita809 Dec 29, 2020
bd165a1
x/distribution: fix setting withdraw address (#8240)
chengwenxi Dec 31, 2020
b48f0ef
Add script to generate proto-docs (#8238)
aleem1314 Dec 31, 2020
14e2261
Add grpc gateway missing endpoints to swagger docs (#8232)
anilcse Jan 1, 2021
a64ec64
Fix ConsensusStates grpc query (#8246)
AdityaSripal Jan 4, 2021
2bfbbae
contrib: fix path for statik files (#8248)
jgimeno Jan 4, 2021
2207d60
update appd export (#8228)
likhita809 Jan 4, 2021
2b27f26
build(deps): bump github.com/otiai10/copy from 1.4.1 to 1.4.2 (#8242)
dependabot[bot] Jan 4, 2021
7e6a69d
v0.40.0-rc6 Changelog Update (#8249)
clevinson Jan 5, 2021
429d200
build(deps): bump codecov/codecov-action from v1.1.1 to v1.2.0 (#8252)
dependabot[bot] Jan 5, 2021
ea37643
Fix gentx command setting wrong amount (#8255)
amaury1093 Jan 5, 2021
2c18dbf
docs: cache-wrapping and virtual store (#8102)
robert-zaremba Jan 5, 2021
2382f98
Fix upgrade tx commands not showing up in CLI (#8261)
clevinson Jan 5, 2021
2444380
Update IBC Application Guide (#8256)
AdityaSripal Jan 5, 2021
b84c74a
[docs]: Stargate migration guides (#7771)
anilcse Jan 6, 2021
c03ad5c
build(deps): bump codecov/codecov-action from v1.2.0 to v1.2.1 (#8263)
dependabot[bot] Jan 6, 2021
90d0513
appcreator: Reuse encoding config instead of recreating it (#8250)
robert-zaremba Jan 6, 2021
ac1e6fa
Revert "Fix upgrade tx commands not showing up in CLI" (#8262)
clevinson Jan 7, 2021
5132f83
ibc: add proto message to Header and Misbehaviour (#8278)
colin-axner Jan 7, 2021
e39ebbf
build(deps): bump github.com/tendermint/tendermint from 0.34.0 to 0.3…
dependabot[bot] Jan 7, 2021
9148d1c
x/evidence doc general audit & cleanup (#8277)
blushi Jan 7, 2021
7e2f6d6
Create docs for signing & broadcasting txs (#8257)
amaury1093 Jan 7, 2021
0386676
Update tendermint to v0.34.1 (#8281)
clevinson Jan 7, 2021
2620e6a
update changelog for rc7 (#8275)
clevinson Jan 7, 2021
9d1d901
Stargate Release PR -- v0.40.0 Final (#8284)
clevinson Jan 8, 2021
c71ab21
Backport/reproducible builds (#8381)
robert-zaremba Jan 19, 2021
3d15a54
fix GET /upgrade/current query (#8280) (#8372)
amaury1093 Jan 19, 2021
9a888ef
build(deps): bump github.com/armon/go-metrics from 0.3.5 to 0.3.6 (#8…
amaury1093 Jan 19, 2021
a0930b9
fix zero time checks (#8282) (#8374)
amaury1093 Jan 19, 2021
96853bc
build(deps): bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 (#8291…
amaury1093 Jan 19, 2021
7fe48d0
Fix sequence value in auth sign signature only (#8287) (#8383)
amaury1093 Jan 19, 2021
152955f
fix: wrappedError.Is (#8355) (#8377)
robert-zaremba Jan 19, 2021
ded180c
fix: wrappedError.Is (#8355) (#8377)
robert-zaremba Jan 19, 2021
208cc0e
Update gogo proto deps with v1.3.2 security fixes (#8350) (#8386)
amaury1093 Jan 19, 2021
e79f2f9
Fix ibc client (#8341) (#8375)
robert-zaremba Jan 19, 2021
0357261
fix proto generation (#8361) (#8389)
robert-zaremba Jan 19, 2021
39253f9
Add missing unpack interfaces functions to IBC (#8359) (#8379)
robert-zaremba Jan 19, 2021
63ae4dc
backport: client denom metadata queries (#8364)
fedekunze Jan 19, 2021
be360fb
Backport/changelog (#8390)
robert-zaremba Jan 19, 2021
633d5b6
update to tendermint v0.34.3 (#8388) (#8391)
amaury1093 Jan 19, 2021
77df471
stargate: balance and metadata validation (#8421)
fedekunze Jan 26, 2021
6738a26
backport #8418 (#8424)
fedekunze Jan 26, 2021
ac4f125
Reorder IBC channel callbacks (#8441)
Jan 26, 2021
5e103f2
ibc: MsgTransfer amino JSON, commits from @fedekunze (#8440)
Jan 26, 2021
ced3717
chore: update RELEASE_NOTES.md (#8443)
fdymylja Jan 26, 2021
2595b76
backport #8479 (#8486)
fedekunze Feb 2, 2021
00e3817
snapshots: fix flaky tests [o.41-cherry-pick] (#8484)
Feb 4, 2021
75bd796
Fix keyring import from older versions. (#8489)
Feb 4, 2021
bdba367
Add packet_connection attribute to packet lifecycle methods (#8483)
colin-axner Feb 4, 2021
bd91b15
fix: tendermint subcommands should not create missing files (#8493)
Feb 4, 2021
179f034
bank: don't ignore errors returned by Balance.GetAddress() (#8534)
Feb 8, 2021
1a8acb4
add cosmovisot to running a node (#8320)
jgimeno Jan 13, 2021
5c9d994
Update chain-upgrade-guide-040.md (#8326)
Feb 9, 2021
abfd1f4
docs: Update x/staking spec (#8395)
amaury1093 Feb 1, 2021
e6d20cb
Misc documentation fixes (#8452)
hjorthjort Jan 28, 2021
9c201d1
fixing typo at 'os' backend session (#8477)
victorfrancax1 Feb 4, 2021
a432bb0
Update cosmovisor.md (#8552)
okwme Feb 10, 2021
a489eff
Run pro-gen again
amaury1093 Feb 12, 2021
8d54617
docs: rest_grpc updates (#8582)
tac0turtle Feb 15, 2021
79dec71
[backport/v0.41.x] Removed GetValidator caching to fix concurrency er…
amaury1093 Feb 15, 2021
85fde4e
Make gRPC requests go through tendermint Query (#8549) (#8585)
amaury1093 Feb 16, 2021
0a234fa
[backport/v0.41.x] build(deps): bump github.com/tendermint/tendermint…
amaury1093 Feb 16, 2021
3f1b9b9
docs: Remove deprecated "Interfaces" section (#8294) (#8594)
amaury1093 Feb 16, 2021
84eb230
fix: bind values from env variables to flags (#8337) (#8488)
troian Feb 17, 2021
85164a8
[backport/v0.41.x]: Compatibility with the ARM architecture (#8450)
Feb 17, 2021
53e50ae
[backport/v0.41.x] x/crisis - general audit and cleanup (#8269) (#8303)
aleem1314 Feb 17, 2021
58db6a6
codec/types: avoid unnecessary allocations for NewAnyWithCustomTypeUR…
mergify[bot] Feb 17, 2021
516c536
crypto/hd: make DerivePrivateKeyForPath error and not panic on traili…
mergify[bot] Feb 17, 2021
c9c4089
Release Notes and CHANGELOG for v0.41.1 (#8596)
amaury1093 Feb 17, 2021
7d31508
release v0.41.2 (#8615)
Feb 18, 2021
89bfea1
testutil/network: fix build (#8617)
boz Feb 18, 2021
f5e08d6
Release v0.41.3 (#8623)
Feb 18, 2021
d2adb0a
Update baseapp docs (#8630) (#8644)
mergify[bot] Feb 22, 2021
1da1c05
backport: x/{auth, bank, distr} docs basic cleanup (#8268) (#8304)
atheeshp Feb 22, 2021
d75ce8d
server: fix interceptConfigs (bp #8641) (#8659)
mergify[bot] Feb 22, 2021
f7d9e17
docs: update master docs (bp #8353) (#8672)
mergify[bot] Feb 24, 2021
29ec4a9
Add multisign batch command (bp #7787) (#8691)
mergify[bot] Feb 25, 2021
c13eb3b
update tendermint to v0.34.8 (#8701) (#8702)
mergify[bot] Feb 25, 2021
013a968
docs: Add mention to use gRPC v1.33.2 (#8658) (#8699)
mergify[bot] Feb 25, 2021
e10e9c8
Add warning notice in changelog for v0.41.x bug (ref: #8461) (bp #870…
mergify[bot] Feb 26, 2021
057ced6
fix REST endpoints in migration docs (bp #8648) (#8687)
mergify[bot] Feb 26, 2021
78d9425
auth: allow 0 coin accounts in genesis (bp #8714) (#8716)
mergify[bot] Feb 26, 2021
c129c43
fix: per 8711 fix typo and minor command text edit for multi sign bat…
mergify[bot] Feb 27, 2021
a6745f6
Backport genesis speed ups to 0.41.x (#8722)
zmanian Mar 1, 2021
ef6bcfc
Use x/auth/client for querying Txs (#8732)
amaury1093 Mar 1, 2021
344d499
Allow REST endpoint to query txs with multisig (bp #8730) (#8731)
mergify[bot] Mar 1, 2021
e99838b
update CHANGELOG
Mar 1, 2021
1b499d1
crypto/keyring: fix offline keys migration (#8738)
Mar 2, 2021
c35bcdf
further reduce logging (#8752) (#8753)
mergify[bot] Mar 2, 2021
2e3d086
update: release notes for v0.41.4 (#8748)
fdymylja Mar 2, 2021
3a686de
v0.42.0-rc0 Release (#8778)
clevinson Mar 4, 2021
bd2ee68
Emit header in MsgUpdateClient events (bp #8624) (#8770)
mergify[bot] Mar 4, 2021
baadcd1
Revert "Emit header in MsgUpdateClient events (bp #8624) (#8770)"
Mar 4, 2021
0f810c0
logging (#8785) (#8791)
mergify[bot] Mar 4, 2021
3f34ace
perf change (#8796) (#8797)
mergify[bot] Mar 5, 2021
7ab69ce
Re-introduce "Emit header in MsgUpdateClient events (bp #8624) (#8770)""
Mar 5, 2021
9233365
finalize changelog and release notes (#8804)
Mar 6, 2021
b20adcf
x/gov: fix NormalizeProposalType() return values (bp #8808) (#8816)
mergify[bot] Mar 8, 2021
305ad54
update release date
Mar 8, 2021
a76d120
fixed broken links, typos (#8783) (#8823)
mergify[bot] Mar 9, 2021
b084503
add trust to macOS Keychain for calling apps by default (#8826) (#8835)
mergify[bot] Mar 10, 2021
0092f0a
store/cachekv: use typed types/kv.List instead of container/list.List…
mergify[bot] Mar 10, 2021
a134038
fixes: permalinks for docs (#8838) (#8846)
mergify[bot] Mar 10, 2021
27fb401
Security/ghsa mvm6 gfm2 89xj (#8852)
robert-zaremba Mar 10, 2021
de1a1f9
keyring: update documentation (#8839) (#8858)
mergify[bot] Mar 11, 2021
fb99810
Fix SendToModuleAccountTest (bp #8857) (#8860)
mergify[bot] Mar 11, 2021
030dcaf
all: skip noisy/faulty benchmarks + add b.ReportAllocs for every benc…
mergify[bot] Mar 11, 2021
fccc4e6
add --output-document to multisign-batch (#8873) (#8877)
mergify[bot] Mar 15, 2021
574433f
Fix multisig LegacyAminoPubKey Amino marshaling (bp #8841) (#8878)
mergify[bot] Mar 15, 2021
d792c93
docs: update dropdown v0.41 → v0.42 (#8888)
lovincyrus Mar 15, 2021
fea4ba9
Update docs (bp #8751) (#8894)
mergify[bot] Mar 16, 2021
8e416be
add orderBy parameter to TxsByEvents (bp #8815) (#8883)
mergify[bot] Mar 17, 2021
3a1d48e
Fix typo (#8905) (#8910)
mergify[bot] Mar 17, 2021
7acb2d2
Docs: Anys Usage, Events & small cleanups (bp #8895) (#8911)
mergify[bot] Mar 17, 2021
7497f42
update changelog and RELEASE NOTES (#8912)
Mar 17, 2021
61a8f8f
add +nobuild flags to all relevant test cases (bp #8934) (#8938)
mergify[bot] Mar 19, 2021
4480d37
backport test detection ci fix (#8924) (#8942)
Mar 19, 2021
562a5d1
update changelog
Mar 19, 2021
f906a6b
Staking spec updates (bp #8843) (#8939)
mergify[bot] Mar 24, 2021
6af22cb
Merge pull request from GHSA-2f3p-6gfj-jccq (#8985)
alexanderbez Mar 24, 2021
0eaab95
finalise release changelog and notes (#8987)
Mar 24, 2021
bb98175
[Backport] Add ledger/multisig detection in SignTx functions (#9026) …
amaury1093 Apr 1, 2021
e95b650
[Backport] fix: grpc-gateway error codes (#9015) (#9078)
aleem1314 Apr 8, 2021
ba49681
Backport #9081: bump tendermint core (#9082)
Apr 8, 2021
98029e7
update changelog for v0.42.4 (#9083)
clevinson Apr 8, 2021
b24c9fd
chores: cleanup CI
daeMOn63 Apr 22, 2021
af9acdc
fix: port our default consensus power (#87)
daeMOn63 May 4, 2021
0554e09
feat: stargate custom mint module (#86)
daeMOn63 May 4, 2021
ca5e476
chores: rebase stargate on master
daeMOn63 May 5, 2021
6a4ee8f
feat: remove cosmos-sdk static site generation as is not used
daeMOn63 May 5, 2021
434893c
fix: restore power reduction to sdk defaults
daeMOn63 May 5, 2021
510f518
chores: cleanup unused bondedRatio
daeMOn63 May 5, 2021
72b1457
chores: update sdk v0.42.5 + consensus v0.34.10 (#90)
daeMOn63 Jun 8, 2021
2685be5
feat: expose genesis appState for distribution module (#91)
daeMOn63 Jun 18, 2021
8baea8e
fix: point go.mod to fetchai/tendermint (#92)
Josumner Jun 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add UnpackInterfaces to BroadcastReq (#8118)
* add test case for decoding & re-encoding a full transaction using amino

* drop equal assertion for tx and txRequest

* Fix BroadcastReq UnpackInterfaces

* Remove unrelated files

* order imports

* sort imports again

Co-authored-by: Cory Levinson <cjlevinson@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and daeMOn63 committed May 4, 2021
commit fdea3fdd365338df30a1f7fb239baf508b64f160
29 changes: 27 additions & 2 deletions codec/amino_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import (
"errors"
"testing"

"github.com/cosmos/cosmos-sdk/codec/types"

"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/x/auth/client/rest"
"github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx"
)

func createTestCodec() *codec.LegacyAmino {
Expand Down Expand Up @@ -115,3 +117,26 @@ func TestAminoCodecUnpackAnyFails(t *testing.T) {
require.Error(t, err)
require.Equal(t, err, errors.New("AminoCodec can't handle unpack protobuf Any's"))
}

func TestAminoCodecFullDecodeAndEncode(t *testing.T) {
// This tx comes from https://github.com/cosmos/cosmos-sdk/issues/8117.
txSigned := `{"type":"cosmos-sdk/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"fulltest","identity":"satoshi","website":"example.com","details":"example inc"},"commission":{"rate":"0.500000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.200000000000000000"},"min_self_delegation":"1000000","delegator_address":"cosmos14pt0q5cwf38zt08uu0n6yrstf3rndzr5057jys","validator_address":"cosmosvaloper14pt0q5cwf38zt08uu0n6yrstf3rndzr52q28gr","pubkey":{"type":"tendermint/PubKeyEd25519","value":"CYrOiM3HtS7uv1B1OAkknZnFYSRpQYSYII8AtMMtev0="},"value":{"denom":"umuon","amount":"700000000"}}}],"fee":{"amount":[{"denom":"umuon","amount":"6000"}],"gas":"160000"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AwAOXeWgNf1FjMaayrSnrOOKz+Fivr6DiI/i0x0sZCHw"},"signature":"RcnfS/u2yl7uIShTrSUlDWvsXo2p2dYu6WJC8VDVHMBLEQZWc8bsINSCjOnlsIVkUNNe1q/WCA9n3Gy1+0zhYA=="}],"memo":"","timeout_height":"0"}}`
_, legacyCdc := simapp.MakeCodecs()

var tx legacytx.StdTx
err := legacyCdc.UnmarshalJSON([]byte(txSigned), &tx)
require.NoError(t, err)

// Marshalling/unmarshalling the tx should work.
marshaledTx, err := legacyCdc.MarshalJSON(tx)
require.NoError(t, err)
require.Equal(t, string(marshaledTx), txSigned)

// Marshalling/unmarshalling the tx wrapped in a struct should work.
txRequest := &rest.BroadcastReq{
Mode: "block",
Tx: tx,
}
_, err = legacyCdc.MarshalJSON(txRequest)
require.NoError(t, err)
}
11 changes: 9 additions & 2 deletions x/auth/client/rest/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"io/ioutil"
"net/http"

"github.com/cosmos/cosmos-sdk/client"
clientrest "github.com/cosmos/cosmos-sdk/client/rest"
"github.com/cosmos/cosmos-sdk/client/tx"

"github.com/cosmos/cosmos-sdk/client"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/types/rest"
"github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx"
)
Expand All @@ -19,6 +19,13 @@ type BroadcastReq struct {
Mode string `json:"mode" yaml:"mode"`
}

var _ codectypes.UnpackInterfacesMessage = BroadcastReq{}

// UnpackInterfaces implements the UnpackInterfacesMessage interface.
func (m BroadcastReq) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
return m.Tx.UnpackInterfaces(unpacker)
}

// BroadcastTxRequest implements a tx broadcasting handler that is responsible
// for broadcasting a valid and signed tx to a full node. The tx can be
// broadcasted via a sync|async|block mechanism.
Expand Down