Commit Graph

319 Commits

Author SHA1 Message Date
Marko
810a542d6b
refactor: zerodep core (#21239) 2024-08-12 12:57:44 +00:00
cool-developer
bc698d8bb2
test(store/v2): add the root store unit test (#21208)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2024-08-09 15:11:05 +00:00
dependabot[bot]
668854d16f
build(deps): Bump google.golang.org/grpc from 1.64.1 to 1.65.0 in /simapp (#21228)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-08-09 12:51:03 +00:00
dependabot[bot]
1862e38c9c
build(deps): Bump github.com/cosmos/gogoproto from 1.5.0 to 1.6.0 (#21229)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-09 07:08:53 +00:00
Julien Robert
8400d9b426
refactor: clarify usage of genesis.TxHandler in v1 vs v2 (#21213) 2024-08-08 11:23:41 +00:00
Julien Robert
7040177316
refactor(core,stf): complete gas service + simplify deps (#21166) 2024-08-08 07:30:09 +00:00
dependabot[bot]
7dacef600f
build(deps): Bump cosmossdk.io/log from 1.3.1 to 1.4.0 (#21205)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-08 05:51:07 +00:00
dependabot[bot]
5a08833386
build(deps): Bump golang.org/x/crypto from 0.25.0 to 0.26.0 (#21189)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-08-07 08:53:07 +00:00
dependabot[bot]
655b303675
build(deps): Bump github.com/spf13/cast from 1.6.0 to 1.7.0 (#21190)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-08-07 08:52:43 +00:00
cool-developer
6d4097bfb7
feat(store/v2): implement the feature to upgrade the store keys (#20453)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2024-08-05 12:34:36 +00:00
dependabot[bot]
0ddf5c0bfa
build(deps): Bump golang.org/x/sync from 0.7.0 to 0.8.0 (#21169)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
Co-authored-by: Marko <marko@baricevic.me>
2024-08-05 11:01:41 +00:00
Julien Robert
c55e8d7101
chore(runtime/v2): cleanup replaces (#21147) 2024-08-01 11:05:32 +00:00
Julien Robert
98e09a720d
refactor(server/v2): add missing comet flags (#21123) 2024-07-31 15:58:50 +00:00
Marko
df72853b3c
chore: rename snapshots to v2 in store/v2 (#21100) 2024-07-31 13:29:47 +00:00
testinginprod
8b47141655
feat(serverv2): integrate gRPC (#21038)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2024-07-30 09:26:16 +00:00
Alexander Peters
b05bb2601e
fix(stf): fixes to make init genesis pass (#21088)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2024-07-27 18:11:24 +00:00
Aaron Craelius
5c90246b3f
feat(log): remove core dependency and update core interface to be dependency free (#21045)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-07-26 11:00:27 +00:00
Julien Robert
502450cd1e
fix(runtime): remove appv1alpha1.Config from runtime (#21042) 2024-07-25 21:43:19 +00:00
yukionfire
d6ad92db0f
chore(all): replace all fmt.Errorf without paramters with errors.New (#21068) 2024-07-25 14:54:49 +02:00
Hieu Vu
0ca95ee5eb
feat(server/v2) Add prune cmd to serverv2 (#20736) 2024-07-23 16:48:54 +00:00
Julien Robert
544623f3b7
build(deps): add missing replaces and remove unnecessary ones (#21033) 2024-07-23 09:08:41 +00:00
Julien Robert
8484dc50e2
feat(server/v2/cometbft): config (#20989) 2024-07-22 09:36:35 +00:00
Julien Robert
25dce71f62
refactor(core,types,runtime,x): make HasName not mandatory (#20984) 2024-07-19 08:58:47 +00:00
Aaron Craelius
2e0e6d8776
refactor(depinject/appconfig): remove api module dependency (#20931)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2024-07-18 16:30:49 +00:00
Qt
3304d0803d
refactor: use errors.New to replace fmt.Errorf with no parameters (#20943)
Co-authored-by: Marko <marko@baricevic.me>
2024-07-18 12:01:45 +02:00
Marko
9436bcb7f2
chore: various cleanup (#20864) 2024-07-18 09:12:58 +00:00
testinginprod
86ea861c25
fix(serverv2/cometbft): properly decode and route gRPC transactions (#20808)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
2024-07-16 10:14:02 +00:00
testinginprod
16732e11e2
refactor(serverv2): remove unused AppI interface (#20941) 2024-07-13 09:35:47 +00:00
dependabot[bot]
5d66cf9450
build(deps): Bump google.golang.org/grpc from 1.64.0 to 1.64.1 (#20920)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-10 08:09:24 +00:00
dependabot[bot]
b64fa900d5
build(deps): Bump golang.org/x/crypto from 0.24.0 to 0.25.0 (#20902)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-08 07:48:08 +00:00
Hieu Vu
51d33ad6d4
fix(runtime/v2): Reset validatorUpdates after each block (#20865) 2024-07-04 05:44:19 +00:00
dependabot[bot]
e5c0b4eaf8
build(deps): Bump buf.build/gen/go/cometbft/cometbft/protocolbuffers/go from 1.34.2-20240312114316-c0d3497e35d6.2 to 1.34.2-20240701160653-fedbb9acfd2f.2 in /api (#20833)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-02 08:47:37 +00:00
Marko
c7375f7cd3
chore: migrate core to gogoproto.Message (#20781) 2024-06-28 09:34:23 +00:00
cool-developer
be0e2eef0c
feat(store/v2): add WorkingHash (#20706) 2024-06-27 17:50:58 +00:00
archbear
9e89aace91
refactor(server/v2): extend the use of generic transaction type all the way up (#20789) 2024-06-27 10:18:25 +00:00
dependabot[bot]
bf756f0e39
build(deps): Bump github.com/prometheus/common from 0.54.0 to 0.55.0 (#20792)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-27 09:20:48 +00:00
dependabot[bot]
340f85f512
build(deps): Bump buf.build/gen/go/cometbft/cometbft/protocolbuffers/go from 1.34.1-20240312114316-c0d3497e35d6.1 to 1.34.2-20240312114316-c0d3497e35d6.2 in /api (#20765)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: son trinh <trinhleson2000@gmail.com>
2024-06-25 09:02:38 +00:00
Julien Robert
d2903a9eb9
refactor(runtime): environment contract doc and failing services (#20293) 2024-06-20 15:33:54 +00:00
testinginprod
11b8f1108c
feat(stf): change router service to extract the router at runtime rather than build time (#20724)
Co-authored-by: unknown unknown <unknown@unknown>
2024-06-20 13:45:26 +00:00
Hieu Vu
8ab643dc10
feat(server/v2): add config & start helper (#20505)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-06-19 17:19:57 +00:00
Matt Kocubinski
2d014b26c2
feat: simapp/v2 (#20412)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: unknown unknown <unknown@unknown>
2024-06-19 15:18:32 +00:00
testinginprod
55821b328a
feat(stf): port stf's simappv2 changes. (#20611)
Co-authored-by: unknown unknown <unknown@unknown>
2024-06-18 21:06:38 +00:00
dependabot[bot]
2e774b973d
build(deps): Bump google.golang.org/protobuf from 1.34.1 to 1.34.2 (#20632)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: son trinh <trinhleson2000@gmail.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
2024-06-13 08:57:14 +00:00
Marko
28fa3b8dfc
chore: use comet api pkg instead of comet alias (#20614) 2024-06-11 08:46:04 +00:00
Marko
514830e56a
feat: add changes from server modular to main (#20583) 2024-06-06 13:00:01 +00:00
dependabot[bot]
dc558b1ce6
build(deps): Bump github.com/cosmos/gogoproto from 1.4.12 to 1.5.0 (#20563)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-06 08:26:02 +00:00
dependabot[bot]
0ba790645b
build(deps): Bump golang.org/x/crypto from 0.23.0 to 0.24.0 (#20542)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-05 07:42:20 +00:00
dependabot[bot]
6ea50ef980
build(deps): Bump github.com/prometheus/common from 0.53.0 to 0.54.0 (#20534)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-06-04 08:55:12 +00:00
Mark Rushakoff
0256369851
fix: wrap errors in auto CLI service registration (#20493)
Co-authored-by: Marko <marko@baricevic.me>
2024-05-31 08:51:08 +00:00
Matt Kocubinski
46d6406ab3
feat(server/v2): introduce cometbft v2 (#20483) 2024-05-31 00:30:15 +00:00
Julien Robert
dac569c3a2
refactor(core/gas): remove WithXXGasMeter from gas service (#20072) 2024-05-28 13:43:27 +00:00
Marko
1b47dc91a3
chore: move logger to core (#20388) 2024-05-28 12:30:09 +00:00
Julien Robert
190b20c398
feat(runtime,runtime/v2): skip store for specified modules (#20409) 2024-05-27 11:33:25 +00:00
Matt Kocubinski
e05fe92593
refactor(store/v2): remove snapshot conversion fns from store/v2 (#20445) 2024-05-24 15:47:24 +00:00
dependabot[bot]
98ba5b42a3
build(deps): Bump github.com/rs/zerolog from 1.32.0 to 1.33.0 (#20446)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-24 09:37:33 +00:00
Matt Kocubinski
e034766799
refactor(runtime/v2): remove dependency on sdk (#20389) 2024-05-16 11:40:11 +00:00
Julien Robert
f02a124667
refactor(runtime,core): split router service (#20401) 2024-05-16 08:04:40 +00:00
Cosmos SDK
6b716eef9a
chore: fix spelling errors (#20400)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
2024-05-16 05:48:38 +00:00
dependabot[bot]
16437119e0
build(deps): Bump google.golang.org/grpc from 1.63.2 to 1.64.0 (#20390)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-15 13:04:59 +00:00
Marko
080229f300
chore: remove cockroach db errors (#20386) 2024-05-15 06:35:08 +00:00
Matt Kocubinski
493d486bc6
refactor: decouple from sdk/codec in amino codec usage (#20369) 2024-05-14 16:52:51 +00:00
Matt Kocubinski
7ae23e287a
chore: upstream runtime/v2 (#20320)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-05-14 12:43:28 +00:00
Matt Kocubinski
9f42137462
refactor: move baseapp/AppVersionModifer -> core/app (#20361)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-05-13 14:53:11 +00:00
beer-1
990f415eeb
feat(runtime): Add missing NewTransientStoreService (#20261) 2024-05-09 11:32:44 +00:00
Marko
83c4b9bfb4
chore: upstream stf to main (#20286)
Co-authored-by: testinginprod <98415576+testinginprod@users.noreply.github.com>
2024-05-08 14:50:52 +00:00
Marko
271a46c89a
chore: move counter to testutils (#20281) 2024-05-06 16:07:53 +00:00
Marko
0dfb54e36a
refactor! : bump comet to v1 (#19726)
Co-authored-by: yihuang <yi.codeplayer@gmail.com>
2024-05-06 14:12:00 +00:00
Matt Kocubinski
a6bc921c9a
refactor: fetch CometInfo from service (#20238)
Co-authored-by: Marko <marko@baricevic.me>
2024-05-03 01:14:22 +00:00
Julien Robert
5e7aae0db1
refactor(core,x/**): simplify core service api and embed environment in keepers (#20071) 2024-04-17 18:18:16 +00:00
Julien Robert
60496848d9
feat(core,runtime): transaction service (exec mode) (#19953) 2024-04-05 11:06:04 +00:00
Julien Robert
649dfaa8c5
refactor(types): loosen module.AppModule interface (#19951) 2024-04-04 14:21:02 +00:00
Marko
0cdf3cf97c
refactor(core): remove consensus events (#19757) 2024-03-15 09:40:23 +00:00
Matt Kocubinski
c807aaede8
refactor!: mv AddressCodecs aliases from runtime -> core (#19747)
Co-authored-by: Marko <marbar3778@yahoo.com>
2024-03-14 14:19:15 +00:00
Julien Robert
cdc329189b
refactor(types): align genesis api (#19735) 2024-03-13 05:43:24 +00:00
Julien Robert
fea88d13c5
refactor(core)!: clean-up core and simplify preblock (#19672) 2024-03-11 14:39:37 +00:00
Marko
d2e40963ed
refactor(modules): adopt appmodulev2.Hasgenesis (#19627)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-03-11 10:22:16 +00:00
Qt
2bfc037a07
docs: update docs (#19676)
Co-authored-by: son trinh <son@decentrio.ventures>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-03-08 16:59:11 +00:00
samricotta
afcb62bd9f
refactor(x/gov)!: migrate to use env var (#19481)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-03-05 06:01:37 +00:00
Julien Robert
3e63309220
refactor(x/group)!: use router service (#19638) 2024-03-04 15:37:35 +00:00
Julien Robert
8c1299176c
refactor(x/authz)!: use router service (#19637)
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2024-03-04 14:26:18 +00:00
Julien Robert
cfd426fdb3
feat(runtime): message router service (#19571) 2024-03-04 10:25:43 +00:00
Julien Robert
1c9361ca4e
refactor: use slices std (#19598) 2024-02-29 09:57:42 +00:00
Julien Robert
b894603d15
build: fix make proto-gen (#19536) 2024-02-27 13:57:48 +00:00
Julien Robert
8432570e52
chore: api cleanups (#19541) 2024-02-25 09:27:32 +00:00
Julien Robert
b304cf7556
refactor!: kill basic manager (#19512) 2024-02-22 14:44:49 +00:00
Julien Robert
f6d970d52f
refactor(x/group): use core migrations api (#19423)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-02-14 18:26:52 +00:00
samricotta
33868606a8
feat(mint): add env bundler to mint module (#19398)
Co-authored-by: Marko <marbar3778@yahoo.com>
2024-02-13 23:17:13 +00:00
Julien Robert
e15a0de251
feat(core): add migrations registering (#19370)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2024-02-09 09:30:39 +00:00
Julien Robert
6e8de00f77
fix(runtime): make environment provider module scoped (#19385) 2024-02-09 07:24:28 +00:00
Marko
ca04e1144c
refactor!(core): add in environment bundler of service (#19041)
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-01-30 12:22:35 +00:00
testinginprod
498cd6a533
feat(accounts): Add codec.BinaryCodec and Gas to dependencies. (#19068)
Co-authored-by: unknown unknown <unknown@unknown>
2024-01-17 10:58:06 +00:00
Julien Robert
7d9dc3966e
refactor(appconfig)!: simplify app config (#19040) 2024-01-13 20:42:45 +00:00
testinginprod
1e7611faab
feat(accounts): Add header.Service support (#19004)
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-01-10 16:55:57 +00:00
Marko
bde7eb1a4d
refactor(core)!: cleanup dependency graph (#18866)
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2024-01-09 15:14:36 +00:00
testinginprod
5f36ad088f
feat(runtime): Implement branch service (#18475)
Co-authored-by: unknown unknown <unknown@unknown>
2023-11-15 18:27:21 +00:00
Emmanuel T Odeke
05261cc46e
refactor(x/auth): spin out go.mod (#18351) 2023-11-07 11:42:58 +00:00
Facundo Medica
3ac7c0effd
fix(runtime): PreBlocker getting overwritten if set as a baseapp option (#17944) 2023-10-10 14:46:12 +00:00
Devon Bear
07e170d9ef
refactor(runtime): AppI shouldn't require SimulationManager nor LegacyAmino. (#17991) 2023-10-09 08:28:36 +00:00
Julien Robert
76f8ed1e86
fix(x/auth): properly populate tx config options and deprecate ProtoCodecMarshaler (#17946) 2023-10-04 07:29:35 +00:00
mmsqe
f99a6242a9
refactor!: reimplement PreFinalizeBlockHook as PreBlocker (#17713)
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-09-15 07:50:17 +00:00
Marko
98895f4977
chore: remove unneeded code (#17741) 2023-09-14 15:36:13 +00:00
Marko
e47795e3d4
build(deps): Bump cosmossdk.io/core from 0.11.0 to 0.12.0 (#17688) 2023-09-13 21:04:50 +00:00
mmsqe
4eb0185413
feat: introduce PreBlock (#17421) 2023-09-13 12:30:48 +00:00
Callum Waters
79cc75b1db
feat!: connect app version with consensus params in end block (#16244)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-08-29 10:32:53 +00:00
Julien Robert
208219a428
feat: use autocli for comet commands (#17389) 2023-08-16 10:47:34 +00:00
mmsqe
0c1f6fc162
fix: Add MigrationModuleManager to handle migration of upgrade module before other modules (#16583)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-11 16:07:05 +00:00
Julien Robert
60198f077a
fix(runtime): allow to properly register non app wiring modules (#17284) 2023-08-07 11:07:39 +00:00
Julien Robert
0c4f246d86
refactor(runtime): define address codec providers in runtime (#17037) 2023-07-18 12:41:26 +00:00
Aleksandr Bezobchuk
4741130c6e
chore(runtime): audit (#17035) 2023-07-18 04:04:19 +00:00
ruthishvitwit
fd7e549a3c
chore: enable errcheck linter (#16406) 2023-07-12 08:58:27 +00:00
Jacob Gadikian
6afece635c
style: add gci linter (#16605) 2023-06-22 15:35:51 +00:00
Matt Kocubinski
bf6edae9b6
feat: custom get signers (#16340)
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
2023-06-06 14:20:28 +00:00
Aaron Craelius
82659a7477
refactor!: deprecate sdk.Msg.GetSigners (#15284)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-05-25 18:35:09 +00:00
Aleksandr Bezobchuk
6cee22df52
feat!: Comet v0.38 Integration (#15519)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-24 16:09:19 +00:00
Julien Robert
b5c77d6452
fix(types): add fallbacks for CoreAppModuleBasicAdaptor (#16010) 2023-05-03 17:45:54 +00:00
Marko
1705615ef0
feat: add header and comet info service (#15850)
Co-authored-by: Aaron Craelius <aaron@regen.network>
2023-05-03 13:32:25 +00:00
Marko
d31f2964b0
feat!: Define Genesis state transition (#15999) 2023-05-03 08:58:58 +00:00
Julien Robert
946f3d6da7
refactor(simapp): remove public module basic manager (#15958) 2023-05-02 08:35:08 +00:00
Aaron Craelius
cb1641c1b5
refactor(codec)!: update codec to x/tx v0.6.0 (#15873)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-04-28 08:13:28 +00:00
Facundo Medica
af3122aa6c
feat!: Provide logger through depinject (#15818)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-04-24 09:42:55 +00:00
Bryce Neal
93d64cc6fe
feat: Add PrepareCheckState and Precommit callbacks (#14860)
Co-authored-by: dydxwill <119354122+dydxwill@users.noreply.github.com>
2023-04-23 16:04:36 +00:00
Mark Rushakoff
87aefb7a18
build: use cosmos/gogoproto@v1.4.8 for optimized registry merge (#15862) 2023-04-18 15:34:46 +00:00
Marko
8d6c23faa4
feat: add endblocker with valsetupdate type (#15829) 2023-04-14 09:41:29 +00:00
Marko
9e4fbb6db1
feat!: add node status endpoint (#15597)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-04-13 13:42:52 +00:00
Marko
f82cbbbeeb
feat: add valset change and block info service to runtime (#15811)
Co-authored-by: Aaron Craelius <aaron@regen.network>
2023-04-12 21:45:02 +00:00
Aaron Craelius
9332942f37
feat(codec)!: add get signers to codec + merged proto registry to InterfaceRegistry (#15600)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-03-31 14:36:06 +00:00
Marko
9a09f8656b
feat: add event core api to runtime (#15547)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-03-30 14:16:31 +00:00
Jacob Gadikian
37ba88872d
style: enable strict gofumpt (#15579) 2023-03-28 18:59:21 +00:00
Facundo Medica
d29e8eb4f6
refactor!: use KVStoreService in x/auth (#15520)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-03-27 18:57:02 +00:00
Amaury
897ef64712
feat: Validate Msg proto annotations (#13793)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-20 16:27:36 +01:00
testinginprod
2b7a1102ed
refactor(bank): use collections for state management (#15293)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
2023-03-09 11:36:39 +00:00
Facundo Medica
14ba0248b8
feat: Implement RegisterServices for CoreAPI in module manager (#15133)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-02 14:22:20 -03:00
Amaury
96876f8e01
feat: Add merged registry for gogo and protov2 (#14886) 2023-02-20 15:24:11 +00:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
Julien Robert
a7ac29e3f4
chore: rename log pkg and add zerolog (#14955) 2023-02-08 11:32:22 +00:00
Marko
281017ae90
refactor: use cosmos-sdk/log throughout (#14909)
## Description

removes the dependency of tendermint/utils/log from countless locations. This is in effort of reducing Tendermint's lib usage in the sdk 

this is nonbreaking as the interface is the same. To eliminate tm/utils/log in the sdk we need a few more things. Once we have fully removed the tendermint logger, I would propose we break the interface and define our own for our use case, when we pass the logger to tendermint in the node.New() function we can wrap our logger for its use case 

---

### 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/main/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/main/docs/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2023-02-07 10:54:48 +00:00
Julien Robert
41a3dfeced
refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
Facundo Medica
deeb4bd362
feat!: return errors in module manager ABCI methods (#14847) 2023-01-31 19:17:04 +00:00
Likhita Polavarapu
7559d9ecd3
refactor: create go.mod for store (#14746)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-25 13:31:56 +00:00
Marko
e8f0cb1b02
chore: update core and store interfaces (#14712) 2023-01-23 22:50:27 +00:00
Aaron Craelius
ebfd057716
feat(client/v2): add autocli run + simapp example (#13867)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-12-31 01:53:08 +00:00
Jacob Gadikian
1bb0629846
chore: iavl-v0.20-alpha1 and cosmos-db (#14411)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2022-12-28 21:42:00 +01:00
Aaron Craelius
c275ec4d08
feat!: implement core store API in runtime (#14326) 2022-12-15 21:58:20 +00:00
Julien Robert
05a6da32e2
refactor: improve x/upgrade app wiring (part of upgrade audit) (#14216) 2022-12-14 21:21:58 +01:00
Julien Robert
4e2196fcc3
fix: app config and simapp (v1,v2) fixes (#14209) 2022-12-08 23:08:40 +01:00
Emmanuel T Odeke
3aff993fcb
fix: runtime: fix (*App).RegisterMoodules inconsistency in checking/memoizing appModule (#14128)
Fixes an inconsistency in checking for duplicates in ModuleManager's
Modules[name] then also basicManager[name] in which memoization could
happen for .Module[name] but fail after a duplicate check in
basicManager[name]. This change instead only memoizes the AppModule
after the duplicate checks have all cleared.

Fixes #14006
2022-12-01 17:18:58 -05:00
Aaron Craelius
ec27c5384b
refactor!: migrate to core appmodule.AppModule extension interfaces (#13794) 2022-11-14 21:23:55 +00:00
Aaron Craelius
bcdf81cbaf
feat: add basic autocli config to every module (#13786)
* feat: add autocli configs to every module

* auto-discover config

* tests + gov, auth config tweaks

* docs

* Update x/auth/autocli.go

Co-authored-by: Julien Robert <julien@rbrt.fr>

* Update x/auth/autocli.go

Co-authored-by: Julien Robert <julien@rbrt.fr>

* cleanup

Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-11-09 11:44:42 +00:00
Aaron Craelius
74e9d542d2
feat!: integrate autocli and reflection services with simapp legacy (#13746)
* feat!: integrate autocli and reflection services with simapp legacy

* rename alias

* update UPGRADING.md

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-11-08 12:32:49 +00:00
Julien Robert
97bd2ab792
refactor: remove unused code (#13725) 2022-11-02 11:50:47 +01:00
Aaron Craelius
b9e65b6d41
feat: add autocli app wiring + remote info support (#13281) 2022-11-01 21:34:59 +00:00
Aaron Craelius
f3a558c6b4
refactor!: require exported app wiring providers (#13292) 2022-10-10 20:27:44 +00:00
Aleksandr Bezobchuk
c60c55616d
feat: gRPC query for operator and chain configuration (#13485) 2022-10-10 19:12:00 +00:00
Julien Robert
92394f2917
feat!: specify module to export (#13437) 2022-10-04 10:06:30 +00:00
Julien Robert
b76f338511
refactor: move simapp.App to runtime.AppI (#13378)
* refactor: move `simapp.App` to `runtime.AppI`

* add changelog

* `go mod tidy`

* fix app legacy build
2022-09-24 11:49:11 +00:00
Jacob Gadikian
0943a70215
chore: fix linting issues exposed by fixing golangci-lint (#12895)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-08-11 22:00:24 +02:00
Julien Robert
52bc0c16d3
refactor: rename depinject imports to cosmossdk.io/depinject (#12479) 2022-07-09 17:46:07 +02:00
Aleksandr Bezobchuk
c6315ec1b1
chore: simplify and refactor linting (#12318)
## Description

- Use tools methodology to use canonically versioned tools/binaries (e.g. golangci-lint)
  - This makes it so that all environments and developers use the same versions of tools (no need to rely on hacky docker containers)
- Update makefile
- Address linting errors

---

### 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/main/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/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2022-06-21 17:49:36 +00:00
Julien Robert
aba9bdc24c
feat: decouple x/capability from simapp (#12256) 2022-06-17 00:47:38 +02:00
likhita-809
bfb91ab7bc
feat: add x/group app wiring integration tests (#12243)
## Description

ref: #12024 



---

### 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/main/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/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2022-06-15 05:31:27 +00:00
Marie Gauthier
7688ce6e44
feat: migrate x/genutil to app wiring (#12124)
* Add genutil module.proto and module init

* Update simapp

* Add provideDeliverTx to runtime

* Update x/genutil/module.go

* Update x/genutil/module.go

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-06-10 11:56:06 +02:00
Julien Robert
c859589f2f
feat: app wiring setup for tx's and ante/post handlers (#12193)
## Description

Closes: #12056



---

### 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/main/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/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2022-06-09 23:43:06 +00:00
Facundo Medica
2b7aca73d2
feat: add MsgServiceRouter to Baseapp (and runtime's provideCodecs) (#12168)
## Description

This PR adds a way to provide through depinject BaseApp's MsgServiceRouter, required for `x/auth`. Ref: #12125



---

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

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/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/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2022-06-06 20:58:28 +00:00
Jacob Gadikian
78e2e35f80
chore: sdk.Int to math.Int (#12132)
## Description

When locally working with golangci-lint, we can see that there were many deprecation warnings about sdk.Int.  This PR resolves that and makes 1-2 other linting related changes.  Issue on linting coming next.

This also moves BitCurve to bitCurve.

I expect that this set of changes will require several pull requests, one of them to the settings for the linter. 

It also does a gofumpt, because we had various formatting-related linters fail, too. 


---

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

- [x] 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
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [x] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] 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)
2022-06-03 12:17:02 +00:00
Aaron Craelius
dfe29ee2bf
feat(x/auth): app wiring setup (#12019) 2022-05-27 16:54:49 -04:00
Facundo Medica
c17f38d224
refactor!: rename container to cosmossdk.io/depinject (#12020)
* chore: rename container to cosmossdk.io/container

* fix imports

* add replace for container

* remove replace

* add replace

* fix replace

* fix replace

* fix replace

* fix replace

* fix replace

* try to fix replace

* rename to depinject

* rename to depinject

* do not use vanity URL for now

* try fix tests

* try fix tests

* try fix tests

* build -> inject

* build -> inject

* go mod tidy

* fix dep vulnerability

* fix dep vulnerability

* fix Dockerfile for liveness-test

* fix codeql error

* try to solve dependency review

* try to solve dependency review

* go mod tidy

* try to fix tests

* another try
2022-05-27 19:34:48 +02:00
Matt Kocubinski
52fdb08d6a
fix: app wiring simulation failures (#12051) 2022-05-26 16:28:47 -04:00
Matt Kocubinski
b363e0172e
fix: call SetOrderExportGenesis from SimApp (#12048)
## Description

This was causing sim failures like: 

```
exporting genesis...
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=0/12 module=x/crisis name=gov/module-account
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=1/12 module=x/crisis name=bank/nonnegative-outstanding
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=2/12 module=x/crisis name=bank/total-supply
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=3/12 module=x/crisis name=group/Group-TotalWeight
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=4/12 module=x/crisis name=distribution/nonnegative-outstanding
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=5/12 module=x/crisis name=distribution/can-withdraw
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=6/12 module=x/crisis name=distribution/reference-count
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=7/12 module=x/crisis name=distribution/module-account
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=8/12 module=x/crisis name=staking/module-accounts
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=9/12 module=x/crisis name=staking/nonnegative-power
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=10/12 module=x/crisis name=staking/positive-delegation
2022-05-25T10:36:38-05:00 INFO asserting crisis invariants inv=11/12 module=x/crisis name=staking/delegator-shares
2022-05-25T10:36:39-05:00 INFO asserted all invariants duration=1194.381198 height=50 module=x/crisis
importing genesis...
--- FAIL: TestAppSimulationAfterImport (20.98s)
panic: validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction ({824635701280}) [recovered]
	panic: validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction ({824635701280})

goroutine 76 [running]:
testing.tRunner.func1.2({0x1b88020, 0xc0035d70b0})
	/home/mkoco/sdk/go1.18.2/src/testing/testing.go:1389 +0x24e
testing.tRunner.func1()
	/home/mkoco/sdk/go1.18.2/src/testing/testing.go:1392 +0x39f
panic({0x1b88020, 0xc0035d70b0})
	/home/mkoco/sdk/go1.18.2/src/runtime/panic.go:838 +0x207
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x28b5990, 0xc0001b2000}, {0x28c2da0, 0xc002494600}, {{0x0, 0x0}, {0x0, 0x0}, 0x0, ...}, ...}, ...)
	/home/mkoco/dev/regen/cosmos-sdk/types/module/module.go:329 +0x4fd
github.com/cosmos/cosmos-sdk/runtime.(*App).InitChainer(_, {{0x28b5990, 0xc0001b2000}, {0x28c2da0, 0xc002494600}, {{0x0, 0x0}, {0x0, 0x0}, 0x0, ...}, ...}, ...)
	/home/mkoco/dev/regen/cosmos-sdk/runtime/app.go:121 +0x12e
github.com/cosmos/cosmos-sdk/simapp.(*SimApp).InitChainer(_, {{0x28b5990, 0xc0001b2000}, {0x28c2da0, 0xc002494600}, {{0x0, 0x0}, {0x0, 0x0}, 0x0, ...}, ...}, ...)
	/home/mkoco/dev/regen/cosmos-sdk/simapp/app.go:504 +0x178
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000fb1340, {{0x0, 0x0, 0x0}, {0x0, 0x0}, 0x0, {0x0, 0x0, 0x0}, ...})
	/home/mkoco/dev/regen/cosmos-sdk/baseapp/abci.go:69 +0x3f5
github.com/cosmos/cosmos-sdk/simapp.TestAppSimulationAfterImport(0xc000abf520)
	/home/mkoco/dev/regen/cosmos-sdk/simapp/sim_test.go:269 +0xd67
testing.tRunner(0xc000abf520, 0x2590ac0)
	/home/mkoco/sdk/go1.18.2/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
	/home/mkoco/sdk/go1.18.2/src/testing/testing.go:1486 +0x35f
FAIL	github.com/cosmos/cosmos-sdk/simapp	21.018s
FAIL
```

### Root cause

Prior to merge of #11924, SimApp calls [module/NewManager](2b549b807c/simapp/app.go (L344)), which implicitly sets sane default values of [OrderExportGenesis](2b549b807c/types/module/module.go (L239)) from the modules passed as parameters.  Since this usage was deprecated in favor of [RegisterModules](823d2a7f28/simapp/app.go (L354)) in the app wiring work, `OrderExportGenesis` was now `nil`, resulting in empty `genesisData` in [ExportGenesis](823d2a7f28/types/module/module.go (L339))



### Fix

Explicitly set `OrderExportGenesis` with same module order as `OrderInitGenesis` from `SimApp`.

---

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

- [x] 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/main/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/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/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)
2022-05-25 21:34:51 +00:00
Aaron Craelius
1f9871c76c
feat: start app wiring with runtime and x/params modules (#11924)
* feat: start app wiring with runtime and x/params modules

* WIP

* WIP

* docs

* docs, cleanup

* fixing tests

* rollback unrelated changes

* fix

* test fixes

* simplification, tests

* fix tests

* docs

* go mod tidy

* update module path

* codegen

* address middleware removal

* update container alpha 4

* Fix cosmossdk.io/api dependency conflict

- go mod tidy

Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2022-05-24 21:09:24 -04:00