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

refactor(x/ecocredit): update project id and batch denom #1046

Merged
merged 27 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eb12874
fix(x/ecocredit): project id and batch denom
ryanchristo Apr 21, 2022
dc98186
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 22, 2022
dc07ae8
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 22, 2022
d3ea05c
revised project id and batch denom
ryanchristo Apr 24, 2022
e66cc5a
revert implementation updates
ryanchristo Apr 24, 2022
b22a59a
revert implementation updates
ryanchristo Apr 24, 2022
2af559d
revise create batch steps
ryanchristo Apr 24, 2022
1db45d3
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 25, 2022
b23cbe9
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 25, 2022
482294d
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 26, 2022
34d47ad
update project id and batch denom
ryanchristo Apr 27, 2022
a4363c8
update project id and batch denom
ryanchristo Apr 27, 2022
cf96344
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 27, 2022
a4b6006
remove support for custom project ids
ryanchristo Apr 27, 2022
21c205d
remove support for custom project ids
ryanchristo Apr 27, 2022
9438b3a
update scenarios and clean up
ryanchristo Apr 27, 2022
63a57e8
clean up format comments
ryanchristo Apr 27, 2022
e58922e
clean up utils and regex
ryanchristo Apr 27, 2022
097df0a
clean up utils and regex
ryanchristo Apr 27, 2022
d740565
Update x/ecocredit/core/utils.go
ryanchristo Apr 28, 2022
80ac074
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 28, 2022
93415ff
fix jurisdiction error check
ryanchristo Apr 28, 2022
78d9884
update simulations
ryanchristo Apr 29, 2022
c49fc2d
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo Apr 29, 2022
03ee483
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo May 4, 2022
a52bf97
address review comment
ryanchristo May 4, 2022
39a603a
Merge branch 'master' into ryan/1032-project-id-batch-denom
ryanchristo May 4, 2022
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
Merge branch 'master' into ryan/1032-project-id-batch-denom
  • Loading branch information
ryanchristo committed Apr 26, 2022
commit 482294d01845d26c9efdb2499895de64eb69d4d8
1,021 changes: 1,004 additions & 17 deletions api/regen/data/v1/events.pulsar.go

Large diffs are not rendered by default.

246 changes: 47 additions & 199 deletions api/regen/ecocredit/v1/types.pulsar.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ func NewRegenApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest
app.BankKeeper,
app.DistrKeeper,
)

dataModule := data.NewModule(app.AccountKeeper, app.BankKeeper)
newModules := []moduletypes.Module{ecocreditModule, dataModule}
err := app.smm.RegisterModules(newModules)
Expand Down
5 changes: 2 additions & 3 deletions app/testsuite/modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import (
"github.com/stretchr/testify/suite"

data "github.com/regen-network/regen-ledger/x/data/client/testsuite"
ecocredit "github.com/regen-network/regen-ledger/x/ecocredit/client/testsuite"
"github.com/regen-network/regen-ledger/x/ecocredit/client/testsuite"
)

func TestEcocreditIntegration(t *testing.T) {
cfg := DefaultConfig()

ecocredit.RunCLITests(t, cfg)
testsuite.RunCLITests(t, cfg)
}

func TestDataIntegration(t *testing.T) {
Expand Down
15 changes: 15 additions & 0 deletions proto/regen/data/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,18 @@ message EventAttest {
// the data.
string attestor = 2;
}

// EventDefineResolver is an event emitted when a resolved is defined on chain.
message EventDefineResolver {
// id is the ID of the defined resolver.
uint64 id = 1;
}

// EventRegisterResolver is an event emitted when data is registered to a resolver on chain.
message EventRegisterResolver {
// id is the ID of the resolver that the data was registered to.
uint64 id = 1;

// iri is the IRI of the data that was registered.
string iri = 2;
}
3 changes: 0 additions & 3 deletions proto/regen/ecocredit/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ message Params {
// creation
bool allowlist_enabled = 4;

// credit_types is a list of definitions for credit types
repeated CreditType credit_types = 5;

// allowed_ask_denoms is a list of denoms (and display information) allowed to
// be used in sell order ask prices.
repeated AskDenom allowed_ask_denoms = 6;
Expand Down
15 changes: 8 additions & 7 deletions types/module/server/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ import (
"fmt"
"testing"

"github.com/regen-network/regen-ledger/types/testutil"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"

abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"
"google.golang.org/grpc"

regentypes "github.com/regen-network/regen-ledger/types"
"github.com/regen-network/regen-ledger/types/module"
"github.com/regen-network/regen-ledger/types/testutil"
)

type FixtureFactory struct {
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.