Skip to content

Commit

Permalink
refactor(ecocredit): update genesis import & export to use v1 api (#977)
Browse files Browse the repository at this point in the history
* wip: migrate genesis

* fix: tests

* cleanup genesis sims

* Update x/ecocredit/module/module_test.go

* chore: disable ecocredit tests

* remove legacy genesis

* wip: use memdb for genesis validation

* wip: add tests

* migrate core sims to v1

* update genesis tests

* chore: add todo for commented code

* remove test

* chore: cleanup

* Update x/ecocredit/core/genesis.go

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* chore: review changes

* chore: add core state types validation

* Update x/ecocredit/core/genesis.go

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

* chore: review changes

Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
  • Loading branch information
aleem1314 and ryanchristo authored Apr 15, 2022
1 parent 0a35fad commit b21763e
Show file tree
Hide file tree
Showing 14 changed files with 1,257 additions and 1,470 deletions.
4 changes: 2 additions & 2 deletions x/ecocredit/client/testsuite/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const (
var validMetadataBytes = []byte{0x1}

func RunCLITests(t *testing.T, cfg network.Config) {
// TODO: enable integrations test after ORM migration
// TODO: uncomment after CLI v1 integration https://github.com/regen-network/regen-ledger/issues/876
// suite.Run(t, NewIntegrationTestSuite(cfg))

// // setup another cfg for testing ecocredit enabled class creators list.
// setup another cfg for testing ecocredit enabled class creators list.
// genesisState := ecocredit.DefaultGenesisState()
// genesisState.Params.AllowlistEnabled = true
// bz, err := cfg.Codec.MarshalJSON(genesisState)
Expand Down
Loading

0 comments on commit b21763e

Please sign in to comment.