Skip to content

Commit

Permalink
feat: fork neutrons modules in nolus-core repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Oct 16, 2024
1 parent 4f97507 commit 83204eb
Show file tree
Hide file tree
Showing 66 changed files with 3,264 additions and 1,173 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import (

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
interchaintxstypes "github.com/neutron-org/neutron/v4/x/interchaintxs/types"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions app/keepers/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

contractmanagermoduletypes "github.com/neutron-org/neutron/v4/x/contractmanager/types"
feerefundertypes "github.com/neutron-org/neutron/v4/x/feerefunder/types"
interchainqueriestypes "github.com/neutron-org/neutron/v4/x/interchainqueries/types"
interchaintxstypes "github.com/neutron-org/neutron/v4/x/interchaintxs/types"
contractmanagermoduletypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
feerefundertypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
)

func (appKeepers *AppKeepers) GenerateKeys() {
Expand Down
18 changes: 9 additions & 9 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ import (
"github.com/CosmWasm/wasmd/x/wasm"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

"github.com/neutron-org/neutron/v4/x/contractmanager"
contractmanagermoduletypes "github.com/neutron-org/neutron/v4/x/contractmanager/types"
"github.com/neutron-org/neutron/v4/x/feerefunder"
feetypes "github.com/neutron-org/neutron/v4/x/feerefunder/types"
"github.com/neutron-org/neutron/v4/x/interchainqueries"
interchainqueriestypes "github.com/neutron-org/neutron/v4/x/interchainqueries/types"
"github.com/neutron-org/neutron/v4/x/interchaintxs"
interchaintxstypes "github.com/neutron-org/neutron/v4/x/interchaintxs/types"
transferSudo "github.com/neutron-org/neutron/v4/x/transfer"
"github.com/Nolus-Protocol/nolus-core/x/contractmanager"
contractmanagermoduletypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
"github.com/Nolus-Protocol/nolus-core/x/feerefunder"
feetypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
"github.com/Nolus-Protocol/nolus-core/x/interchainqueries"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
"github.com/Nolus-Protocol/nolus-core/x/interchaintxs"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
transferSudo "github.com/Nolus-Protocol/nolus-core/x/transfer"
)

// module account permissions.
Expand Down
8 changes: 4 additions & 4 deletions app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ import (
minttypes "github.com/Nolus-Protocol/nolus-core/x/mint/types"
taxmoduletypes "github.com/Nolus-Protocol/nolus-core/x/tax/types"

contractmanagermoduletypes "github.com/neutron-org/neutron/v4/x/contractmanager/types"
feetypes "github.com/neutron-org/neutron/v4/x/feerefunder/types"
interchainqueriestypes "github.com/neutron-org/neutron/v4/x/interchainqueries/types"
interchaintxstypes "github.com/neutron-org/neutron/v4/x/interchaintxs/types"
contractmanagermoduletypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
feetypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
)

const SimAppChainID = "nolus-simapp"
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v03/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"

icqtypes "github.com/neutron-org/neutron/v4/x/interchainqueries/types"
icqtypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
)

func CreateUpgradeHandler(
Expand Down
10 changes: 5 additions & 5 deletions app/upgrades/v05/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
exported "github.com/cosmos/ibc-go/v8/modules/core/exported"
ibctmmigrations "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint/migrations"

contractmanagerkeeper "github.com/neutron-org/neutron/v4/x/contractmanager/keeper"
contractmanagertypes "github.com/neutron-org/neutron/v4/x/contractmanager/types"
feerefundertypes "github.com/neutron-org/neutron/v4/x/feerefunder/types"
icqtypes "github.com/neutron-org/neutron/v4/x/interchainqueries/types"
interchaintxstypes "github.com/neutron-org/neutron/v4/x/interchaintxs/types"
contractmanagerkeeper "github.com/Nolus-Protocol/nolus-core/x/contractmanager/keeper"
contractmanagertypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
feerefundertypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
icqtypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
)
Expand Down
2 changes: 1 addition & 1 deletion buf.work.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v1
directories:
- proto

- third_party/proto
29 changes: 13 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ require (
github.com/cometbft/cometbft v0.38.12
github.com/cosmos/cosmos-sdk v0.50.9
github.com/cosmos/gogoproto v1.7.0
github.com/cosmos/ibc-go/v8 v8.4.0
github.com/cosmos/ibc-go/v8 v8.5.1
github.com/golang/protobuf v1.5.4
github.com/gorilla/mux v1.8.1
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/neutron-org/neutron/v4 v4.0.0-rc1
github.com/spf13/cast v1.7.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
Expand All @@ -23,7 +22,7 @@ require (

require (
cosmossdk.io/api v0.7.5
cosmossdk.io/client/v2 v2.0.0-beta.1
cosmossdk.io/client/v2 v2.0.0-beta.3
cosmossdk.io/core v0.11.1
cosmossdk.io/errors v1.0.1
cosmossdk.io/log v1.4.1
Expand All @@ -38,22 +37,22 @@ require (
github.com/cosmos/cosmos-db v1.0.2
github.com/cosmos/cosmos-proto v1.0.0-beta.5
github.com/cosmos/ibc-go/modules/capability v1.0.1
github.com/cosmos/ics23/go v0.10.0
github.com/cosmos/ics23/go v0.11.0
github.com/gogo/protobuf v1.3.3
github.com/golang/mock v1.6.0
github.com/hashicorp/go-metrics v0.5.3
github.com/pkg/errors v0.9.1
google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3
google.golang.org/genproto/googleapis/api v0.0.0-20240624140628-dc46fd24d27d
google.golang.org/protobuf v1.34.2
gotest.tools/v3 v3.5.1
)

require (
cloud.google.com/go v0.114.0 // indirect
cloud.google.com/go/auth v0.5.1 // indirect
cloud.google.com/go v0.115.0 // indirect
cloud.google.com/go/auth v0.6.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/iam v1.1.8 // indirect
cloud.google.com/go/iam v1.1.9 // indirect
cloud.google.com/go/storage v1.41.0 // indirect
cosmossdk.io/collections v0.4.0 // indirect
cosmossdk.io/depinject v1.0.0 // indirect
Expand All @@ -63,6 +62,7 @@ require (
github.com/99designs/keyring v1.2.2 // indirect
github.com/DataDog/datadog-go v3.2.0+incompatible // indirect
github.com/DataDog/zstd v1.5.5 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/aws/aws-sdk-go v1.44.224 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
Expand Down Expand Up @@ -120,7 +120,7 @@ require (
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.4 // indirect
github.com/googleapis/gax-go/v2 v2.12.5 // indirect
github.com/gorilla/handlers v1.5.2 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
Expand Down Expand Up @@ -180,7 +180,6 @@ require (
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/shamaton/msgpack/v2 v2.2.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/viper v1.19.0 // indirect
Expand All @@ -200,16 +199,16 @@ require (
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.23.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/term v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/api v0.180.0 // indirect
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda // indirect
google.golang.org/api v0.186.0 // indirect
google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down Expand Up @@ -241,8 +240,6 @@ replace (
// For more info https://github.com/CosmWasm/wasmd/blob/d63bea442bedf5b3055f3821472c7e6cafc3d813/go.mod#L131
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

github.com/neutron-org/neutron/v4 => github.com/nolus-protocol/neutron/v4 v4.0.1-nolus

// https://github.com/cosmos/cosmos-sdk/blob/main/UPGRADING.md#replaces
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
)
Loading

0 comments on commit 83204eb

Please sign in to comment.