diff --git a/.github/dependabot.yml b/.github/dependabot.yml index be93eebf..d73a483a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,6 @@ updates: schedule: interval: weekly ignore: - - dependency-name: "github.com/tendermint/tendermint" + - dependency-name: "github.com/cometbft/cometbft" update-types: ["version-update:semver-major", "version-update:semver-minor"] open-pull-requests-limit: 10 diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index b67b1d43..7c4bf21c 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -1,28 +1,39 @@ name: Run Gosec on: push: + paths: + - "**/*.go" + - "go.mod" + - "go.sum" branches: - master pull_request: + paths: + - "**/*.go" + - "go.mod" + - "go.sum" branches: - master jobs: tests: + permissions: + security-events: write + runs-on: ubuntu-latest env: GO111MODULE: on steps: - - name: Set up Go - uses: actions/setup-go@v3 - with: - path: /usr/local/go/bin - go-version: '1.18.10' - name: Checkout Source - uses: actions/checkout@v2 - - name: Set env vars - run: | - echo "${HOME}/goroot/bin" >> $GITHUB_PATH + uses: actions/checkout@v3 + - name: Run Gosec Security Scanner - uses: cosmos/gosec@master + uses: securego/gosec@master + with: + # we let the report trigger content trigger a failure using the GitHub Security features. + args: "-no-fail -fmt sarif -out results.sarif ./..." + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v2 with: - args: ./... + # Path to SARIF file relative to the root of the repository + sarif_file: results.sarif diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f34b0bc3..6405f120 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -59,4 +59,4 @@ jobs: - name: Run documentation linter if: env.GIT_DIFF - run: make mdlint \ No newline at end of file + run: make mdlint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d59dd556..22664529 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,14 +13,14 @@ jobs: install-tparse: runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: 1.21 - name: Display go version run: go version - name: install tparse run: | - export GO111MODULE="on" && go install github.com/mfridman/tparse@v0.11.1 + export GO111MODULE="on" && go install github.com/mfridman/tparse@v0.13.1 - uses: actions/cache@v2.1.6 with: path: ~/go/bin @@ -33,7 +33,7 @@ jobs: go-arch: ["amd64", "arm", "arm64"] steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: 1.21 - uses: technote-space/get-diff-action@v4 @@ -49,7 +49,7 @@ jobs: split-test-files: runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: 1.21 - uses: actions/checkout@v2 @@ -84,7 +84,7 @@ jobs: part: ["00", "01", "02", "03"] steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: 1.21 - uses: technote-space/get-diff-action@v4 @@ -162,7 +162,7 @@ jobs: part: ["00", "01", "02", "03"] steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: 1.21 - uses: technote-space/get-diff-action@v4 diff --git a/.golangci.yml b/.golangci.yml index a722b2fa..2201e992 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ run: tests: true - timeout: 10m + timeout: 15m sort-results: true allow-parallel-runners: true exclude-dir: testutil/testdata_pulsar @@ -30,7 +30,6 @@ linters: - ineffassign - makezero - misspell - - nakedret - nilnil - promlinter - staticcheck diff --git a/Makefile b/Makefile index 19a9056c..1c5413a7 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ endif PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation') LEDGER_ENABLED ?= true SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') -TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::') # grab everything after the space in "github.com/tendermint/tendermint v0.34.7" +TM_VERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::') # grab everything after the space in "github.com/cometbft/cometbft v0.34.7" HTTPS_GIT := https://github.com/sge-network/sge.git DOCKER := $(shell which docker) DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR)/proto:/workspace --workdir /workspace bufbuild/buf @@ -72,7 +72,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sge \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ - -X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TM_VERSION) + -X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TM_VERSION) # DB backend selection ifeq (cleveldb,$(findstring cleveldb,$(SGE_BUILD_OPTIONS))) @@ -157,7 +157,7 @@ distclean: clean ### Proto ### ############################################################################### -proto-all: proto-format proto-gen +proto-all: proto-format proto-lint proto-gen docs: @echo @@ -177,36 +177,33 @@ docs: @echo .PHONY: docs -protoVer=v0.8 -protoImageName=sgenetwork/sge-proto-gen:$(protoVer) -containerProtoGen=cosmos-sdk-proto-gen-$(protoVer) -containerProtoFmt=cosmos-sdk-proto-fmt-$(protoVer) - -# this can be used to regenrate the proto image -proto-image: - cd proto; docker build -t $(protoImageName) -f Dockerfile . +protoVer=0.13.1 +protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) +protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) +# containerProtoGen=cosmos-sdk-proto-gen-$(protoVer) +# containerProtoFmt=cosmos-sdk-proto-fmt-$(protoVer) proto-gen: @echo "Generating Protobuf files" - @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ - sh ./scripts/protocgen.sh; fi + @$(protoImage) sh ./scripts/protocgen.sh + +proto-swagger-gen: + @echo "Generating Protobuf Swagger" + @$(protoImage) sh ./scripts/protoc-swagger-gen.sh + $(MAKE) update-swagger-docs proto-format: @echo "Formatting Protobuf files" - @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ - find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi + @$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \; proto-image-build: @DOCKER_BUILDKIT=1 docker build -t $(protoImageName) -f ./proto/Dockerfile ./proto -proto-image-push: - docker push $(protoImageName) - proto-lint: - @$(DOCKER_BUF) lint --error-format=json + @$(protoImage) buf lint --error-format=json proto-check-breaking: - @$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=master + @$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=master ############################################################################### diff --git a/app/app.go b/app/app.go index c6b50680..6d91ff39 100644 --- a/app/app.go +++ b/app/app.go @@ -7,6 +7,14 @@ import ( "os" "path/filepath" + dbm "github.com/cometbft/cometbft-db" + abci "github.com/cometbft/cometbft/abci/types" + tmjson "github.com/cometbft/cometbft/libs/json" + "github.com/cometbft/cometbft/libs/log" + tmos "github.com/cometbft/cometbft/libs/os" + + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" "github.com/gorilla/mux" "github.com/rakyll/statik/fs" "github.com/spf13/cast" @@ -17,10 +25,11 @@ import ( "github.com/cosmos/cosmos-sdk/client/grpc/tmservice" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" + runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services" "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" - sdksimapp "github.com/cosmos/cosmos-sdk/simapp" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/version" @@ -28,13 +37,13 @@ import ( authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/crisis" - distrclient "github.com/cosmos/cosmos-sdk/x/distribution/client" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - ibcclientHandler "github.com/cosmos/ibc-go/v5/modules/core/02-client/client" + ibcclientHandler "github.com/cosmos/ibc-go/v7/modules/core/02-client/client" + "github.com/sge-network/sge/app/keepers" sgeappparams "github.com/sge-network/sge/app/params" "github.com/sge-network/sge/app/upgrades" @@ -45,12 +54,7 @@ import ( v5 "github.com/sge-network/sge/app/upgrades/v5" v6 "github.com/sge-network/sge/app/upgrades/v6" v7 "github.com/sge-network/sge/app/upgrades/v7" - - abci "github.com/tendermint/tendermint/abci/types" - tmjson "github.com/tendermint/tendermint/libs/json" - "github.com/tendermint/tendermint/libs/log" - tmos "github.com/tendermint/tendermint/libs/os" - dbm "github.com/tendermint/tm-db" + v8 "github.com/sge-network/sge/app/upgrades/v8" // unnamed import of statik for swagger UI support _ "github.com/cosmos/cosmos-sdk/client/docs/statik" @@ -61,7 +65,6 @@ func getGovProposalHandlers() []govclient.ProposalHandler { govProposalHandlers = append(govProposalHandlers, paramsclient.ProposalHandler, - distrclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientHandler.UpdateClientProposalHandler, @@ -82,11 +85,12 @@ var ( v5.Upgrade, v6.Upgrade, v7.Upgrade, + v8.Upgrade, } ) var ( - _ sdksimapp.App = (*SgeApp)(nil) + _ runtime.AppI = (*SgeApp)(nil) _ servertypes.Application = (*SgeApp)(nil) ) @@ -161,7 +165,6 @@ func NewSgeApp( bApp, cdc, mAccPerms, - app.ModuleAccountAddrs(), skipUpgradeHeights, homePath, invCheckPeriod, @@ -191,8 +194,7 @@ func NewSgeApp( // can do so safely. app.mm.SetOrderInitGenesis(orderInitBlockers()...) - app.mm.RegisterInvariants(&app.CrisisKeeper) - app.mm.RegisterRoutes(app.Router(), app.QueryRouter(), encodingConfig.Amino) + app.mm.RegisterInvariants(app.CrisisKeeper) app.configurator = module.NewConfigurator( app.appCodec, @@ -201,6 +203,15 @@ func NewSgeApp( ) app.mm.RegisterServices(app.configurator) + // v47 - no dependecy injection, so register new gRPC services. + //#nosec + autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.mm.Modules)) + reflectionSvc, err := runtimeservices.NewReflectionService() + if err != nil { + panic(err) + } + reflectionv1.RegisterReflectionServiceServer(app.GRPCQueryRouter(), reflectionSvc) + // create the simulation manager and define the order of the modules for deterministic simulations // // NOTE: this is not required apps that don't use the simulator for fuzz testing @@ -363,6 +374,10 @@ func (app *SgeApp) RegisterTendermintService(clientCtx client.Context) { tmservice.RegisterTendermintService(clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, app.Query) } +func (app *SgeApp) RegisterNodeService(clientCtx client.Context) { + nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter()) +} + // configure store loader that checks if version == upgradeHeight and applies store upgrades func (app *SgeApp) setupUpgradeStoreLoaders() { upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() diff --git a/app/app_test.go b/app/app_test.go index 7ebed7a7..34e8609c 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -3,14 +3,11 @@ package app_test import ( "testing" - "github.com/stretchr/testify/require" - - "github.com/tendermint/tendermint/libs/log" - tmdb "github.com/tendermint/tm-db" - - sdksimapp "github.com/cosmos/cosmos-sdk/simapp" - + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" "github.com/sge-network/sge/app" + "github.com/stretchr/testify/require" ) func TestApp(t *testing.T) { @@ -26,7 +23,7 @@ func TestApp(t *testing.T) { "", 0, encCdc, - sdksimapp.EmptyAppOptions{}, + simtestutil.EmptyAppOptions{}, ) } require.NotPanics(t, panicFunc) diff --git a/app/export.go b/app/export.go index c2d99b4d..4b81b539 100644 --- a/app/export.go +++ b/app/export.go @@ -5,8 +5,7 @@ import ( "fmt" "log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" sdk "github.com/cosmos/cosmos-sdk/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" @@ -17,7 +16,7 @@ import ( // ExportAppStateAndValidators exports the state of the application for a genesis // file. func (app *SgeApp) ExportAppStateAndValidators( - forZeroHeight bool, jailAllowedAddrs []string, + forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error) { // as if they could withdraw from the start of the next block ctx := app.NewContext(true, tmproto.Header{Height: app.LastBlockHeight()}) @@ -30,7 +29,7 @@ func (app *SgeApp) ExportAppStateAndValidators( app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs) } - genState := app.mm.ExportGenesis(ctx, app.appCodec) + genState := app.mm.ExportGenesisForModules(ctx, app.appCodec, modulesToExport) appState, err := json.MarshalIndent(genState, "", " ") if err != nil { return servertypes.ExportedApp{}, err diff --git a/app/export_test.go b/app/export_test.go index 768cfc91..ad4ed98d 100644 --- a/app/export_test.go +++ b/app/export_test.go @@ -32,7 +32,7 @@ func TestExport(t *testing.T) { require.NoError(t, err) tApp.Commit() - _, err = tApp.ExportAppStateAndValidators(tc.forZeroHeight, []string{}) + _, err = tApp.ExportAppStateAndValidators(tc.forZeroHeight, []string{}, []string{}) require.NoError(t, err, "ExportAppStateAndValidators should not have an error") }) } diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index d446e49c..f0e47514 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -5,7 +5,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" servertypes "github.com/cosmos/cosmos-sdk/server/types" storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" @@ -13,9 +12,10 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" + consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" - distr "github.com/cosmos/cosmos-sdk/x/distribution" distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" evidencekeeper "github.com/cosmos/cosmos-sdk/x/evidence/keeper" @@ -24,7 +24,6 @@ import ( feegrantkeeper "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/cosmos/cosmos-sdk/x/group" groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper" @@ -39,28 +38,28 @@ import ( "github.com/cosmos/cosmos-sdk/x/upgrade" upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - icahost "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host" - ibc "github.com/cosmos/ibc-go/v5/modules/core" + icahost "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host" + ibc "github.com/cosmos/ibc-go/v7/modules/core" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" // ibc-go - ica "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts" - icacontroller "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller" - icacontrollerkeeper "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller/keeper" - icacontrollertypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller/types" - icahostkeeper "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host/keeper" - icahosttypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host/types" - ibcfee "github.com/cosmos/ibc-go/v5/modules/apps/29-fee" - ibcfeekeeper "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/keeper" - ibcfeetypes "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/types" - "github.com/cosmos/ibc-go/v5/modules/apps/transfer" - ibctransferkeeper "github.com/cosmos/ibc-go/v5/modules/apps/transfer/keeper" - ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - ibcclient "github.com/cosmos/ibc-go/v5/modules/core/02-client" - ibcclienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" - ibcporttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types" - ibchost "github.com/cosmos/ibc-go/v5/modules/core/24-host" - ibckeeper "github.com/cosmos/ibc-go/v5/modules/core/keeper" + ica "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts" + icacontroller "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller" + icacontrollerkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/keeper" + icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" + icahostkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/keeper" + icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types" + ibcfee "github.com/cosmos/ibc-go/v7/modules/apps/29-fee" + ibcfeekeeper "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/keeper" + ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer" + ibctransferkeeper "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper" + ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" mintkeeper "github.com/sge-network/sge/x/mint/keeper" minttypes "github.com/sge-network/sge/x/mint/types" @@ -105,21 +104,22 @@ type AppKeepers struct { memKeys map[string]*storetypes.MemoryStoreKey // SDK keepers - AccountKeeper authkeeper.AccountKeeper - BankKeeper bankkeeper.Keeper - CapabilityKeeper *capabilitykeeper.Keeper - StakingKeeper stakingkeeper.Keeper - SlashingKeeper slashingkeeper.Keeper - DistrKeeper distrkeeper.Keeper - GovKeeper govkeeper.Keeper - CrisisKeeper crisiskeeper.Keeper - UpgradeKeeper upgradekeeper.Keeper - ParamsKeeper paramskeeper.Keeper - EvidenceKeeper evidencekeeper.Keeper - TransferKeeper ibctransferkeeper.Keeper - FeeGrantKeeper feegrantkeeper.Keeper - AuthzKeeper authzkeeper.Keeper - GroupKeeper groupkeeper.Keeper + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + CapabilityKeeper *capabilitykeeper.Keeper + StakingKeeper *stakingkeeper.Keeper + SlashingKeeper slashingkeeper.Keeper + DistrKeeper distrkeeper.Keeper + GovKeeper *govkeeper.Keeper + CrisisKeeper *crisiskeeper.Keeper + UpgradeKeeper *upgradekeeper.Keeper + ParamsKeeper paramskeeper.Keeper + EvidenceKeeper evidencekeeper.Keeper + TransferKeeper ibctransferkeeper.Keeper + FeeGrantKeeper feegrantkeeper.Keeper + AuthzKeeper authzkeeper.Keeper + GroupKeeper groupkeeper.Keeper + ConsensusParamsKeeper consensusparamkeeper.Keeper //// SGE keepers \\\\ BetKeeper *betmodulekeeper.Keeper @@ -165,7 +165,6 @@ func NewAppKeeper( bApp *baseapp.BaseApp, cdc *codec.LegacyAmino, maccPerms map[string][]string, - moduleAccAddress map[string]bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, @@ -182,11 +181,11 @@ func NewAppKeeper( appKeepers.tkeys[paramstypes.TStoreKey], ) + govModAddress := authtypes.NewModuleAddress(govtypes.ModuleName).String() + // set the BaseApp's parameter store - bApp.SetParamStore( - appKeepers.ParamsKeeper.Subspace(baseapp.Paramspace). - WithKeyTable(paramstypes.ConsensusParamsKeyTable()), - ) + appKeepers.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, appKeepers.keys[consensusparamtypes.StoreKey], govModAddress) + bApp.SetParamStore(&appKeepers.ConsensusParamsKeeper) // add capability keeper and ScopeToModule for ibc module appKeepers.CapabilityKeeper = capabilitykeeper.NewKeeper( @@ -196,7 +195,7 @@ func NewAppKeeper( ) // grant capabilities for the ibc and ibc-transfer modules - appKeepers.ScopedIBCKeeper = appKeepers.CapabilityKeeper.ScopeToModule(ibchost.ModuleName) + appKeepers.ScopedIBCKeeper = appKeepers.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName) appKeepers.ScopedTransferKeeper = appKeepers.CapabilityKeeper.ScopeToModule( ibctransfertypes.ModuleName, ) @@ -211,26 +210,28 @@ func NewAppKeeper( // add keepers appKeepers.CrisisKeeper = crisiskeeper.NewKeeper( - appKeepers.GetSubspace(crisistypes.ModuleName), + appCodec, + appKeepers.keys[crisistypes.StoreKey], invCheckPeriod, appKeepers.BankKeeper, authtypes.FeeCollectorName, + govModAddress, ) appKeepers.AccountKeeper = authkeeper.NewAccountKeeper( appCodec, appKeepers.keys[authtypes.StoreKey], - appKeepers.GetSubspace(authtypes.ModuleName), authtypes.ProtoBaseAccount, maccPerms, - sdk.GetConfig().GetBech32AccountAddrPrefix(), + AccountAddressPrefix, + govModAddress, ) appKeepers.BankKeeper = bankkeeper.NewBaseKeeper( appCodec, appKeepers.keys[banktypes.StoreKey], appKeepers.AccountKeeper, - appKeepers.GetSubspace(banktypes.ModuleName), - moduleAccAddress, + BlockedAddresses(maccPerms), + govModAddress, ) appKeepers.AuthzKeeper = authzkeeper.NewKeeper( appKeepers.keys[authzkeeper.StoreKey], @@ -258,7 +259,7 @@ func NewAppKeeper( appKeepers.keys[stakingtypes.StoreKey], appKeepers.AccountKeeper, appKeepers.BankKeeper, - appKeepers.GetSubspace(stakingtypes.ModuleName), + govModAddress, ) appKeepers.MintKeeper = *mintkeeper.NewKeeper( @@ -276,22 +277,23 @@ func NewAppKeeper( appKeepers.DistrKeeper = distrkeeper.NewKeeper( appCodec, appKeepers.keys[distrtypes.StoreKey], - appKeepers.GetSubspace(distrtypes.ModuleName), appKeepers.AccountKeeper, appKeepers.BankKeeper, appKeepers.StakingKeeper, authtypes.FeeCollectorName, + govModAddress, ) appKeepers.SlashingKeeper = slashingkeeper.NewKeeper( appCodec, + cdc, appKeepers.keys[slashingtypes.StoreKey], appKeepers.StakingKeeper, - appKeepers.GetSubspace(slashingtypes.ModuleName), + govModAddress, ) // register the staking hooks // NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks - appKeepers.StakingKeeper = *appKeepers.StakingKeeper.SetHooks( + appKeepers.StakingKeeper.SetHooks( stakingtypes.NewMultiStakingHooks( appKeepers.DistrKeeper.Hooks(), appKeepers.SlashingKeeper.Hooks(), @@ -311,8 +313,8 @@ func NewAppKeeper( // Create IBC Keeper appKeepers.IBCKeeper = ibckeeper.NewKeeper( appCodec, - appKeepers.keys[ibchost.StoreKey], - appKeepers.GetSubspace(ibchost.ModuleName), + appKeepers.keys[ibcexported.StoreKey], + appKeepers.GetSubspace(ibcexported.ModuleName), appKeepers.StakingKeeper, appKeepers.UpgradeKeeper, appKeepers.ScopedIBCKeeper, @@ -323,7 +325,6 @@ func NewAppKeeper( govRouter. AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(appKeepers.ParamsKeeper)). - AddRoute(distrtypes.RouterKey, distr.NewCommunityPoolSpendProposalHandler(appKeepers.DistrKeeper)). AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(appKeepers.UpgradeKeeper)). AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(appKeepers.IBCKeeper.ClientKeeper)) @@ -332,23 +333,23 @@ func NewAppKeeper( appKeepers.GovKeeper = govkeeper.NewKeeper( appCodec, appKeepers.keys[govtypes.StoreKey], - appKeepers.GetSubspace(govtypes.ModuleName), appKeepers.AccountKeeper, appKeepers.BankKeeper, appKeepers.StakingKeeper, - govRouter, bApp.MsgServiceRouter(), govConfig, + govModAddress, ) // IBC Fee Module keeper appKeepers.IBCFeeKeeper = ibcfeekeeper.NewKeeper( appCodec, appKeepers.keys[ibcfeetypes.StoreKey], - appKeepers.GetSubspace(ibcfeetypes.ModuleName), appKeepers.IBCKeeper.ChannelKeeper, // more middlewares can be added in future appKeepers.IBCKeeper.ChannelKeeper, - &appKeepers.IBCKeeper.PortKeeper, appKeepers.AccountKeeper, appKeepers.BankKeeper, + &appKeepers.IBCKeeper.PortKeeper, + appKeepers.AccountKeeper, + appKeepers.BankKeeper, ) appKeepers.TransferKeeper = ibctransferkeeper.NewKeeper( @@ -389,7 +390,7 @@ func NewAppKeeper( appKeepers.EvidenceKeeper = *evidencekeeper.NewKeeper( appCodec, appKeepers.keys[evidencetypes.StoreKey], - &appKeepers.StakingKeeper, + appKeepers.StakingKeeper, appKeepers.SlashingKeeper, ) @@ -574,10 +575,10 @@ func initParamsKeeper(appCodec codec.BinaryCodec, paramsKeeper.Subspace(minttypes.ModuleName) paramsKeeper.Subspace(distrtypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) - paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) + paramsKeeper.Subspace(govtypes.ModuleName) paramsKeeper.Subspace(crisistypes.ModuleName) paramsKeeper.Subspace(ibctransfertypes.ModuleName) - paramsKeeper.Subspace(ibchost.ModuleName) + paramsKeeper.Subspace(ibcexported.ModuleName) paramsKeeper.Subspace(icacontrollertypes.SubModuleName) paramsKeeper.Subspace(icahosttypes.SubModuleName) paramsKeeper.Subspace(betmoduletypes.ModuleName) @@ -590,3 +591,26 @@ func initParamsKeeper(appCodec codec.BinaryCodec, return paramsKeeper } + +// BlockedAddresses returns all the app's blocked account addresses. +func BlockedAddresses(maccPerms map[string][]string) map[string]bool { + modAccAddrs := make(map[string]bool) + for acc := range GetMaccPerms(maccPerms) { + modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true + } + + // allow the following addresses to receive funds + delete(modAccAddrs, authtypes.NewModuleAddress(govtypes.ModuleName).String()) + + return modAccAddrs +} + +// GetMaccPerms returns a copy of the module account permissions +func GetMaccPerms(maccPerms map[string][]string) map[string][]string { + dupMaccPerms := make(map[string][]string) + for k, v := range maccPerms { + dupMaccPerms[k] = v + } + + return dupMaccPerms +} diff --git a/app/keepers/keys.go b/app/keepers/keys.go index 4d9c427d..e729f34f 100644 --- a/app/keepers/keys.go +++ b/app/keepers/keys.go @@ -7,6 +7,8 @@ import ( authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" "github.com/cosmos/cosmos-sdk/x/feegrant" @@ -16,12 +18,11 @@ import ( slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - - icacontrollertypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller/types" - icahosttypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host/types" - ibcfeetypes "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/types" - ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - ibchost "github.com/cosmos/ibc-go/v5/modules/core/24-host" + icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" + icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types" + ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" + ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" betmoduletypes "github.com/sge-network/sge/x/bet/types" housemoduletypes "github.com/sge-network/sge/x/house/types" @@ -36,16 +37,20 @@ import ( _ "github.com/cosmos/cosmos-sdk/client/docs/statik" ) +const ( + // AccountAddressPrefix prefix used for generating account address + AccountAddressPrefix = "sge" +) + func (appKeepers *AppKeepers) GenerateKeys() { // Define what keys will be used in the cosmos-sdk key/value store. // Cosmos-SDK modules each have a "key" that allows the application to reference what they've stored on the chain. appKeepers.keys = sdk.NewKVStoreKeys( - authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, + authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, - govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, - evidencetypes.StoreKey, ibctransfertypes.StoreKey, - capabilitytypes.StoreKey, feegrant.StoreKey, authzkeeper.StoreKey, group.StoreKey, - ibcfeetypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, + govtypes.StoreKey, paramstypes.StoreKey, consensusparamtypes.StoreKey, upgradetypes.StoreKey, + feegrant.StoreKey, evidencetypes.StoreKey, capabilitytypes.StoreKey, authzkeeper.StoreKey, group.StoreKey, + ibcexported.StoreKey, ibctransfertypes.StoreKey, ibcfeetypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, orderbookmoduletypes.StoreKey, betmoduletypes.StoreKey, marketmoduletypes.StoreKey, diff --git a/app/modules.go b/app/modules.go index fd2ded30..1337f532 100644 --- a/app/modules.go +++ b/app/modules.go @@ -35,15 +35,14 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/cosmos/cosmos-sdk/x/upgrade" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - - ica "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts" - icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" - ibcfee "github.com/cosmos/ibc-go/v5/modules/apps/29-fee" - ibcfeetypes "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/types" - "github.com/cosmos/ibc-go/v5/modules/apps/transfer" - ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - ibc "github.com/cosmos/ibc-go/v5/modules/core" - ibchost "github.com/cosmos/ibc-go/v5/modules/core/24-host" + ica "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + ibcfee "github.com/cosmos/ibc-go/v7/modules/apps/29-fee" + ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer" + ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + ibc "github.com/cosmos/ibc-go/v7/modules/core" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" sgeappparams "github.com/sge-network/sge/app/params" betmodule "github.com/sge-network/sge/x/bet" @@ -53,7 +52,7 @@ import ( marketmodule "github.com/sge-network/sge/x/market" marketmoduletypes "github.com/sge-network/sge/x/market/types" mintmodule "github.com/sge-network/sge/x/mint" - minttypes "github.com/sge-network/sge/x/mint/types" + mintmoduletypes "github.com/sge-network/sge/x/mint/types" orderbookmodule "github.com/sge-network/sge/x/orderbook" orderbookmoduletypes "github.com/sge-network/sge/x/orderbook/types" ovmmodule "github.com/sge-network/sge/x/ovm" @@ -72,7 +71,7 @@ import ( var mAccPerms = map[string][]string{ authtypes.FeeCollectorName: nil, distrtypes.ModuleName: nil, - minttypes.ModuleName: {authtypes.Minter}, + mintmoduletypes.ModuleName: {authtypes.Minter}, stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking}, stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking}, govtypes.ModuleName: {authtypes.Burner}, @@ -94,7 +93,7 @@ var mAccPerms = map[string][]string{ // and genesis verification. var ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, - genutil.AppModuleBasic{}, + genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, @@ -139,12 +138,12 @@ func appModules( app.BaseApp.DeliverTx, encodingConfig.TxConfig, ), - auth.NewAppModule(appCodec, app.AccountKeeper, nil), + auth.NewAppModule(appCodec, app.AccountKeeper, nil, app.GetSubspace(authtypes.ModuleName)), vesting.NewAppModule(app.AccountKeeper, app.BankKeeper), - bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper), - capability.NewAppModule(appCodec, *app.CapabilityKeeper), - crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants), - gov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper), + bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), + capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), + crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), + gov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(govtypes.ModuleName)), mintmodule.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, app.BankKeeper), slashing.NewAppModule( appCodec, @@ -152,6 +151,7 @@ func appModules( app.AccountKeeper, app.BankKeeper, app.StakingKeeper, + app.GetSubspace(slashingtypes.ModuleName), ), distr.NewAppModule( appCodec, @@ -159,8 +159,9 @@ func appModules( app.AccountKeeper, app.BankKeeper, app.StakingKeeper, + app.GetSubspace(distrtypes.ModuleName), ), - staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper), + staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)), upgrade.NewAppModule(app.UpgradeKeeper), evidence.NewAppModule(app.EvidenceKeeper), feegrantmodule.NewAppModule( @@ -210,9 +211,9 @@ func simulationModules( appCodec := encodingConfig.Marshaler return []module.AppModuleSimulation{ - auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts), - bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper), - capability.NewAppModule(appCodec, *app.CapabilityKeeper), + auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)), + bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), + capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), feegrantmodule.NewAppModule( appCodec, app.AccountKeeper, @@ -220,15 +221,16 @@ func simulationModules( app.FeeGrantKeeper, app.interfaceRegistry, ), - gov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper), + gov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(govtypes.ModuleName)), mintmodule.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, nil), - staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper), + staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)), distr.NewAppModule( appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, + app.GetSubspace(distrtypes.ModuleName), ), slashing.NewAppModule( appCodec, @@ -236,6 +238,7 @@ func simulationModules( app.AccountKeeper, app.BankKeeper, app.StakingKeeper, + app.GetSubspace(stakingtypes.ModuleName), ), params.NewAppModule(app.ParamsKeeper), evidence.NewAppModule(app.EvidenceKeeper), @@ -269,13 +272,13 @@ func orderBeginBlockers() []string { // upgrades should be run first upgradetypes.ModuleName, capabilitytypes.ModuleName, - minttypes.ModuleName, + mintmoduletypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName, evidencetypes.ModuleName, stakingtypes.ModuleName, ibctransfertypes.ModuleName, - ibchost.ModuleName, + ibcexported.ModuleName, authtypes.ModuleName, banktypes.ModuleName, govtypes.ModuleName, @@ -303,14 +306,14 @@ func orderEndBlockers() []string { crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName, - ibchost.ModuleName, + ibcexported.ModuleName, ibctransfertypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, banktypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName, - minttypes.ModuleName, + mintmoduletypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, @@ -340,8 +343,8 @@ func orderInitBlockers() []string { stakingtypes.ModuleName, slashingtypes.ModuleName, govtypes.ModuleName, - minttypes.ModuleName, - ibchost.ModuleName, + mintmoduletypes.ModuleName, + ibcexported.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, diff --git a/app/prefix.go b/app/prefix.go index ec0a97e7..bf8413fb 100644 --- a/app/prefix.go +++ b/app/prefix.go @@ -1,41 +1,38 @@ package app import ( + sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/sge-network/sge/app/keepers" "github.com/sge-network/sge/app/params" ) -const ( - // AccountAddressPrefix prefix used for generating account address - AccountAddressPrefix = "sge" -) - var ( // AccountPubKeyPrefix used for generating public key - AccountPubKeyPrefix = AccountAddressPrefix + "pub" + AccountPubKeyPrefix = keepers.AccountAddressPrefix + "pub" // ValidatorAddressPrefix used for generating validator address - ValidatorAddressPrefix = AccountAddressPrefix + "valoper" + ValidatorAddressPrefix = keepers.AccountAddressPrefix + "valoper" // ValidatorPubKeyPrefix used for generating validator public key - ValidatorPubKeyPrefix = AccountAddressPrefix + "valoperpub" + ValidatorPubKeyPrefix = keepers.AccountAddressPrefix + "valoperpub" // ConsNodeAddressPrefix used for generating consensus node address - ConsNodeAddressPrefix = AccountAddressPrefix + "valcons" + ConsNodeAddressPrefix = keepers.AccountAddressPrefix + "valcons" // ConsNodePubKeyPrefix used for generating consensus node public key - ConsNodePubKeyPrefix = AccountAddressPrefix + "valconspub" + ConsNodePubKeyPrefix = keepers.AccountAddressPrefix + "valconspub" ) // SetConfig sets prefixes configuration func SetConfig() { config := sdk.GetConfig() - config.SetBech32PrefixForAccount(AccountAddressPrefix, AccountPubKeyPrefix) + config.SetBech32PrefixForAccount(keepers.AccountAddressPrefix, AccountPubKeyPrefix) config.SetBech32PrefixForValidator(ValidatorAddressPrefix, ValidatorPubKeyPrefix) config.SetBech32PrefixForConsensusNode(ConsNodeAddressPrefix, ConsNodePubKeyPrefix) - err := sdk.RegisterDenom(params.HumanCoinUnit, sdk.OneDec()) + err := sdk.RegisterDenom(params.HumanCoinUnit, sdkmath.LegacyOneDec()) if err != nil { panic(err) } - err = sdk.RegisterDenom(params.BaseCoinUnit, sdk.NewDecWithPrec(1, params.SGEExponent)) + err = sdk.RegisterDenom(params.BaseCoinUnit, sdkmath.LegacyNewDecWithPrec(1, params.SGEExponent)) if err != nil { panic(err) } diff --git a/app/sim_test.go b/app/sim_test.go index 65918d7b..5bbb725e 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -6,20 +6,17 @@ import ( "os" "testing" - "github.com/stretchr/testify/require" - - "github.com/tendermint/tendermint/libs/log" - "github.com/tendermint/tendermint/libs/rand" - dbm "github.com/tendermint/tm-db" - + dbm "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + "github.com/cometbft/cometbft/libs/rand" "github.com/cosmos/cosmos-sdk/baseapp" - sdksimapp "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/helpers" "github.com/cosmos/cosmos-sdk/store" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" simulation2 "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - + simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli" "github.com/sge-network/sge/app" + "github.com/stretchr/testify/require" ) // SimAppChainID hardcoded chainID for simulation @@ -28,13 +25,20 @@ const ( ) func init() { - sdksimapp.GetSimulatorFlags() + simcli.GetSimulatorFlags() } // Profile with: // /usr/local/go/bin/go test -benchmem -run=^$ github.com/cosmos/cosmos-sdk/SgeApp -bench ^BenchmarkFullAppSimulation$ -Commit=true -cpuprofile cpu.out func BenchmarkFullAppSimulation(b *testing.B) { - config, db, dir, logger, _, err := sdksimapp.SetupSimulation("goleveldb-app-sim", "Simulation") + config := simcli.NewConfigFromFlags() + db, dir, logger, _, err := simtestutil.SetupSimulation( + config, + "goleveldb-app-sim", + "Simulation", + simcli.FlagVerboseValue, + simcli.FlagEnabledValue, + ) if err != nil { b.Fatalf("simulation setup failed: %s", err.Error()) } @@ -47,16 +51,16 @@ func BenchmarkFullAppSimulation(b *testing.B) { } }() - app := app.NewSgeApp( + sApp := app.NewSgeApp( logger, db, nil, true, map[int64]bool{}, app.DefaultNodeHome, - sdksimapp.FlagPeriodValue, + simcli.FlagPeriodValue, app.MakeEncodingConfig(), - sdksimapp.EmptyAppOptions{}, + simtestutil.EmptyAppOptions{}, interBlockCacheOpt(), ) @@ -64,17 +68,21 @@ func BenchmarkFullAppSimulation(b *testing.B) { _, simParams, simErr := simulation.SimulateFromSeed( b, os.Stdout, - app.BaseApp, - sdksimapp.AppStateFn(app.AppCodec(), app.SimulationManager()), + sApp.BaseApp, + simtestutil.AppStateFn( + sApp.AppCodec(), + sApp.SimulationManager(), + app.NewDefaultGenesisState(), + ), simulation2.RandomAccounts, // Replace with own random account function if using keys other than secp256k1 - sdksimapp.SimulationOperations(app, app.AppCodec(), config), - app.ModuleAccountAddrs(), + simtestutil.SimulationOperations(sApp, sApp.AppCodec(), config), + sApp.ModuleAccountAddrs(), config, - app.AppCodec(), + sApp.AppCodec(), ) // export state and simParams before the simulation error is checked - if err = sdksimapp.CheckExportSimulation(app, config, simParams); err != nil { + if err = simtestutil.CheckExportSimulation(sApp, config, simParams); err != nil { b.Fatal(err) } @@ -83,7 +91,7 @@ func BenchmarkFullAppSimulation(b *testing.B) { } if config.Commit { - sdksimapp.PrintStats(db) + simtestutil.PrintStats(db) } } @@ -94,16 +102,16 @@ func interBlockCacheOpt() func(*baseapp.BaseApp) { } func TestAppStateDeterminism(t *testing.T) { - if !sdksimapp.FlagEnabledValue { + if !simcli.FlagEnabledValue { t.Skip("skipping application simulation") } - config := sdksimapp.NewConfigFromFlags() + config := simcli.NewConfigFromFlags() config.InitialBlockHeight = 1 config.ExportParamsPath = "" config.OnOperation = false config.AllInvariants = false - config.ChainID = helpers.SimAppChainID + config.ChainID = SimAppChainID numSeeds := 3 numTimesToRunPerSeed := 5 @@ -114,23 +122,23 @@ func TestAppStateDeterminism(t *testing.T) { for j := 0; j < numTimesToRunPerSeed; j++ { var logger log.Logger - if sdksimapp.FlagVerboseValue { + if simcli.FlagVerboseValue { logger = log.TestingLogger() } else { logger = log.NewNopLogger() } db := dbm.NewMemDB() - app := app.NewSgeApp( + sApp := app.NewSgeApp( logger, db, nil, true, map[int64]bool{}, app.DefaultNodeHome, - sdksimapp.FlagPeriodValue, + simcli.FlagPeriodValue, app.MakeEncodingConfig(), - sdksimapp.EmptyAppOptions{}, + simtestutil.EmptyAppOptions{}, interBlockCacheOpt(), ) @@ -142,21 +150,25 @@ func TestAppStateDeterminism(t *testing.T) { _, _, err := simulation.SimulateFromSeed( t, os.Stdout, - app.BaseApp, - sdksimapp.AppStateFn(app.AppCodec(), app.SimulationManager()), + sApp.BaseApp, + simtestutil.AppStateFn( + sApp.AppCodec(), + sApp.SimulationManager(), + app.NewDefaultGenesisState(), + ), simulation2.RandomAccounts, // Replace with own random account function if using keys other than secp256k1 - sdksimapp.SimulationOperations(app, app.AppCodec(), config), - app.ModuleAccountAddrs(), + simtestutil.SimulationOperations(sApp, sApp.AppCodec(), config), + sApp.ModuleAccountAddrs(), config, - app.AppCodec(), + sApp.AppCodec(), ) require.NoError(t, err) if config.Commit { - sdksimapp.PrintStats(db) + simtestutil.PrintStats(db) } - appHash := app.LastCommitID().Hash + appHash := sApp.LastCommitID().Hash appHashList[j] = appHash if j != 0 { diff --git a/app/upgrades/v1/consts.go b/app/upgrades/v1/consts.go index b39ad681..edc284ae 100644 --- a/app/upgrades/v1/consts.go +++ b/app/upgrades/v1/consts.go @@ -4,7 +4,7 @@ import ( store "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/x/group" - ibcfeetypes "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/types" + ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" "github.com/sge-network/sge/app/upgrades" ) diff --git a/app/upgrades/v1/upgrades.go b/app/upgrades/v1/upgrades.go index 30cfff98..9d2e44eb 100644 --- a/app/upgrades/v1/upgrades.go +++ b/app/upgrades/v1/upgrades.go @@ -1,6 +1,7 @@ package v1 import ( + sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" @@ -13,7 +14,7 @@ import ( func setCommissionRate(stakingKeeper *stakingkeeper.Keeper, ctx sdk.Context) { // the minimal commission rate of 5% (0.05) // (default is needed to be set because of SDK store migrations that set the param) - stakingtypes.DefaultMinCommissionRate = sdk.NewDecWithPrec(5, 2) + stakingtypes.DefaultMinCommissionRate = sdkmath.LegacyNewDecWithPrec(5, 2) stakingKeeper.IterateValidators(ctx, func(index int64, val stakingtypes.ValidatorI) (stop bool) { if val.GetCommission().LT(stakingtypes.DefaultMinCommissionRate) { @@ -39,7 +40,7 @@ func CreateUpgradeHandler( keepers *keepers.AppKeepers, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - setCommissionRate(&keepers.StakingKeeper, ctx) + setCommissionRate(keepers.StakingKeeper, ctx) return mm.RunMigrations(ctx, configurator, fromVM) } diff --git a/app/upgrades/v2/upgrades.go b/app/upgrades/v2/upgrades.go index e43a64d4..0400ef84 100644 --- a/app/upgrades/v2/upgrades.go +++ b/app/upgrades/v2/upgrades.go @@ -22,7 +22,7 @@ func CreateUpgradeHandler( var minDeposit sdkmath.Int housePS.Get(ctx, []byte("MinDeposit"), &minDeposit) - var houseParticipationFee sdk.Dec + var houseParticipationFee sdkmath.LegacyDec housePS.Get(ctx, []byte("HouseParticipationFee"), &houseParticipationFee) p := housetypes.NewParams( diff --git a/app/upgrades/v3/consts.go b/app/upgrades/v3/consts.go index 13388a3b..2000f358 100644 --- a/app/upgrades/v3/consts.go +++ b/app/upgrades/v3/consts.go @@ -1,7 +1,7 @@ package v3 import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" "github.com/sge-network/sge/app/upgrades" ) @@ -11,11 +11,11 @@ const UpgradeName = "v1.2.0" // Expedite governance params var ( // DefaultMinExpeditedDepositTokens is the default minimum deposit required for expedited proposals. - DefaultMinExpeditedDepositTokens = sdk.NewInt(50000000000) + DefaultMinExpeditedDepositTokens = sdkmath.NewInt(50000000000) // DefaultExpeditedQuorum is the default quorum percentage required for expedited proposals. - DefaultExpeditedQuorum = sdk.NewDecWithPrec(750, 3) + DefaultExpeditedQuorum = sdkmath.LegacyNewDecWithPrec(750, 3) // DefaultExpeditedThreshold is the default voting threshold percentage required for expedited proposals. - DefaultExpeditedThreshold = sdk.NewDecWithPrec(750, 3) + DefaultExpeditedThreshold = sdkmath.LegacyNewDecWithPrec(750, 3) ) var Upgrade = upgrades.Upgrade{ diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index d599db8b..9f702038 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -14,22 +14,23 @@ const DefaultExpeditedPeriod time.Duration = time.Hour * 24 func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, - keepers *keepers.AppKeepers, + _ *keepers.AppKeepers, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - depositParams := keepers.GovKeeper.GetDepositParams(ctx) - depositParams.MinExpeditedDeposit = sdk.NewCoins(sdk.NewCoin("usge", DefaultMinExpeditedDepositTokens)) - keepers.GovKeeper.SetDepositParams(ctx, depositParams) + // not applicable anymore + // depositParams := keepers.GovKeeper.GetDepositParams(ctx) + // depositParams.MinExpeditedDeposit = sdk.NewCoins(sdk.NewCoin("usge", DefaultMinExpeditedDepositTokens)) + // keepers.GovKeeper.SetDepositParams(ctx, depositParams) - tallyParams := keepers.GovKeeper.GetTallyParams(ctx) - tallyParams.ExpeditedThreshold = DefaultExpeditedThreshold.String() - tallyParams.ExpeditedQuorum = DefaultExpeditedQuorum.String() - keepers.GovKeeper.SetTallyParams(ctx, tallyParams) + // tallyParams := keepers.GovKeeper.GetTallyParams(ctx) + // tallyParams.ExpeditedThreshold = DefaultExpeditedThreshold.String() + // tallyParams.ExpeditedQuorum = DefaultExpeditedQuorum.String() + // keepers.GovKeeper.SetTallyParams(ctx, tallyParams) - votingParams := keepers.GovKeeper.GetVotingParams(ctx) - expeditedPeriod := DefaultExpeditedPeriod - votingParams.ExpeditedVotingPeriod = &expeditedPeriod - keepers.GovKeeper.SetVotingParams(ctx, votingParams) + // votingParams := keepers.GovKeeper.GetVotingParams(ctx) + // expeditedPeriod := DefaultExpeditedPeriod + // votingParams.ExpeditedVotingPeriod = &expeditedPeriod + // keepers.GovKeeper.SetVotingParams(ctx, votingParams) return mm.RunMigrations(ctx, configurator, fromVM) } diff --git a/app/upgrades/v8/consts.go b/app/upgrades/v8/consts.go new file mode 100644 index 00000000..eb4a0578 --- /dev/null +++ b/app/upgrades/v8/consts.go @@ -0,0 +1,24 @@ +package v8 + +import ( + store "github.com/cosmos/cosmos-sdk/store/types" + consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" + + "github.com/sge-network/sge/app/upgrades" +) + +// UpgradeName defines the on-chain upgrade name for the v1.6.0 upgrade. +const UpgradeName = "v1.6.0" + +var Upgrade = upgrades.Upgrade{ + UpgradeName: UpgradeName, + CreateUpgradeHandler: CreateUpgradeHandler, + StoreUpgrades: store.StoreUpgrades{ + Added: []string{ + crisistypes.ModuleName, + consensustypes.ModuleName, + }, + Deleted: []string{}, + }, +} diff --git a/app/upgrades/v8/upgrades.go b/app/upgrades/v8/upgrades.go new file mode 100644 index 00000000..6a3b143b --- /dev/null +++ b/app/upgrades/v8/upgrades.go @@ -0,0 +1,119 @@ +package v8 + +import ( + sdkmath "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" + distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + + icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" + icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types" + ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + exported "github.com/cosmos/ibc-go/v7/modules/core/exported" + + "github.com/sge-network/sge/app/keepers" + betmoduletypes "github.com/sge-network/sge/x/bet/types" + housemoduletypes "github.com/sge-network/sge/x/house/types" + marketmoduletypes "github.com/sge-network/sge/x/market/types" + minttypes "github.com/sge-network/sge/x/mint/types" + orderbookmoduletypes "github.com/sge-network/sge/x/orderbook/types" + ovmmoduletypes "github.com/sge-network/sge/x/ovm/types" + rewardmoduletypes "github.com/sge-network/sge/x/reward/types" + subaccountmoduletypes "github.com/sge-network/sge/x/subaccount/types" +) + +//nolint:staticcheck +func CreateUpgradeHandler( + mm *module.Manager, + configurator module.Configurator, + k *keepers.AppKeepers, +) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + // https://github.com/cosmos/cosmos-sdk/pull/12363/files + // Set param key table for params module migration + for _, subspace := range k.ParamsKeeper.GetSubspaces() { + subspace := subspace + + var keyTable paramstypes.KeyTable + switch subspace.Name() { + case authtypes.ModuleName: + keyTable = authtypes.ParamKeyTable() + case banktypes.ModuleName: + keyTable = banktypes.ParamKeyTable() + case stakingtypes.ModuleName: + keyTable = stakingtypes.ParamKeyTable() + + // case minttypes.ModuleName: + // keyTable = minttypes.ParamKeyTable() + case distrtypes.ModuleName: + keyTable = distrtypes.ParamKeyTable() + case slashingtypes.ModuleName: + keyTable = slashingtypes.ParamKeyTable() + case govtypes.ModuleName: + keyTable = govv1.ParamKeyTable() + case crisistypes.ModuleName: + keyTable = crisistypes.ParamKeyTable() + + // ibc types + case ibctransfertypes.ModuleName: + keyTable = ibctransfertypes.ParamKeyTable() + case icahosttypes.SubModuleName: + keyTable = icahosttypes.ParamKeyTable() + case icacontrollertypes.SubModuleName: + keyTable = icacontrollertypes.ParamKeyTable() + + // sge modules + case betmoduletypes.ModuleName: + keyTable = betmoduletypes.ParamKeyTable() + case housemoduletypes.ModuleName: + keyTable = housemoduletypes.ParamKeyTable() + case marketmoduletypes.ModuleName: + keyTable = marketmoduletypes.ParamKeyTable() + case minttypes.ModuleName: + keyTable = minttypes.ParamKeyTable() + case orderbookmoduletypes.ModuleName: + keyTable = orderbookmoduletypes.ParamKeyTable() + case ovmmoduletypes.ModuleName: + keyTable = ovmmoduletypes.ParamKeyTable() + case subaccountmoduletypes.ModuleName: + keyTable = subaccountmoduletypes.ParamKeyTable() + case rewardmoduletypes.ModuleName: + keyTable = rewardmoduletypes.ParamKeyTable() + } + + if !subspace.HasKeyTable() { + subspace.WithKeyTable(keyTable) + } + } + + // Migrate Tendermint consensus parameters from x/params module to a + // dedicated x/consensus module. + baseAppLegacySS := k.ParamsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramstypes.ConsensusParamsKeyTable()) + baseapp.MigrateParams(ctx, baseAppLegacySS, &k.ConsensusParamsKeeper) + + // https://github.com/cosmos/ibc-go/blob/v7.1.0/docs/migrations/v7-to-v7_1.md + // explicitly update the IBC 02-client params, adding the localhost client type + params := k.IBCKeeper.ClientKeeper.GetParams(ctx) + params.AllowedClients = append(params.AllowedClients, exported.Localhost) + k.IBCKeeper.ClientKeeper.SetParams(ctx, params) + + // update gov params to use a 20% initial deposit ratio, allowing us to remote the ante handler + govParams := k.GovKeeper.GetParams(ctx) + govParams.MinInitialDepositRatio = sdkmath.LegacyNewDec(20).Quo(sdkmath.LegacyNewDec(100)).String() + if err := k.GovKeeper.SetParams(ctx, govParams); err != nil { + return nil, err + } + + return mm.RunMigrations(ctx, configurator, fromVM) + } +} diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 00000000..aaa7db84 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - name: gocosmos + out: . + opt: plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types + - name: grpc-gateway + out: . + opt: logtostderr=true,allow_colon_final_segments=true \ No newline at end of file diff --git a/buf.work.yaml b/buf.work.yaml new file mode 100644 index 00000000..7a18eb02 --- /dev/null +++ b/buf.work.yaml @@ -0,0 +1,3 @@ +version: v1 +directories: + - proto \ No newline at end of file diff --git a/cmd/sged/cmd/root.go b/cmd/sged/cmd/root.go index 3903f904..f16a0b09 100644 --- a/cmd/sged/cmd/root.go +++ b/cmd/sged/cmd/root.go @@ -8,10 +8,11 @@ import ( "github.com/spf13/cast" "github.com/spf13/cobra" - tmcfg "github.com/tendermint/tendermint/config" - tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/tendermint/tendermint/libs/log" - dbm "github.com/tendermint/tm-db" + dbm "github.com/cometbft/cometbft-db" + tmcfg "github.com/cometbft/cometbft/config" + tmcli "github.com/cometbft/cometbft/libs/cli" + "github.com/cometbft/cometbft/libs/log" + tmtypes "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" @@ -31,7 +32,9 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/cosmos/cosmos-sdk/x/crisis" + "github.com/cosmos/cosmos-sdk/x/genutil" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/sge-network/sge/app" "github.com/sge-network/sge/app/params" @@ -85,9 +88,14 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { cfg := sdk.GetConfig() cfg.Seal() + gentxModule, ok := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic) + if !ok { + panic("genutil AppModuleBasic assertion failed") + } + rootCmd.AddCommand( genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome), - genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome), + genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator), genutilcli.GenTxCmd( app.ModuleBasics, encodingConfig.TxConfig, @@ -190,6 +198,18 @@ func newApp( panic(err) } + homeDir := cast.ToString(appOpts.Get(flags.FlagHome)) + chainID := cast.ToString(appOpts.Get(flags.FlagChainID)) + if chainID == "" { + // fallback to genesis chain-id + appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homeDir, "config", "genesis.json")) + if err != nil { + panic(err) + } + + chainID = appGenesis.ChainID + } + snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots") snapshotDB, err := dbm.NewGoLevelDB("metadata", snapshotDir) if err != nil { @@ -222,6 +242,9 @@ func newApp( Interval: cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval)), KeepRecent: cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent)), }), + baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))), + baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))), + baseapp.SetChainID(chainID), ) } @@ -233,6 +256,7 @@ func createSimappAndExport( forZeroHeight bool, jailAllowedAddrs []string, appOpts servertypes.AppOptions, + modulesToExport []string, ) (servertypes.ExportedApp, error) { encCfg := app.MakeEncodingConfig() // Ideally, we would reuse the one created by NewRootCmd. encCfg.Marshaler = codec.NewProtoCodec(encCfg.InterfaceRegistry) @@ -257,5 +281,5 @@ func createSimappAndExport( sgeApp = app.NewSgeApp(logger, db, traceStore, true, map[int64]bool{}, "", cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), encCfg, appOpts) } - return sgeApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs) + return sgeApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) } diff --git a/docs/specs/Mint/04_Begin_Block.md b/docs/specs/Mint/04_Begin_Block.md index b87eaf97..d2638a26 100644 --- a/docs/specs/Mint/04_Begin_Block.md +++ b/docs/specs/Mint/04_Begin_Block.md @@ -13,7 +13,7 @@ func (m Minter) CurrentPhase(params Params, currentBlock int64) (Phase, int) { return params.GetPhaseAtStep(1), 1 } - cumulativeBlock := sdk.NewDec(0) + cumulativeBlock := sdkmath.LegacyNewDec(0) var currentStep int var found bool @@ -26,7 +26,7 @@ func (m Minter) CurrentPhase(params Params, currentBlock int64) (Phase, int) { // if the current block is less than or equal to cummulative blocks // this means that we are in the i+1 step which is set in above line - if sdk.NewDec(currentBlock).LTE(cumulativeBlock) { + if sdkmath.LegacyNewDec(currentBlock).LTE(cumulativeBlock) { found = true // it is the current phase // so there is no need for furthur phase blocks check @@ -77,7 +77,7 @@ Since the SGE-Network chain is predominantly reliant on phases for its inflation ```go // NextPhaseProvisions returns the phase provisions based on current total // supply and inflation rate. -func (m Minter) NextPhaseProvisions(totalSupply sdkmath.Int, excludeAmount sdkmath.Int, phase Phase) sdk.Dec { +func (m Minter) NextPhaseProvisions(totalSupply sdkmath.Int, excludeAmount sdkmath.Int, phase Phase) sdkmath.LegacyDec { // calculate annual provisions as normal annualProvisions := m.Inflation.MulInt(totalSupply.Sub(excludeAmount)) @@ -99,7 +99,7 @@ Calculate the provisions generated for each block based on current phase provisi ```go // BlockProvisions returns the provisions for a block based on the phase // provisions rate. -func (m Minter) BlockProvisions(params Params, phaseStep int) (sdk.Coin, sdk.Dec) { +func (m Minter) BlockProvisions(params Params, phaseStep int) (sdk.Coin, sdkmath.LegacyDec) { // get total blocks in this phase blocksPerPhase := params.getPhaseBlocks(phaseStep).TruncateDec() diff --git a/go.mod b/go.mod index a884b7bd..c2a51014 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,16 @@ module github.com/sge-network/sge go 1.21 require ( - cosmossdk.io/errors v1.0.0 + cosmossdk.io/api v0.3.1 + cosmossdk.io/errors v1.0.1 cosmossdk.io/math v1.2.0 - github.com/cosmos/cosmos-sdk v0.46.16 - github.com/cosmos/gogoproto v1.4.11 - github.com/cosmos/ibc-go/v5 v5.3.1 - github.com/gogo/protobuf v1.3.3 + cosmossdk.io/simapp v0.0.0-20230831152633-2e9e5d6eea24 + github.com/cometbft/cometbft v0.37.4 + github.com/cometbft/cometbft-db v0.8.0 + github.com/cosmos/cosmos-proto v1.0.0-beta.2 + github.com/cosmos/cosmos-sdk v0.47.8 + github.com/cosmos/gogoproto v1.4.10 + github.com/cosmos/ibc-go/v7 v7.3.2 github.com/golang-jwt/jwt v3.2.2+incompatible github.com/golang-jwt/jwt/v4 v4.5.0 github.com/golang/protobuf v1.5.3 @@ -16,15 +20,14 @@ require ( github.com/google/uuid v1.5.0 github.com/gorilla/mux v1.8.1 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 github.com/mrz1836/go-sanitize v1.3.1 github.com/rakyll/statik v0.1.7 - github.com/spf13/cast v1.6.0 - github.com/spf13/cobra v1.8.0 + github.com/spf13/cast v1.5.1 + github.com/spf13/cobra v1.7.0 github.com/stretchr/testify v1.8.4 - github.com/tendermint/tendermint v0.34.29 - github.com/tendermint/tm-db v0.6.7 - google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e - google.golang.org/grpc v1.57.0 + google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0 + google.golang.org/grpc v1.60.1 gopkg.in/yaml.v2 v2.4.0 mvdan.cc/gofumpt v0.5.0 ) @@ -34,36 +37,39 @@ require ( github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect github.com/alingse/asasalint v0.0.11 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect - github.com/cosmos/iavl v0.19.6 // indirect - github.com/creachadair/taskgroup v0.3.2 // indirect + github.com/cosmos/iavl v0.20.1 // indirect + github.com/creachadair/taskgroup v0.4.2 // indirect github.com/curioswitch/go-reassign v0.2.0 // indirect - github.com/felixge/httpsnoop v1.0.1 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect github.com/google/btree v1.1.2 // indirect github.com/kkHAIKE/contextcheck v1.1.4 // indirect github.com/maratori/testableexamples v1.0.0 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/regen-network/cosmos-proto v0.3.1 // indirect github.com/sashamelentyev/interfacebloat v1.1.0 // indirect github.com/sashamelentyev/usestdlibvars v1.24.0 // indirect github.com/sivchari/nosnakecase v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.14.0 // indirect + github.com/spf13/viper v1.16.0 // indirect github.com/timonwong/loggercheck v0.9.4 // indirect go.uber.org/atomic v1.10.0 // indirect go.uber.org/multierr v1.8.0 // indirect go.uber.org/zap v1.24.0 // indirect - golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb // indirect + golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect ) require ( 4d63.com/gocheckcompilerdirectives v1.2.1 // indirect 4d63.com/gochecknoglobals v0.2.1 // indirect - cloud.google.com/go v0.110.6 // indirect - cloud.google.com/go/compute v1.23.0 // indirect + cloud.google.com/go v0.111.0 // indirect + cloud.google.com/go/compute v1.23.3 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.1 // indirect + cloud.google.com/go/iam v1.1.5 // indirect cloud.google.com/go/storage v1.30.1 // indirect - filippo.io/edwards25519 v1.0.0-rc.1 // indirect + cosmossdk.io/core v0.5.1 // indirect + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect + cosmossdk.io/log v1.3.0 // indirect + cosmossdk.io/tools/rosetta v0.2.1 // indirect + filippo.io/edwards25519 v1.0.0 // indirect github.com/4meepo/tagalign v1.3.3 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect @@ -75,14 +81,14 @@ require ( github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 // indirect github.com/Masterminds/semver v1.5.0 // indirect github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect - github.com/Workiva/go-datastructures v1.0.53 // indirect github.com/alecthomas/go-check-sumtype v0.1.3 // indirect github.com/alexkohler/nakedret/v2 v2.0.2 // indirect github.com/alexkohler/prealloc v1.0.0 // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/ashanbrown/forbidigo v1.6.0 // indirect github.com/ashanbrown/makezero v1.1.1 // indirect - github.com/aws/aws-sdk-go v1.44.122 // indirect + github.com/aws/aws-sdk-go v1.44.203 // indirect + github.com/benbjohnson/clock v1.3.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect @@ -101,15 +107,18 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/charithe/durationcheck v0.0.10 // indirect github.com/chavacava/garif v0.1.0 // indirect - github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect + github.com/chzyer/readline v1.5.1 // indirect github.com/cockroachdb/apd/v2 v2.0.2 // indirect + github.com/cockroachdb/errors v1.10.0 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/redact v1.1.5 // indirect github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect - github.com/cometbft/cometbft-db v0.7.0 // indirect github.com/confio/ics23/go v0.9.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.1 // indirect - github.com/cosmos/gorocksdb v1.2.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.12.4 // indirect + github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect github.com/daixiang0/gci v0.11.2 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -117,9 +126,9 @@ require ( github.com/denis-tingaikin/go-header v0.4.3 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect - github.com/dgraph-io/ristretto v0.1.0 // indirect + github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect - github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac // indirect + github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/esimonov/ifshort v1.0.4 // indirect github.com/ettle/strcase v0.1.1 // indirect @@ -128,12 +137,15 @@ require ( github.com/firefart/nonamedreturns v1.0.4 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/fzipp/gocyclo v0.6.0 // indirect + github.com/getsentry/sentry-go v0.23.0 // indirect + github.com/ghodss/yaml v1.0.0 // indirect github.com/ghostiam/protogetter v0.2.3 // indirect - github.com/gin-gonic/gin v1.8.1 // indirect github.com/go-critic/go-critic v0.9.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect - github.com/go-logfmt/logfmt v0.5.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect github.com/go-toolsmith/astcast v1.1.0 // indirect github.com/go-toolsmith/astcopy v1.1.0 // indirect github.com/go-toolsmith/astequal v1.1.0 // indirect @@ -145,9 +157,11 @@ require ( github.com/gobwas/glob v0.2.3 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gofrs/flock v0.8.1 // indirect - github.com/gogo/gateway v1.1.0 // indirect - github.com/golang/glog v1.1.0 // indirect + github.com/gogo/googleapis v1.4.1 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/glog v1.1.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect @@ -159,11 +173,10 @@ require ( github.com/golangci/revgrep v0.5.2 // indirect github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect github.com/google/go-cmp v0.6.0 // indirect - github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/s2a-go v0.1.4 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.11.0 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect @@ -177,15 +190,16 @@ require ( github.com/gtank/ristretto255 v0.1.2 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-getter v1.7.0 // indirect + github.com/hashicorp/go-getter v1.7.1 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect + github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect + github.com/huandu/skiplist v1.2.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jgautheron/goconst v1.6.0 // indirect @@ -196,7 +210,9 @@ require ( github.com/julz/importas v0.1.0 // indirect github.com/kisielk/errcheck v1.6.3 // indirect github.com/kisielk/gotool v1.0.0 // indirect - github.com/klauspost/compress v1.16.0 // indirect + github.com/klauspost/compress v1.16.7 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/kulti/thelper v0.6.3 // indirect github.com/kunwardeep/paralleltest v1.0.8 // indirect github.com/kyoh86/exportloopref v0.1.11 // indirect @@ -205,14 +221,15 @@ require ( github.com/leonklingele/grouper v1.1.1 // indirect github.com/lib/pq v1.10.9 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.7.16 // indirect github.com/lufeee/execinquery v1.2.1 // indirect github.com/macabu/inamedparam v0.1.2 // indirect - github.com/magiconair/properties v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/maratori/testpackage v1.1.1 // indirect github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.18 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.10 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/mbilski/exhaustivestruct v1.2.0 // indirect @@ -229,8 +246,7 @@ require ( github.com/nishanths/predeclared v0.2.2 // indirect github.com/nunnatsa/ginkgolinter v0.14.1 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.0.7 // indirect + github.com/pelletier/go-toml/v2 v2.0.8 // indirect github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/polyfloyd/go-errorlint v1.4.5 // indirect @@ -244,8 +260,9 @@ require ( github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rivo/uniseg v0.2.0 // indirect - github.com/rs/cors v1.8.2 // indirect - github.com/rs/zerolog v1.29.1 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.31.0 // indirect github.com/ryancurrah/gomodguard v1.3.0 // indirect github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect @@ -257,23 +274,22 @@ require ( github.com/sivchari/tenv v1.7.1 // indirect github.com/sonatard/noctx v0.0.2 // indirect github.com/sourcegraph/go-diff v0.7.0 // indirect - github.com/spf13/afero v1.9.2 // indirect + github.com/spf13/afero v1.9.5 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect github.com/stretchr/objx v0.5.0 // indirect - github.com/subosito/gotenv v1.4.1 // indirect + github.com/subosito/gotenv v1.4.2 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect github.com/tdakkota/asciicheck v0.2.0 // indirect - github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tetafro/godot v1.4.15 // indirect - github.com/tidwall/btree v1.5.0 // indirect + github.com/tidwall/btree v1.6.0 // indirect github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 // indirect github.com/tomarrell/wrapcheck/v2 v2.8.1 // indirect github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect - github.com/ulikunitz/xz v0.5.10 // indirect + github.com/ulikunitz/xz v0.5.11 // indirect github.com/ultraware/funlen v0.1.0 // indirect github.com/ultraware/whitespace v0.0.5 // indirect github.com/uudashr/gocognit v1.1.2 // indirect @@ -285,25 +301,27 @@ require ( github.com/zondax/ledger-go v0.14.3 // indirect gitlab.com/bosi/decorder v0.4.1 // indirect go-simpler.org/sloglint v0.1.2 // indirect - go.etcd.io/bbolt v1.3.6 // indirect + go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect + go.opentelemetry.io/otel v1.19.0 // indirect + go.opentelemetry.io/otel/metric v1.19.0 // indirect + go.opentelemetry.io/otel/trace v1.19.0 // indirect go.tmz.dev/musttag v0.7.2 // indirect - golang.org/x/crypto v0.17.0 // indirect + golang.org/x/crypto v0.16.0 // indirect golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 // indirect golang.org/x/mod v0.13.0 // indirect - golang.org/x/net v0.17.0 // indirect - golang.org/x/oauth2 v0.8.0 // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/oauth2 v0.13.0 // indirect golang.org/x/sync v0.4.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/sys v0.16.0 // indirect golang.org/x/term v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/tools v0.14.0 // indirect - golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.126.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878 // indirect - google.golang.org/protobuf v1.31.0 // indirect + google.golang.org/api v0.149.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto v0.0.0-20240102182953-50ed04b92917 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240108191215-35c7eff3a6b1 // indirect + google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect honnef.co/go/tools v0.4.6 // indirect @@ -311,21 +329,26 @@ require ( mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect nhooyr.io/websocket v1.8.7 // indirect + pgregory.net/rapid v0.5.5 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) replace ( - // use cosmos fork of keyring + // cosmos keyring github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 - github.com/cosmos/cosmos-sdk => github.com/sge-network/cosmos-sdk v0.46.17-0.20240116162805-4d37df374208 + // support concurrency for iavl + github.com/cosmos/iavl => github.com/cosmos/iavl v0.20.1 + + // dgrijalva/jwt-go is deprecated and doesn't receive security updates. + // TODO: remove it: https://github.com/cosmos/cosmos-sdk/issues/13134 github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2 + + // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. + // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0 - // use cosmos-compatible protobufs - github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - github.com/jhump/protoreflect => github.com/jhump/protoreflect v1.9.0 - // replace broken goleveldb. + + // https://github.com/cosmos/cosmos-sdk/issues/14949 + // pin the version of goleveldb to v1.0.1-0.20210819022825-2ae1ddf74ef7 required by SDK v47 upgrade guide. github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 - // use cometbft - github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.29 ) diff --git a/go.sum b/go.sum index 24b7cca9..852e35e9 100644 --- a/go.sum +++ b/go.sum @@ -38,8 +38,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= -cloud.google.com/go v0.110.6 h1:8uYAkj3YHTP/1iwReuHPxLSbdcyc+dSBbzFMrVwDR6Q= -cloud.google.com/go v0.110.6/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= +cloud.google.com/go v0.111.0 h1:YHLKNupSD1KqjDbQ3+LVdQ81h/UJbJyZG203cEfnQgM= +cloud.google.com/go v0.111.0/go.mod h1:0mibmpKP1TyOOFYQY5izo0LnT+ecvOQ0Sg3OdmMiNRU= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= @@ -77,8 +77,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute v1.23.0 h1:tP41Zoavr8ptEqaW6j+LQOnyBBhO7OkOMAGrgLopTwY= -cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= @@ -118,8 +118,8 @@ cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y97 cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= -cloud.google.com/go/iam v1.1.1 h1:lW7fzj15aVIXYHREOqjRBV9PsH0Z6u8Y46a1YGvQP4Y= -cloud.google.com/go/iam v1.1.1/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= +cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= @@ -195,13 +195,26 @@ cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuW cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= -cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= -cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= +cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE= +cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw= +cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI= +cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/simapp v0.0.0-20230831152633-2e9e5d6eea24 h1:A+LHM41uss8WNJ+qZCdvCjtiG6UiIN7ZqmPZz6R25wc= +cosmossdk.io/simapp v0.0.0-20230831152633-2e9e5d6eea24/go.mod h1:1kVkzonF2p6SYsSMXXURz/kx50QWArqazCk1Myulu8g= +cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw= +cosmossdk.io/tools/rosetta v0.2.1/go.mod h1:Pqdc1FdvkNV3LcNIkYWt2RQY6IP1ge6YWZk8MhhO9Hw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-rc.1 h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU= filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFNuPos7vHmWXfszqImLppbc0wEhh6JBfJIUgw= git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA= github.com/4meepo/tagalign v1.3.3 h1:ZsOxcwGD/jP4U/aw7qeWu58i7dwYemfy5Y+IF1ACoNw= @@ -251,8 +264,6 @@ github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrU github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig= -github.com/Workiva/go-datastructures v1.0.53/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A= github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= @@ -295,8 +306,9 @@ github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5Fc github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.44.122 h1:p6mw01WBaNpbdP2xrisz5tIkcNwzj/HysobNoaAHjgo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.44.203 h1:pcsP805b9acL3wUqa4JR2vg1k2wnItkDYNvfmcy6F+U= +github.com/aws/aws-sdk-go v1.44.203/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.2.0/go.mod h1:zEQs02YRBw1DjK0PoJv3ygDYOFTre1ejlJWl8FwAuQo= github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= @@ -307,8 +319,8 @@ github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7 github.com/aws/aws-sdk-go-v2/service/sso v1.1.1/go.mod h1:SuZJxklHxLAXgLTc1iFXbEWkXs7QRTQpCLGaKIprQW0= github.com/aws/aws-sdk-go-v2/service/sts v1.1.1/go.mod h1:Wi0EBZwiz/K44YliU0EKxqTCJGUfYTWXrrBwkq736bM= github.com/aws/smithy-go v1.1.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= -github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -355,6 +367,8 @@ github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/butuzov/ireturn v0.2.2 h1:jWI36dxXwVrI+RnXDwux2IZOewpmfv930OuIRfaBUJ0= github.com/butuzov/ireturn v0.2.2/go.mod h1:RfGHUvvAuFFxoHKf4Z8Yxuh6OjlCw1KvR2zM1NFHeBk= github.com/butuzov/mirror v1.1.0 h1:ZqX54gBVMXu78QLoiqdwpl2mgmoOJTk7s4p4o+0avZI= @@ -390,12 +404,15 @@ github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXH github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= -github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= @@ -413,14 +430,20 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/errors v1.10.0 h1:lfxS8zZz1+OjtV4MtNWgboi/W5tyLEB6VQZBXN+0VUU= +github.com/cockroachdb/errors v1.10.0/go.mod h1:lknhIsEVQ9Ss/qKDBQS/UqFSvPQjOwNq2qyKAxtHRqE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/coinbase/kryptology v1.8.0/go.mod h1:RYXOAPdzOGUe3qlSFkMGn58i3xUA8hmxYHksuq+8ciI= github.com/coinbase/rosetta-sdk-go v0.7.9 h1:lqllBjMnazTjIqYrOGv8h8jxjg9+hJazIGZr9ZvoCcA= github.com/coinbase/rosetta-sdk-go v0.7.9/go.mod h1:0/knutI7XGVqXmmH4OQD8OckFrbQ8yMsUZTG7FXCR2M= -github.com/cometbft/cometbft v0.34.29 h1:Q4FqMevP9du2pOgryZJHpDV2eA6jg/kMYxBj9ZTY6VQ= -github.com/cometbft/cometbft v0.34.29/go.mod h1:L9shMfbkZ8B+7JlwANEr+NZbBcn+hBpwdbeYvA5rLCw= -github.com/cometbft/cometbft-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo= -github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0= +github.com/cometbft/cometbft v0.37.4 h1:xyvvEqlyfK8MgNIIKVJaMsuIp03wxOcFmVkT26+Ikpg= +github.com/cometbft/cometbft v0.37.4/go.mod h1:Cmg5Hp4sNpapm7j+x0xRyt2g0juQfmB752ous+pA0G8= +github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo= +github.com/cometbft/cometbft-db v0.8.0/go.mod h1:6ASCP4pfhmrCBpfk01/9E1SI29nD3HfVHrY4PG8x5c0= github.com/confio/ics23/go v0.9.0 h1:cWs+wdbS2KRPZezoaaj+qBleXgUk5WOQFMP3CQFGTr4= github.com/confio/ics23/go v0.9.0/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/3mZuaj6Sj+PqrmIquiOKy397AKGThQPaGzNXAQ= @@ -437,28 +460,35 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-proto v1.0.0-beta.1 h1:iDL5qh++NoXxG8hSy93FdYJut4XfgbShIocllGaXx/0= -github.com/cosmos/cosmos-proto v1.0.0-beta.1/go.mod h1:8k2GNZghi5sDRFw/scPL8gMSowT1vDA+5ouxL8GjaUE= +github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= +github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= +github.com/cosmos/cosmos-sdk v0.47.8 h1:kzYF2xhnfi8dy15t2VVS24tc2KcuU4JBgjh9yCFx4y4= +github.com/cosmos/cosmos-sdk v0.47.8/go.mod h1:VTAtthIsmfplanhFfUTfT6ED4F+kkJxT7nmvmKXRthI= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= -github.com/cosmos/gogoproto v1.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= -github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= -github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y= -github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw= -github.com/cosmos/iavl v0.19.6 h1:XY78yEeNPrEYyNCKlqr9chrwoeSDJ0bV2VjocTk//OU= -github.com/cosmos/iavl v0.19.6/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= -github.com/cosmos/ibc-go/v5 v5.3.1 h1:zuaIWMEoXM9egWmmAqzBPYLvEjYgB6xy6wZoc8xsZ5U= -github.com/cosmos/ibc-go/v5 v5.3.1/go.mod h1:Q2W1rjtwR738fqFQhE66dZ0frsLlr+Wiezlwei0TMGo= +github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= +github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= +github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= +github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoKuI= +github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= +github.com/cosmos/iavl v0.20.1 h1:rM1kqeG3/HBT85vsZdoSNsehciqUQPWrR4BYmqE2+zg= +github.com/cosmos/iavl v0.20.1/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= +github.com/cosmos/ibc-go/v7 v7.3.2 h1:FeUDcBX7VYY0e0iRmcVkPPUjYfAqIc//QuHXo8JHz9c= +github.com/cosmos/ibc-go/v7 v7.3.2/go.mod h1:IMeOXb7gwpZ+/nOG5BuUkdW4weM1ezvN4PQPws4uzOI= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= github.com/cosmos/ledger-cosmos-go v0.12.4 h1:drvWt+GJP7Aiw550yeb3ON/zsrgW0jgh5saFCr7pDnw= github.com/cosmos/ledger-cosmos-go v0.12.4/go.mod h1:fjfVWRf++Xkygt9wzCsjEBdjcf7wiiY35fv3ctT+k4M= +github.com/cosmos/rosetta-sdk-go v0.10.0 h1:E5RhTruuoA7KTIXUcMicL76cffyeoyvNybzUGSKFTcM= +github.com/cosmos/rosetta-sdk-go v0.10.0/go.mod h1:SImAZkb96YbwvoRkzSMQB6noNJXFgWl/ENIznEoYQI4= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creachadair/taskgroup v0.3.2 h1:zlfutDS+5XG40AOxcHDSThxKzns8Tnr9jnr6VqkYlkM= -github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= +github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= @@ -490,8 +520,8 @@ github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdw github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.1.0 h1:Jv3CGQHp9OjuMBSne1485aDpUkTKEcUqF+jm/LuerPI= -github.com/dgraph-io/ristretto v0.1.0/go.mod h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug= +github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= +github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8/go.mod h1:VMaSuZ+SZcx/wljOQKvp5srsbCiKDEb6K2wC4+PiBmQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= @@ -509,8 +539,8 @@ github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRP github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac h1:opbrjaN/L8gg6Xh5D04Tem+8xVcz6ajZlGCs49mQgyg= -github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= @@ -534,20 +564,15 @@ github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcH github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0= github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= -github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0= -github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= -github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojtoVVWjGfOF9635RETekkoH6Cc9SX0A= -github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= -github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk= -github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= -github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/firefart/nonamedreturns v1.0.4 h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y= github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= @@ -556,8 +581,8 @@ github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8 github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= -github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= @@ -567,6 +592,9 @@ github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlya github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= +github.com/getsentry/sentry-go v0.23.0 h1:dn+QRCeJv4pPt9OjVXiMcGIBIefaTJPw/h0bZWO05nE= +github.com/getsentry/sentry-go v0.23.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghostiam/protogetter v0.2.3 h1:qdv2pzo3BpLqezwqfGDLZ+nHEYmc5bUpIdsMbBVwMjw= github.com/ghostiam/protogetter v0.2.3/go.mod h1:KmNLOsy1v04hKbvZs8EfGI1fk39AgTdRDxWNYPfXVc4= @@ -579,6 +607,8 @@ github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1T github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= github.com/go-critic/go-critic v0.9.0 h1:Pmys9qvU3pSML/3GEQ2Xd9RZ/ip+aXHKILuxczKGV/U= github.com/go-critic/go-critic v0.9.0/go.mod h1:5P8tdXL7m/6qnyG6oRAlYLORvoXH0WDypYgAEmagT40= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= +github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -593,10 +623,13 @@ github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBj github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= -github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= @@ -649,9 +682,16 @@ github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5x github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= -github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= +github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= +github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= @@ -661,8 +701,8 @@ github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= -github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= +github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -777,8 +817,8 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= -github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -789,8 +829,8 @@ github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= -github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= -github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= +github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -800,8 +840,8 @@ github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99 github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= -github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= -github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -838,10 +878,11 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaD github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 h1:RtRsiaGvWxcwd8y3BiRZxsylPT8hLWZ5SPcfI+3IDNk= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0/go.mod h1:TzP6duP4Py2pHLVPPQp42aoYI92+PCrVotyR5e8Vqlk= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= @@ -859,8 +900,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.0 h1:bzrYP+qu/gMrL1au7/aDvkoOVGUJpeKBgbqRHACAFDY= -github.com/hashicorp/go-getter v1.7.0/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= +github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= @@ -892,13 +933,17 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 h1:aSVUgRRRtOrZOC1fYmY9gV0e9z/Iu+xNVSASWjsuyGU= -github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3/go.mod h1:5PC6ZNPde8bBqU/ewGZig35+UIZtw9Ytxez8/q5ZyFE= +github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= +github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= +github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= +github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= @@ -927,8 +972,8 @@ github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jgautheron/goconst v1.6.0 h1:gbMLWKRMkzAc6kYsQL6/TxaoBUg3Jm9LSF/Ih1ADWGA= github.com/jgautheron/goconst v1.6.0/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= -github.com/jhump/protoreflect v1.9.0 h1:npqHz788dryJiR/l6K/RUQAyh2SwV91+d1dnh4RjO9w= -github.com/jhump/protoreflect v1.9.0/go.mod h1:7GcYQDdMU/O/BBrl/cX6PNHpXh6cenjd8pneu5yW7Tg= +github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= +github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48= @@ -962,6 +1007,8 @@ github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSX github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/errcheck v1.6.3 h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8= github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= @@ -975,8 +1022,8 @@ github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYs github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.16.0 h1:iULayQNOReoYUe+1qtKOqw9CwJv3aNQu8ivo7lw1HU4= -github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.7 h1:2mk3MPGNzKyxErAw8YaohYh69+pa4sIQSC0fPGCFR9I= +github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5 h1:2U0HzY8BJ8hVwDKIzp7y4voR9CX/nvcfymLmg2UiOio= github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= @@ -1021,6 +1068,8 @@ github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6 github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linxGnu/grocksdb v1.7.16 h1:Q2co1xrpdkr5Hx3Fp+f+f7fRGhQFQhvi/+226dtLmA8= +github.com/linxGnu/grocksdb v1.7.16/go.mod h1:JkS7pl5qWpGpuVb3bPqTz8nC12X3YtPZT+Xq7+QfQo4= github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= @@ -1028,8 +1077,8 @@ github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0Q github.com/macabu/inamedparam v0.1.2 h1:RR5cnayM6Q7cDhQol32DE2BGAPGMnffJ31LFE+UklaU= github.com/macabu/inamedparam v0.1.2/go.mod h1:Xg25QvY7IBRl1KLPV9Rbml8JOMZtF/iAkNkmV7eQgjw= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= -github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= @@ -1048,7 +1097,6 @@ github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVc github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= @@ -1059,8 +1107,9 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= -github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= @@ -1136,8 +1185,9 @@ github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= github.com/nunnatsa/ginkgolinter v0.14.1 h1:khx0CqR5U4ghsscjJ+lZVthp3zjIFytRXPTaQ/TMiyA= github.com/nunnatsa/ginkgolinter v0.14.1/go.mod h1:nY0pafUSst7v7F637e7fymaMlQqI9c0Wka2fGsDkzWg= -github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= @@ -1147,8 +1197,9 @@ github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6 github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= @@ -1189,11 +1240,9 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= -github.com/pelletier/go-toml/v2 v2.0.7 h1:muncTPStnKRos5dpVKULv2FVd4bMOhNePj9CjgDb8Us= -github.com/pelletier/go-toml/v2 v2.0.7/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= +github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= @@ -1201,9 +1250,10 @@ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCr github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= -github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= +github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1271,10 +1321,6 @@ github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Ung github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg= -github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= -github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= -github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= @@ -1285,14 +1331,15 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= -github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= -github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= -github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -1317,8 +1364,6 @@ github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KR github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sge-network/cosmos-sdk v0.46.17-0.20240116162805-4d37df374208 h1:ZnS9z0KbYTgGwKB9Oy3pT6k7Nvd0EoVP2EBvKCTNFKo= -github.com/sge-network/cosmos-sdk v0.46.17-0.20240116162805-4d37df374208/go.mod h1:05U50tAsOzQ8JOAePshJCbJQw5ib1YJR6IXcqyVI1Xg= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -1349,15 +1394,15 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= -github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= -github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= @@ -1366,8 +1411,8 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.14.0 h1:Rg7d3Lo706X9tHsJMUjdiwMpHB7W8WnSVOssIY+JElU= -github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+egj8As= +github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= @@ -1391,30 +1436,27 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= -github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8= github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8= -github.com/tendermint/tm-db v0.6.7/go.mod h1:byQDzFkZV1syXr/ReXS808NxA2xvyuuVgXOJ/088L6I= github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= github.com/tetafro/godot v1.4.15 h1:QzdIs+XB8q+U1WmQEWKHQbKmCw06QuQM7gLx/dky2RM= github.com/tetafro/godot v1.4.15/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= -github.com/tidwall/btree v1.5.0 h1:iV0yVY/frd7r6qGBXfEYs7DH0gTDgrKTrDjS7xt/IyQ= -github.com/tidwall/btree v1.5.0/go.mod h1:LGm8L/DZjPLmeWGjv5kFrY8dL4uVhMmzmmLYmsObdKE= +github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg= +github.com/tidwall/btree v1.6.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tidwall/gjson v1.12.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= @@ -1425,7 +1467,6 @@ github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVN github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= -github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -1433,7 +1474,6 @@ github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQp github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= -github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= @@ -1442,8 +1482,9 @@ github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2 github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.2.9 h1:rmenucSohSTiyL09Y+l2OCk+FrMxGMzho2+tjr5ticU= github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= +github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ultraware/funlen v0.1.0 h1:BuqclbkY6pO+cvxoq7OsktIXZpgBSkYTQtmwhAK81vI= github.com/ultraware/funlen v0.1.0/go.mod h1:XJqmOQja6DpxarLj6Jj1U7JuoS8PvL4nEqDaQhy22p4= github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= @@ -1489,8 +1530,8 @@ go-simpler.org/assert v0.6.0/go.mod h1:74Eqh5eI6vCK6Y5l3PI8ZYFXG4Sa+tkr70OIPJAUr go-simpler.org/sloglint v0.1.2 h1:IjdhF8NPxyn0Ckn2+fuIof7ntSnVUAqBFcQRrnG9AiM= go-simpler.org/sloglint v0.1.2/go.mod h1:2LL+QImPfTslD5muNPydAEYmpXIj6o/WYcqnJjLi4o4= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= -go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= +go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= +go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -1503,6 +1544,14 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs= +go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY= +go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE= +go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8= +go.opentelemetry.io/otel/sdk v1.19.0 h1:6USY6zH+L8uMH8L3t1enZPR3WFEmSTADlqldyHtJi3o= +go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A= +go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg= +go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.tmz.dev/musttag v0.7.2 h1:1J6S9ipDbalBSODNT5jCep8dhZyMr4ttnjQagmGYR5s= go.tmz.dev/musttag v0.7.2/go.mod h1:m6q5NiiSKMnQYokefa2xGoyoXnrswCbJ0AWYzf4Zs28= @@ -1548,12 +1597,11 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= -golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1568,8 +1616,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb h1:mIKbk8weKhSeLH2GmUTrvx8CjkyJmnU1wFmg59CUjFA= -golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb h1:xIApU0ow1zwMa2uL1VDNeQlNVFTWMQxZUZCMDy0Q4Us= +golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 h1:jWGQJV4niP+CCmFW9ekjA9Zx8vYORzOUH2/Nl5WPuLQ= @@ -1679,8 +1727,8 @@ golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1706,8 +1754,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= -golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1779,7 +1827,6 @@ golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1810,7 +1857,6 @@ golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1820,6 +1866,8 @@ golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1834,13 +1882,15 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1871,9 +1921,11 @@ golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -1929,7 +1981,6 @@ golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -2019,8 +2070,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= -google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o= -google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= +google.golang.org/api v0.149.0 h1:b2CqT6kG+zqJIVKRQ3ELJVLN1PwHZ6DJ3dW8yl82rgY= +google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -2028,8 +2079,9 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -2054,7 +2106,6 @@ google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200324203455-a04cca1dde73/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= @@ -2106,6 +2157,7 @@ google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2 google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= @@ -2140,15 +2192,14 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 h1:L6iMMGrtzgHsWofoFcihmDEMYeDR9KN/ThbPWGrh++g= -google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8= -google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e h1:z3vDksarJxsAKM5dmEGv0GHwE2hKJ096wZra71Vs4sw= -google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878 h1:lv6/DhyiFFGsmzxbsUUTOkN29II+zeWHxvT8Lpdxsv0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto v0.0.0-20240102182953-50ed04b92917 h1:nz5NESFLZbJGPFxDT/HCn+V1mZ8JGNoY4nUpmW/Y2eg= +google.golang.org/genproto v0.0.0-20240102182953-50ed04b92917/go.mod h1:pZqR+glSb11aJ+JQcczCvgf47+duRuzNSKqE8YAQnV0= +google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0 h1:s1w3X6gQxwrLEpxnLd/qXTVLgQE2yXwaOaoa6IlY/+o= +google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0/go.mod h1:CAny0tYF+0/9rmDB9fahA9YLzX3+AEVl1qXbv5hhj6c= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240108191215-35c7eff3a6b1 h1:gphdwh0npgs8elJ4T6J+DQJHPVF7RsuJHCfwztUb4J4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240108191215-35c7eff3a6b1/go.mod h1:daQN87bsDqDoe316QbbvX60nMoJQa4r6Ds0ZuoAe5yA= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -2188,8 +2239,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= -google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= +google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -2206,8 +2257,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -2243,7 +2294,10 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -2266,8 +2320,8 @@ mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RF nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -pgregory.net/rapid v0.5.3 h1:163N50IHFqr1phZens4FQOdPgfJscR7a562mjQqeo4M= -pgregory.net/rapid v0.5.3/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= +pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/proto/buf.gen.gogo.yaml b/proto/buf.gen.gogo.yaml index 4e8fb72d..32b6adda 100644 --- a/proto/buf.gen.gogo.yaml +++ b/proto/buf.gen.gogo.yaml @@ -2,7 +2,7 @@ version: v1 plugins: - name: gocosmos out: .. - opt: plugins=grpc,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1alpha1/orm.proto=github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1 + opt: plugins=plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types - name: grpc-gateway out: .. opt: logtostderr=true,allow_colon_final_segments=true diff --git a/proto/buf.lock b/proto/buf.lock index d830ce9c..0af52ccb 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -5,15 +5,24 @@ deps: owner: cosmos repository: cosmos-proto commit: 1935555c206d4afb9e94615dfd0fad31 + digest: shake256:c74d91a3ac7ae07d579e90eee33abf9b29664047ac8816500cf22c081fec0d72d62c89ce0bebafc1f6fec7aa5315be72606717740ca95007248425102c365377 - remote: buf.build owner: cosmos repository: cosmos-sdk - commit: fc2c3eab27454e97b2ae099d0da69611 + commit: fb7629d893cb44a799c16916d09ccc0b + digest: shake256:7cbbcdd4f4b2ca91e7b161ef0c58b794d37d105b87b1aab0a73b539508b1f39b3ff8b94148dd75eeaebbdb049730a6a3606d8879f84e65f08559bd9aa4d512c8 - remote: buf.build owner: cosmos repository: gogo-proto - commit: 34d970b699f84aa382f3c29773a60836 + commit: 88ef6483f90f478fb938c37dde52ece3 + digest: shake256:89c45df2aa11e0cff97b0d695436713db3d993d76792e9f8dc1ae90e6ab9a9bec55503d48ceedd6b86069ab07d3041b32001b2bfe0227fa725dd515ff381e5ba - remote: buf.build owner: googleapis repository: googleapis - commit: 75b4300737fb4efca0831636be94e517 + commit: e874a0be2bf140a5a4c7d4122c635823 + digest: shake256:4fe3036b4d706f6ee2b13c730bd04777f021dfd02ed27e6e40480acfe664a7548238312ee0727fd77648a38d227e296d43f4a38a34cdd46068156211016d9657 + - remote: buf.build + owner: protocolbuffers + repository: wellknowntypes + commit: 657250e6a39648cbb169d079a60bd9ba + digest: shake256:00de25001b8dd2e29d85fc4bcc3ede7aed886d76d67f5e0f7a9b320b90f871d3eb73507d50818d823a0512f3f8db77a11c043685528403e31ff3fef18323a9fb diff --git a/proto/sge/bet/bet.proto b/proto/sgenetwork/sge/bet/bet.proto similarity index 98% rename from proto/sge/bet/bet.proto rename to proto/sgenetwork/sge/bet/bet.proto index a1d41352..fa37e214 100644 --- a/proto/sge/bet/bet.proto +++ b/proto/sgenetwork/sge/bet/bet.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.bet; import "gogoproto/gogo.proto"; -import "sge/bet/odds_type.proto"; +import "sgenetwork/sge/bet/odds_type.proto"; option go_package = "github.com/sge-network/sge/x/bet/types"; @@ -63,7 +63,7 @@ message Bet { // max_loss_multiplier is the multiplier coefficient of max loss. string max_loss_multiplier = 13 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; diff --git a/proto/sge/bet/bet_odds.proto b/proto/sgenetwork/sge/bet/bet_odds.proto similarity index 92% rename from proto/sge/bet/bet_odds.proto rename to proto/sgenetwork/sge/bet/bet_odds.proto index 03ff64d5..c0f9e083 100644 --- a/proto/sge/bet/bet_odds.proto +++ b/proto/sgenetwork/sge/bet/bet_odds.proto @@ -29,7 +29,7 @@ message BetOdds { (gogoproto.customname) = "MaxLossMultiplier", (gogoproto.jsontag) = "max_loss_multiplier", json_name = "max_loss_multiplier", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } @@ -49,7 +49,7 @@ message BetOddsCompact { (gogoproto.customname) = "MaxLossMultiplier", (gogoproto.jsontag) = "max_loss_multiplier", json_name = "max_loss_multiplier", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } diff --git a/proto/sge/bet/constraints.proto b/proto/sgenetwork/sge/bet/constraints.proto similarity index 100% rename from proto/sge/bet/constraints.proto rename to proto/sgenetwork/sge/bet/constraints.proto diff --git a/proto/sge/bet/genesis.proto b/proto/sgenetwork/sge/bet/genesis.proto similarity index 88% rename from proto/sge/bet/genesis.proto rename to proto/sgenetwork/sge/bet/genesis.proto index 9620082e..47b5468f 100644 --- a/proto/sge/bet/genesis.proto +++ b/proto/sgenetwork/sge/bet/genesis.proto @@ -2,9 +2,9 @@ syntax = "proto3"; package sgenetwork.sge.bet; import "gogoproto/gogo.proto"; -import "sge/bet/params.proto"; -import "sge/bet/bet.proto"; -import "sge/bet/stats.proto"; +import "sgenetwork/sge/bet/params.proto"; +import "sgenetwork/sge/bet/bet.proto"; +import "sgenetwork/sge/bet/stats.proto"; option go_package = "github.com/sge-network/sge/x/bet/types"; diff --git a/proto/sge/bet/odds_type.proto b/proto/sgenetwork/sge/bet/odds_type.proto similarity index 100% rename from proto/sge/bet/odds_type.proto rename to proto/sgenetwork/sge/bet/odds_type.proto diff --git a/proto/sge/bet/params.proto b/proto/sgenetwork/sge/bet/params.proto similarity index 93% rename from proto/sge/bet/params.proto rename to proto/sgenetwork/sge/bet/params.proto index 34139ba3..dc203ece 100644 --- a/proto/sge/bet/params.proto +++ b/proto/sgenetwork/sge/bet/params.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.bet; import "gogoproto/gogo.proto"; -import "sge/bet/constraints.proto"; +import "sgenetwork/sge/bet/constraints.proto"; option go_package = "github.com/sge-network/sge/x/bet/types"; diff --git a/proto/sge/bet/query.proto b/proto/sgenetwork/sge/bet/query.proto similarity index 97% rename from proto/sge/bet/query.proto rename to proto/sgenetwork/sge/bet/query.proto index cfe838ca..0b533627 100644 --- a/proto/sge/bet/query.proto +++ b/proto/sgenetwork/sge/bet/query.proto @@ -4,9 +4,9 @@ package sgenetwork.sge.bet; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "sge/bet/params.proto"; -import "sge/bet/bet.proto"; -import "sge/market/market.proto"; +import "sgenetwork/sge/bet/params.proto"; +import "sgenetwork/sge/bet/bet.proto"; +import "sgenetwork/sge/market/market.proto"; option go_package = "github.com/sge-network/sge/x/bet/types"; diff --git a/proto/sge/bet/stats.proto b/proto/sgenetwork/sge/bet/stats.proto similarity index 100% rename from proto/sge/bet/stats.proto rename to proto/sgenetwork/sge/bet/stats.proto diff --git a/proto/sge/bet/ticket.proto b/proto/sgenetwork/sge/bet/ticket.proto similarity index 85% rename from proto/sge/bet/ticket.proto rename to proto/sgenetwork/sge/bet/ticket.proto index d9f7c157..e73c68a4 100644 --- a/proto/sge/bet/ticket.proto +++ b/proto/sgenetwork/sge/bet/ticket.proto @@ -3,9 +3,9 @@ syntax = "proto3"; package sgenetwork.sge.bet; import "gogoproto/gogo.proto"; -import "sge/type/kyc.proto"; -import "sge/bet/bet_odds.proto"; -import "sge/bet/bet.proto"; +import "sgenetwork/sge/type/kyc.proto"; +import "sgenetwork/sge/bet/bet.proto"; +import "sgenetwork/sge/bet/bet_odds.proto"; option go_package = "github.com/sge-network/sge/x/bet/types"; diff --git a/proto/sge/bet/tx.proto b/proto/sgenetwork/sge/bet/tx.proto similarity index 93% rename from proto/sge/bet/tx.proto rename to proto/sgenetwork/sge/bet/tx.proto index 7e50f848..ec52db9f 100644 --- a/proto/sge/bet/tx.proto +++ b/proto/sgenetwork/sge/bet/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package sgenetwork.sge.bet; -import "sge/bet/wager.proto"; +import "sgenetwork/sge/bet/wager.proto"; option go_package = "github.com/sge-network/sge/x/bet/types"; diff --git a/proto/sge/bet/wager.proto b/proto/sgenetwork/sge/bet/wager.proto similarity index 100% rename from proto/sge/bet/wager.proto rename to proto/sgenetwork/sge/bet/wager.proto diff --git a/proto/sge/house/authz.proto b/proto/sgenetwork/sge/house/authz.proto similarity index 100% rename from proto/sge/house/authz.proto rename to proto/sgenetwork/sge/house/authz.proto diff --git a/proto/sge/house/deposit.proto b/proto/sgenetwork/sge/house/deposit.proto similarity index 100% rename from proto/sge/house/deposit.proto rename to proto/sgenetwork/sge/house/deposit.proto diff --git a/proto/sge/house/genesis.proto b/proto/sgenetwork/sge/house/genesis.proto similarity index 82% rename from proto/sge/house/genesis.proto rename to proto/sgenetwork/sge/house/genesis.proto index eeba59dd..385ce69b 100644 --- a/proto/sge/house/genesis.proto +++ b/proto/sgenetwork/sge/house/genesis.proto @@ -2,9 +2,9 @@ syntax = "proto3"; package sgenetwork.sge.house; import "gogoproto/gogo.proto"; -import "sge/house/deposit.proto"; -import "sge/house/withdraw.proto"; -import "sge/house/params.proto"; +import "sgenetwork/sge/house/deposit.proto"; +import "sgenetwork/sge/house/withdraw.proto"; +import "sgenetwork/sge/house/params.proto"; option go_package = "github.com/sge-network/sge/x/house/types"; diff --git a/proto/sge/house/params.proto b/proto/sgenetwork/sge/house/params.proto similarity index 92% rename from proto/sge/house/params.proto rename to proto/sgenetwork/sge/house/params.proto index 6881fbb0..8a59194d 100644 --- a/proto/sge/house/params.proto +++ b/proto/sgenetwork/sge/house/params.proto @@ -19,7 +19,7 @@ message Params { // house_participation_fee is the % of the deposit to be paid for a house // participation by the depositor. string house_participation_fee = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; diff --git a/proto/sge/house/query.proto b/proto/sgenetwork/sge/house/query.proto similarity index 97% rename from proto/sge/house/query.proto rename to proto/sgenetwork/sge/house/query.proto index d0c8b5a4..edfb5ccd 100644 --- a/proto/sge/house/query.proto +++ b/proto/sgenetwork/sge/house/query.proto @@ -4,9 +4,9 @@ package sgenetwork.sge.house; import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "sge/house/params.proto"; -import "sge/house/deposit.proto"; -import "sge/house/withdraw.proto"; +import "sgenetwork/sge/house/params.proto"; +import "sgenetwork/sge/house/deposit.proto"; +import "sgenetwork/sge/house/withdraw.proto"; option go_package = "github.com/sge-network/sge/x/house/types"; diff --git a/proto/sge/house/ticket.proto b/proto/sgenetwork/sge/house/ticket.proto similarity index 95% rename from proto/sge/house/ticket.proto rename to proto/sgenetwork/sge/house/ticket.proto index 03789d2e..f833cfc9 100644 --- a/proto/sge/house/ticket.proto +++ b/proto/sgenetwork/sge/house/ticket.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package sgenetwork.sge.house; import "gogoproto/gogo.proto"; -import "sge/type/kyc.proto"; +import "sgenetwork/sge/type/kyc.proto"; option go_package = "github.com/sge-network/sge/x/house/types"; diff --git a/proto/sge/house/tx.proto b/proto/sgenetwork/sge/house/tx.proto similarity index 98% rename from proto/sge/house/tx.proto rename to proto/sgenetwork/sge/house/tx.proto index 47147b36..9d218a28 100644 --- a/proto/sge/house/tx.proto +++ b/proto/sgenetwork/sge/house/tx.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.house; import "gogoproto/gogo.proto"; -import "sge/house/withdraw.proto"; +import "sgenetwork/sge/house/withdraw.proto"; option go_package = "github.com/sge-network/sge/x/house/types"; diff --git a/proto/sge/house/withdraw.proto b/proto/sgenetwork/sge/house/withdraw.proto similarity index 100% rename from proto/sge/house/withdraw.proto rename to proto/sgenetwork/sge/house/withdraw.proto diff --git a/proto/sge/market/genesis.proto b/proto/sgenetwork/sge/market/genesis.proto similarity index 81% rename from proto/sge/market/genesis.proto rename to proto/sgenetwork/sge/market/genesis.proto index 95968d13..039316a6 100644 --- a/proto/sge/market/genesis.proto +++ b/proto/sgenetwork/sge/market/genesis.proto @@ -2,9 +2,9 @@ syntax = "proto3"; package sgenetwork.sge.market; import "gogoproto/gogo.proto"; -import "sge/market/params.proto"; -import "sge/market/market.proto"; -import "sge/market/stats.proto"; +import "sgenetwork/sge/market/params.proto"; +import "sgenetwork/sge/market/market.proto"; +import "sgenetwork/sge/market/stats.proto"; option go_package = "github.com/sge-network/sge/x/market/types"; diff --git a/proto/sge/market/market.proto b/proto/sgenetwork/sge/market/market.proto similarity index 98% rename from proto/sge/market/market.proto rename to proto/sgenetwork/sge/market/market.proto index 4f22436e..22b34539 100644 --- a/proto/sge/market/market.proto +++ b/proto/sgenetwork/sge/market/market.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.market; import "gogoproto/gogo.proto"; -import "sge/market/odds.proto"; +import "sgenetwork/sge/market/odds.proto"; option go_package = "github.com/sge-network/sge/x/market/types"; diff --git a/proto/sge/market/odds.proto b/proto/sgenetwork/sge/market/odds.proto similarity index 100% rename from proto/sge/market/odds.proto rename to proto/sgenetwork/sge/market/odds.proto diff --git a/proto/sge/market/params.proto b/proto/sgenetwork/sge/market/params.proto similarity index 100% rename from proto/sge/market/params.proto rename to proto/sgenetwork/sge/market/params.proto diff --git a/proto/sge/market/query.proto b/proto/sgenetwork/sge/market/query.proto similarity index 96% rename from proto/sge/market/query.proto rename to proto/sgenetwork/sge/market/query.proto index 0abb5e64..07c86fd7 100644 --- a/proto/sge/market/query.proto +++ b/proto/sgenetwork/sge/market/query.proto @@ -4,8 +4,8 @@ package sgenetwork.sge.market; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "sge/market/params.proto"; -import "sge/market/market.proto"; +import "sgenetwork/sge/market/params.proto"; +import "sgenetwork/sge/market/market.proto"; option go_package = "github.com/sge-network/sge/x/market/types"; diff --git a/proto/sge/market/stats.proto b/proto/sgenetwork/sge/market/stats.proto similarity index 100% rename from proto/sge/market/stats.proto rename to proto/sgenetwork/sge/market/stats.proto diff --git a/proto/sge/market/ticket.proto b/proto/sgenetwork/sge/market/ticket.proto similarity index 96% rename from proto/sge/market/ticket.proto rename to proto/sgenetwork/sge/market/ticket.proto index a3dfa109..e44f0242 100644 --- a/proto/sge/market/ticket.proto +++ b/proto/sgenetwork/sge/market/ticket.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package sgenetwork.sge.market; -import "sge/market/market.proto"; -import "sge/market/odds.proto"; +import "sgenetwork/sge/market/market.proto"; +import "sgenetwork/sge/market/odds.proto"; import "gogoproto/gogo.proto"; option go_package = "github.com/sge-network/sge/x/market/types"; diff --git a/proto/sge/market/tx.proto b/proto/sgenetwork/sge/market/tx.proto similarity index 97% rename from proto/sge/market/tx.proto rename to proto/sgenetwork/sge/market/tx.proto index bb2e7c2b..7ed2d7c2 100644 --- a/proto/sge/market/tx.proto +++ b/proto/sgenetwork/sge/market/tx.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.market; import "gogoproto/gogo.proto"; -import "sge/market/market.proto"; +import "sgenetwork/sge/market/market.proto"; option go_package = "github.com/sge-network/sge/x/market/types"; diff --git a/proto/sge/mint/genesis.proto b/proto/sgenetwork/sge/mint/genesis.proto similarity index 83% rename from proto/sge/mint/genesis.proto rename to proto/sgenetwork/sge/mint/genesis.proto index 44b04ef0..c9412faa 100644 --- a/proto/sge/mint/genesis.proto +++ b/proto/sgenetwork/sge/mint/genesis.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package sgenetwork.sge.mint; import "gogoproto/gogo.proto"; -import "sge/mint/params.proto"; -import "sge/mint/minter.proto"; +import "sgenetwork/sge/mint/params.proto"; +import "sgenetwork/sge/mint/minter.proto"; option go_package = "github.com/sge-network/sge/x/mint/types"; diff --git a/proto/sge/mint/minter.proto b/proto/sgenetwork/sge/mint/minter.proto similarity index 78% rename from proto/sge/mint/minter.proto rename to proto/sgenetwork/sge/mint/minter.proto index fda7f96a..4ca28787 100644 --- a/proto/sge/mint/minter.proto +++ b/proto/sgenetwork/sge/mint/minter.proto @@ -9,7 +9,7 @@ import "gogoproto/gogo.proto"; message Minter { // inflation is the current annual inflation rate. string inflation = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; // phase_step is the index of phases slice + 1. @@ -17,13 +17,13 @@ message Minter { // phase_provisions is the current phase expected provisions. string phase_provisions = 3 [ (gogoproto.moretags) = "yaml:\"phase_provisions\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; // truncated_tokens holds current truncated tokens because of Dec to Int // conversion in the minting. string truncated_tokens = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } diff --git a/proto/sge/mint/params.proto b/proto/sgenetwork/sge/mint/params.proto similarity index 95% rename from proto/sge/mint/params.proto rename to proto/sgenetwork/sge/mint/params.proto index 9966d8ec..5fa68fa4 100644 --- a/proto/sge/mint/params.proto +++ b/proto/sgenetwork/sge/mint/params.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.mint; import "gogoproto/gogo.proto"; -import "sge/mint/phase.proto"; +import "sgenetwork/sge/mint/phase.proto"; option go_package = "github.com/sge-network/sge/x/mint/types"; diff --git a/proto/sge/mint/phase.proto b/proto/sgenetwork/sge/mint/phase.proto similarity index 81% rename from proto/sge/mint/phase.proto rename to proto/sgenetwork/sge/mint/phase.proto index 1617166d..999f6ee4 100644 --- a/proto/sge/mint/phase.proto +++ b/proto/sgenetwork/sge/mint/phase.proto @@ -12,13 +12,13 @@ message Phase { // inflation is the current phase inflation rate. string inflation = 1 [ (gogoproto.moretags) = "yaml:\"inflation\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; // year_coefficient is the proportion of a complete year. string year_coefficient = 2 [ (gogoproto.moretags) = "yaml:\"year_coefficient\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } diff --git a/proto/sge/mint/query.proto b/proto/sgenetwork/sge/mint/query.proto similarity index 95% rename from proto/sge/mint/query.proto rename to proto/sgenetwork/sge/mint/query.proto index bb8fac98..4d4651bf 100644 --- a/proto/sge/mint/query.proto +++ b/proto/sgenetwork/sge/mint/query.proto @@ -3,7 +3,7 @@ package sgenetwork.sge.mint; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "sge/mint/params.proto"; +import "sgenetwork/sge/mint/params.proto"; option go_package = "github.com/sge-network/sge/x/mint/types"; @@ -58,7 +58,7 @@ message QueryInflationRequest {} message QueryInflationResponse { // inflation is the current minting inflation value. bytes inflation = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } @@ -84,7 +84,7 @@ message QueryPhaseProvisionsRequest {} message QueryPhaseProvisionsResponse { // phase_provisions is the current minting phase provisions value. bytes phase_provisions = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; } diff --git a/proto/sgenetwork/sge/mint/tx.proto b/proto/sgenetwork/sge/mint/tx.proto new file mode 100644 index 00000000..1b118f07 --- /dev/null +++ b/proto/sgenetwork/sge/mint/tx.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; +package sgenetwork.sge.mint; + +option go_package = "github.com/sge-network/sge/x/mint/types"; + +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "sgenetwork/sge/mint/params.proto"; + +// Msg defines the x/mint Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams defines a governance operation for updating the x/mint module + // parameters. The authority is defaults to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "sge/x/mint/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/mint parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} diff --git a/proto/sge/orderbook/exposure.proto b/proto/sgenetwork/sge/orderbook/exposure.proto similarity index 100% rename from proto/sge/orderbook/exposure.proto rename to proto/sgenetwork/sge/orderbook/exposure.proto diff --git a/proto/sge/orderbook/genesis.proto b/proto/sgenetwork/sge/orderbook/genesis.proto similarity index 88% rename from proto/sge/orderbook/genesis.proto rename to proto/sgenetwork/sge/orderbook/genesis.proto index d7a54a05..830687d2 100644 --- a/proto/sge/orderbook/genesis.proto +++ b/proto/sgenetwork/sge/orderbook/genesis.proto @@ -2,11 +2,11 @@ syntax = "proto3"; package sgenetwork.sge.orderbook; import "gogoproto/gogo.proto"; -import "sge/orderbook/params.proto"; -import "sge/orderbook/orderbook.proto"; -import "sge/orderbook/participation.proto"; -import "sge/orderbook/stats.proto"; -import "sge/orderbook/exposure.proto"; +import "sgenetwork/sge/orderbook/params.proto"; +import "sgenetwork/sge/orderbook/orderbook.proto"; +import "sgenetwork/sge/orderbook/participation.proto"; +import "sgenetwork/sge/orderbook/stats.proto"; +import "sgenetwork/sge/orderbook/exposure.proto"; option go_package = "github.com/sge-network/sge/x/orderbook/types"; diff --git a/proto/sge/orderbook/orderbook.proto b/proto/sgenetwork/sge/orderbook/orderbook.proto similarity index 100% rename from proto/sge/orderbook/orderbook.proto rename to proto/sgenetwork/sge/orderbook/orderbook.proto diff --git a/proto/sge/orderbook/params.proto b/proto/sgenetwork/sge/orderbook/params.proto similarity index 100% rename from proto/sge/orderbook/params.proto rename to proto/sgenetwork/sge/orderbook/params.proto diff --git a/proto/sge/orderbook/participation.proto b/proto/sgenetwork/sge/orderbook/participation.proto similarity index 98% rename from proto/sge/orderbook/participation.proto rename to proto/sgenetwork/sge/orderbook/participation.proto index f795d658..0c95c985 100644 --- a/proto/sge/orderbook/participation.proto +++ b/proto/sgenetwork/sge/orderbook/participation.proto @@ -99,14 +99,16 @@ message OrderBookParticipation { // is_settled represents if the participation is settled or not. bool is_settled = 14 [ (gogoproto.moretags) = "yaml:\"is_settled\"" ]; - // returned_amount is the total returned amount to the user's account including reimbursed fees. + // returned_amount is the total returned amount to the user's account + // including reimbursed fees. string returned_amount = 15 [ (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"returned_amount\"" ]; - // reimbursed_fee is the fee reimbursed because of reasons such as market calcellation. + // reimbursed_fee is the fee reimbursed because of reasons such as market + // calcellation. string reimbursed_fee = 16 [ (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false, diff --git a/proto/sge/orderbook/query.proto b/proto/sgenetwork/sge/orderbook/query.proto similarity index 98% rename from proto/sge/orderbook/query.proto rename to proto/sgenetwork/sge/orderbook/query.proto index 24f4ed42..5832c5f1 100644 --- a/proto/sge/orderbook/query.proto +++ b/proto/sgenetwork/sge/orderbook/query.proto @@ -4,10 +4,10 @@ package sgenetwork.sge.orderbook; import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "sge/orderbook/params.proto"; -import "sge/orderbook/orderbook.proto"; -import "sge/orderbook/participation.proto"; -import "sge/orderbook/exposure.proto"; +import "sgenetwork/sge/orderbook/params.proto"; +import "sgenetwork/sge/orderbook/orderbook.proto"; +import "sgenetwork/sge/orderbook/participation.proto"; +import "sgenetwork/sge/orderbook/exposure.proto"; option go_package = "github.com/sge-network/sge/x/orderbook/types"; diff --git a/proto/sge/orderbook/stats.proto b/proto/sgenetwork/sge/orderbook/stats.proto similarity index 100% rename from proto/sge/orderbook/stats.proto rename to proto/sgenetwork/sge/orderbook/stats.proto diff --git a/proto/sge/ovm/genesis.proto b/proto/sgenetwork/sge/ovm/genesis.proto similarity index 81% rename from proto/sge/ovm/genesis.proto rename to proto/sgenetwork/sge/ovm/genesis.proto index eee7c585..dd1af1de 100644 --- a/proto/sge/ovm/genesis.proto +++ b/proto/sgenetwork/sge/ovm/genesis.proto @@ -2,10 +2,10 @@ syntax = "proto3"; package sgenetwork.sge.ovm; import "gogoproto/gogo.proto"; -import "sge/ovm/params.proto"; -import "sge/ovm/key_vault.proto"; -import "sge/ovm/proposal.proto"; -import "sge/ovm/stats.proto"; +import "sgenetwork/sge/ovm/params.proto"; +import "sgenetwork/sge/ovm/key_vault.proto"; +import "sgenetwork/sge/ovm/proposal.proto"; +import "sgenetwork/sge/ovm/stats.proto"; option go_package = "github.com/sge-network/sge/x/ovm/types"; diff --git a/proto/sge/ovm/key_vault.proto b/proto/sgenetwork/sge/ovm/key_vault.proto similarity index 100% rename from proto/sge/ovm/key_vault.proto rename to proto/sgenetwork/sge/ovm/key_vault.proto diff --git a/proto/sge/ovm/params.proto b/proto/sgenetwork/sge/ovm/params.proto similarity index 100% rename from proto/sge/ovm/params.proto rename to proto/sgenetwork/sge/ovm/params.proto diff --git a/proto/sge/ovm/proposal.proto b/proto/sgenetwork/sge/ovm/proposal.proto similarity index 95% rename from proto/sge/ovm/proposal.proto rename to proto/sgenetwork/sge/ovm/proposal.proto index d608797c..da6d7400 100644 --- a/proto/sge/ovm/proposal.proto +++ b/proto/sgenetwork/sge/ovm/proposal.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package sgenetwork.sge.ovm; import "gogoproto/gogo.proto"; -import "sge/ovm/ticket.proto"; -import "sge/ovm/vote.proto"; +import "sgenetwork/sge/ovm/ticket.proto"; +import "sgenetwork/sge/ovm/vote.proto"; option go_package = "github.com/sge-network/sge/x/ovm/types"; diff --git a/proto/sge/ovm/query.proto b/proto/sgenetwork/sge/ovm/query.proto similarity index 97% rename from proto/sge/ovm/query.proto rename to proto/sgenetwork/sge/ovm/query.proto index 1c7c003a..96e91b26 100644 --- a/proto/sge/ovm/query.proto +++ b/proto/sgenetwork/sge/ovm/query.proto @@ -4,8 +4,8 @@ package sgenetwork.sge.ovm; import "gogoproto/gogo.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "google/api/annotations.proto"; -import "sge/ovm/params.proto"; -import "sge/ovm/proposal.proto"; +import "sgenetwork/sge/ovm/params.proto"; +import "sgenetwork/sge/ovm/proposal.proto"; option go_package = "github.com/sge-network/sge/x/ovm/types"; diff --git a/proto/sge/ovm/stats.proto b/proto/sgenetwork/sge/ovm/stats.proto similarity index 100% rename from proto/sge/ovm/stats.proto rename to proto/sgenetwork/sge/ovm/stats.proto diff --git a/proto/sge/ovm/ticket.proto b/proto/sgenetwork/sge/ovm/ticket.proto similarity index 94% rename from proto/sge/ovm/ticket.proto rename to proto/sgenetwork/sge/ovm/ticket.proto index b7d4f9e4..17026555 100644 --- a/proto/sge/ovm/ticket.proto +++ b/proto/sgenetwork/sge/ovm/ticket.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package sgenetwork.sge.ovm; -import "sge/ovm/vote.proto"; +import "sgenetwork/sge/ovm/vote.proto"; option go_package = "github.com/sge-network/sge/x/ovm/types"; diff --git a/proto/sge/ovm/tx.proto b/proto/sgenetwork/sge/ovm/tx.proto similarity index 100% rename from proto/sge/ovm/tx.proto rename to proto/sgenetwork/sge/ovm/tx.proto diff --git a/proto/sge/ovm/vote.proto b/proto/sgenetwork/sge/ovm/vote.proto similarity index 100% rename from proto/sge/ovm/vote.proto rename to proto/sgenetwork/sge/ovm/vote.proto diff --git a/proto/sge/reward/authz.proto b/proto/sgenetwork/sge/reward/authz.proto similarity index 100% rename from proto/sge/reward/authz.proto rename to proto/sgenetwork/sge/reward/authz.proto diff --git a/proto/sge/reward/campaign.proto b/proto/sgenetwork/sge/reward/campaign.proto similarity index 97% rename from proto/sge/reward/campaign.proto rename to proto/sgenetwork/sge/reward/campaign.proto index b9605ccd..031673ca 100644 --- a/proto/sge/reward/campaign.proto +++ b/proto/sgenetwork/sge/reward/campaign.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sgenetwork.sge.reward; import "gogoproto/gogo.proto"; -import "sge/reward/reward.proto"; +import "sgenetwork/sge/reward/reward.proto"; option go_package = "github.com/sge-network/sge/x/reward/types"; diff --git a/proto/sge/reward/genesis.proto b/proto/sgenetwork/sge/reward/genesis.proto similarity index 81% rename from proto/sge/reward/genesis.proto rename to proto/sgenetwork/sge/reward/genesis.proto index 937a59bb..bf249eb2 100644 --- a/proto/sge/reward/genesis.proto +++ b/proto/sgenetwork/sge/reward/genesis.proto @@ -3,9 +3,9 @@ syntax = "proto3"; package sgenetwork.sge.reward; import "gogoproto/gogo.proto"; -import "sge/reward/params.proto"; -import "sge/reward/campaign.proto"; -import "sge/reward/reward.proto"; +import "sgenetwork/sge/reward/params.proto"; +import "sgenetwork/sge/reward/campaign.proto"; +import "sgenetwork/sge/reward/reward.proto"; option go_package = "github.com/sge-network/sge/x/reward/types"; diff --git a/proto/sge/reward/params.proto b/proto/sgenetwork/sge/reward/params.proto similarity index 100% rename from proto/sge/reward/params.proto rename to proto/sgenetwork/sge/reward/params.proto diff --git a/proto/sge/reward/query.proto b/proto/sgenetwork/sge/reward/query.proto similarity index 97% rename from proto/sge/reward/query.proto rename to proto/sgenetwork/sge/reward/query.proto index 106e86af..af571102 100644 --- a/proto/sge/reward/query.proto +++ b/proto/sgenetwork/sge/reward/query.proto @@ -5,9 +5,9 @@ package sgenetwork.sge.reward; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "sge/reward/params.proto"; -import "sge/reward/campaign.proto"; -import "sge/reward/reward.proto"; +import "sgenetwork/sge/reward/params.proto"; +import "sgenetwork/sge/reward/campaign.proto"; +import "sgenetwork/sge/reward/reward.proto"; option go_package = "github.com/sge-network/sge/x/reward/types"; diff --git a/proto/sge/reward/reward.proto b/proto/sgenetwork/sge/reward/reward.proto similarity index 100% rename from proto/sge/reward/reward.proto rename to proto/sgenetwork/sge/reward/reward.proto diff --git a/proto/sge/reward/ticket.proto b/proto/sgenetwork/sge/reward/ticket.proto similarity index 97% rename from proto/sge/reward/ticket.proto rename to proto/sgenetwork/sge/reward/ticket.proto index b9a58795..0062cbef 100644 --- a/proto/sge/reward/ticket.proto +++ b/proto/sgenetwork/sge/reward/ticket.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package sgenetwork.sge.reward; import "gogoproto/gogo.proto"; -import "sge/type/kyc.proto"; -import "sge/reward/reward.proto"; +import "sgenetwork/sge/type/kyc.proto"; +import "sgenetwork/sge/reward/reward.proto"; option go_package = "github.com/sge-network/sge/x/reward/types"; diff --git a/proto/sge/reward/tx.proto b/proto/sgenetwork/sge/reward/tx.proto similarity index 100% rename from proto/sge/reward/tx.proto rename to proto/sgenetwork/sge/reward/tx.proto diff --git a/proto/sge/subaccount/balance.proto b/proto/sgenetwork/sge/subaccount/balance.proto similarity index 100% rename from proto/sge/subaccount/balance.proto rename to proto/sgenetwork/sge/subaccount/balance.proto diff --git a/proto/sge/subaccount/genesis.proto b/proto/sgenetwork/sge/subaccount/genesis.proto similarity index 91% rename from proto/sge/subaccount/genesis.proto rename to proto/sgenetwork/sge/subaccount/genesis.proto index 03f5d85e..5ef9e728 100644 --- a/proto/sge/subaccount/genesis.proto +++ b/proto/sgenetwork/sge/subaccount/genesis.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package sgenetwork.sge.subaccount; import "gogoproto/gogo.proto"; -import "sge/subaccount/params.proto"; -import "sge/subaccount/balance.proto"; +import "sgenetwork/sge/subaccount/params.proto"; +import "sgenetwork/sge/subaccount/balance.proto"; option go_package = "github.com/sge-network/sge/x/subaccount/types"; diff --git a/proto/sge/subaccount/params.proto b/proto/sgenetwork/sge/subaccount/params.proto similarity index 100% rename from proto/sge/subaccount/params.proto rename to proto/sgenetwork/sge/subaccount/params.proto diff --git a/proto/sge/subaccount/query.proto b/proto/sgenetwork/sge/subaccount/query.proto similarity index 93% rename from proto/sge/subaccount/query.proto rename to proto/sgenetwork/sge/subaccount/query.proto index 882953ae..cb8602e7 100644 --- a/proto/sge/subaccount/query.proto +++ b/proto/sgenetwork/sge/subaccount/query.proto @@ -5,8 +5,8 @@ option go_package = "github.com/sge-network/sge/x/subaccount/types"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "sge/subaccount/balance.proto"; -import "sge/subaccount/params.proto"; +import "sgenetwork/sge/subaccount/balance.proto"; +import "sgenetwork/sge/subaccount/params.proto"; // Query defines the gRPC querier service. service Query { diff --git a/proto/sge/subaccount/ticket.proto b/proto/sgenetwork/sge/subaccount/ticket.proto similarity index 95% rename from proto/sge/subaccount/ticket.proto rename to proto/sgenetwork/sge/subaccount/ticket.proto index 36770bc2..94f1f38d 100644 --- a/proto/sge/subaccount/ticket.proto +++ b/proto/sgenetwork/sge/subaccount/ticket.proto @@ -3,7 +3,7 @@ package sgenetwork.sge.subaccount; import "gogoproto/gogo.proto"; -import "sge/bet/tx.proto"; +import "sgenetwork/sge/bet/tx.proto"; option go_package = "github.com/sge-network/sge/x/subaccount/types"; diff --git a/proto/sge/subaccount/tx.proto b/proto/sgenetwork/sge/subaccount/tx.proto similarity index 96% rename from proto/sge/subaccount/tx.proto rename to proto/sgenetwork/sge/subaccount/tx.proto index c2384ea2..f5abc264 100644 --- a/proto/sge/subaccount/tx.proto +++ b/proto/sgenetwork/sge/subaccount/tx.proto @@ -1,9 +1,9 @@ syntax = "proto3"; package sgenetwork.sge.subaccount; -import "sge/subaccount/balance.proto"; -import "sge/house/tx.proto"; -import "sge/bet/tx.proto"; +import "sgenetwork/sge/subaccount/balance.proto"; +import "sgenetwork/sge/house/tx.proto"; +import "sgenetwork/sge/bet/tx.proto"; import "gogoproto/gogo.proto"; option go_package = "github.com/sge-network/sge/x/subaccount/types"; diff --git a/proto/sge/type/kyc.proto b/proto/sgenetwork/sge/type/kyc.proto similarity index 100% rename from proto/sge/type/kyc.proto rename to proto/sgenetwork/sge/type/kyc.proto diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 9dd7c880..e40db694 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -2,29 +2,14 @@ set -eo pipefail -# get protoc executions -go get github.com/cosmos/gogoproto@v1.4.11 2>/dev/null - -# get cosmos sdk from github -go get github.com/cosmos/cosmos-sdk@v0.46.16 2>/dev/null - echo "Generating gogo proto code" cd proto -proto_dirs=$(find ./sge -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) -for dir in $proto_dirs; do - for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do - if grep go_package $file &>/dev/null; then - buf generate --template buf.gen.gogo.yaml $file - fi - done -done - +buf mod update cd .. +buf generate # move proto files to the right places -# -# Note: Proto files are suffixed with the current binary version. -cp -r github.com/sge-network/sge/* ./ -rm -rf github.com +cp -r ./github.com/sge-network/sge/x/* x/ +cp -r ./github.com/sge-network/sge/types/* types/ -go mod tidy -compat=1.21 +rm -rf ./github.com diff --git a/testutil/network/network.go b/testutil/network/network.go index 0f7a117a..291f0317 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -5,17 +5,15 @@ import ( "testing" "time" + tmdb "github.com/cometbft/cometbft-db" + tmrand "github.com/cometbft/cometbft/libs/rand" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/keyring" - - tmrand "github.com/tendermint/tendermint/libs/rand" - tmdb "github.com/tendermint/tm-db" - - pruningtypes "github.com/cosmos/cosmos-sdk/pruning/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" - sdksimapp "github.com/cosmos/cosmos-sdk/simapp" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" "github.com/cosmos/cosmos-sdk/testutil/network" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -54,25 +52,35 @@ func New(t *testing.T, configs ...network.Config) *network.Network { // DefaultConfig will initialize config for the network with custom application, // genesis and single validator. All other parameters are inherited from cosmos-sdk/testutil/network.DefaultConfig func DefaultConfig() network.Config { - encoding := app.MakeEncodingConfig() + var ( + encoding = app.MakeEncodingConfig() + chainID = "chain-" + tmrand.NewRand().Str(6) + ) return network.Config{ Codec: encoding.Marshaler, TxConfig: encoding.TxConfig, LegacyAmino: encoding.Amino, InterfaceRegistry: encoding.InterfaceRegistry, AccountRetriever: authtypes.AccountRetriever{}, - AppConstructor: func(val network.Validator) servertypes.Application { + AppConstructor: func(val network.ValidatorI) servertypes.Application { return app.NewSgeApp( - val.Ctx.Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.Ctx.Config.RootDir, 0, + val.GetCtx().Logger, + tmdb.NewMemDB(), + nil, + true, + map[int64]bool{}, + val.GetCtx().Config.RootDir, + 0, encoding, - sdksimapp.EmptyAppOptions{}, - baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), - baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), + simtestutil.EmptyAppOptions{}, + baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), + baseapp.SetMinGasPrices(val.GetAppConfig().MinGasPrices), + baseapp.SetChainID(chainID), ) }, GenesisState: app.ModuleBasics.DefaultGenesis(encoding.Marshaler), TimeoutCommit: 2 * time.Second, - ChainID: "chain-" + tmrand.NewRand().Str(6), + ChainID: chainID, NumValidators: 1, BondDenom: sdk.DefaultBondDenom, MinGasPrices: fmt.Sprintf("0.000006%s", sdk.DefaultBondDenom), diff --git a/testutil/simapp/params.go b/testutil/simapp/params.go index a05820f4..41bc5db6 100644 --- a/testutil/simapp/params.go +++ b/testutil/simapp/params.go @@ -4,9 +4,9 @@ import ( "crypto/ed25519" sdkmath "cosmossdk.io/math" + "github.com/cometbft/cometbft/crypto/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/tendermint/tendermint/crypto/secp256k1" ) const ( diff --git a/testutil/simapp/simapp.go b/testutil/simapp/simapp.go index 55341a96..eafaa75c 100644 --- a/testutil/simapp/simapp.go +++ b/testutil/simapp/simapp.go @@ -8,31 +8,28 @@ import ( "testing" "time" - "github.com/spf13/cast" - sdkmath "cosmossdk.io/math" + tmdb "github.com/cometbft/cometbft-db" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/crypto/secp256k1" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + tmtypes "github.com/cometbft/cometbft/types" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdksimapp "github.com/cosmos/cosmos-sdk/simapp" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingKeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" + stakingtestutil "github.com/cosmos/cosmos-sdk/x/staking/testutil" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - - abci "github.com/tendermint/tendermint/abci/types" - "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmtypes "github.com/tendermint/tendermint/types" - tmdb "github.com/tendermint/tm-db" - "github.com/sge-network/sge/app" "github.com/sge-network/sge/app/params" "github.com/sge-network/sge/utils" mintmoduletypes "github.com/sge-network/sge/x/mint/types" ovmtypes "github.com/sge-network/sge/x/ovm/types" + "github.com/spf13/cast" ) // TestApp is used as a container of the sge app @@ -58,7 +55,7 @@ func setup(withGenesis bool, invCheckPeriod uint) (*TestApp, app.GenesisState) { "", invCheckPeriod, encCdc, - sdksimapp.EmptyAppOptions{}, + simtestutil.EmptyAppOptions{}, ) if withGenesis { return &TestApp{SgeApp: *appInstance}, app.NewDefaultGenesisState() @@ -98,6 +95,7 @@ func SetupWithGenesisAccounts( balances, totalSupply, []banktypes.Metadata{}, + []banktypes.SendEnabled{}, ) genesisState[banktypes.ModuleName] = appInstance.AppCodec().MustMarshalJSON(bankGenesis) @@ -248,8 +246,8 @@ func SetModuleAccountCoins( } // DefaultConsensusParams parameters for tendermint consensus -var DefaultConsensusParams = &abci.ConsensusParams{ - Block: &abci.BlockParams{ +var DefaultConsensusParams = &tmproto.ConsensusParams{ + Block: &tmproto.BlockParams{ MaxBytes: 200000, MaxGas: 2000000, }, @@ -277,7 +275,7 @@ func stakingDefaultTestGenesis( p1 := int64(8) p2 := int64(2) - pks := sdksimapp.CreateTestPubKeys(2) + pks := simtestutil.CreateTestPubKeys(2) valConsPk1 := pks[0] valConsPk2 := pks[1] @@ -302,12 +300,12 @@ func stakingDefaultTestGenesis( ConsensusPubkey: pk0, Status: stakingtypes.Bonded, Tokens: valPower1, - DelegatorShares: sdk.NewDecFromInt(valPower1), + DelegatorShares: sdkmath.LegacyNewDecFromInt(valPower1), Description: stakingtypes.NewDescription("hoop", "", "", "", ""), Commission: stakingtypes.NewCommission( - sdk.NewDecWithPrec(5, 1), - sdk.NewDecWithPrec(5, 1), - sdk.NewDec(0), + sdkmath.LegacyNewDecWithPrec(5, 1), + sdkmath.LegacyNewDecWithPrec(5, 1), + sdkmath.LegacyNewDec(0), ), } bondedVal2 := stakingtypes.Validator{ @@ -315,12 +313,12 @@ func stakingDefaultTestGenesis( ConsensusPubkey: pk1, Status: stakingtypes.Bonded, Tokens: valPower2, - DelegatorShares: sdk.NewDecFromInt(valPower2), + DelegatorShares: sdkmath.LegacyNewDecFromInt(valPower2), Description: stakingtypes.NewDescription("bloop", "", "", "", ""), Commission: stakingtypes.NewCommission( - sdk.NewDecWithPrec(5, 1), - sdk.NewDecWithPrec(5, 1), - sdk.NewDec(0), + sdkmath.LegacyNewDecWithPrec(5, 1), + sdkmath.LegacyNewDecWithPrec(5, 1), + sdkmath.LegacyNewDec(0), ), } @@ -372,8 +370,8 @@ func stakingDefaultTestGenesis( } // NewStakingHelper creates staking Handler wrapper for tests -func NewStakingHelper(t *testing.T, ctx sdk.Context, k stakingKeeper.Keeper) *teststaking.Helper { - helper := teststaking.NewHelper(t, ctx, k) +func NewStakingHelper(t *testing.T, ctx sdk.Context, k stakingKeeper.Keeper) *stakingtestutil.Helper { + helper := stakingtestutil.NewHelper(t, ctx, &k) helper.Commission = validatorDefaultCommission() helper.Denom = params.DefaultBondDenom return helper @@ -381,9 +379,9 @@ func NewStakingHelper(t *testing.T, ctx sdk.Context, k stakingKeeper.Keeper) *te func validatorDefaultCommission() stakingtypes.CommissionRates { return stakingtypes.NewCommissionRates( - sdk.MustNewDecFromStr("0.1"), - sdk.MustNewDecFromStr("0.2"), - sdk.MustNewDecFromStr("0.01"), + sdkmath.LegacyMustNewDecFromStr("0.1"), + sdkmath.LegacyMustNewDecFromStr("0.2"), + sdkmath.LegacyMustNewDecFromStr("0.01"), ) } diff --git a/testutil/simapp/test_helpers.go b/testutil/simapp/test_helpers.go index 00ff84d5..c2a6fd8e 100644 --- a/testutil/simapp/test_helpers.go +++ b/testutil/simapp/test_helpers.go @@ -15,7 +15,7 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrtypes "github.com/cosmos/cosmos-sdk/types/errors" ) // PKs is a slice of public keys for test @@ -97,7 +97,7 @@ func newPubKeyFromHex(pk string) (res cryptotypes.PubKey) { panic(err) } if len(pkBytes) != ed25519.PubKeySize { - panic(sdkerrors.Wrap(errors.ErrInvalidPubKey, "invalid pubkey size")) + panic(sdkerrors.Wrap(sdkerrtypes.ErrInvalidPubKey, "invalid pubkey size")) } return &ed25519.PubKey{Key: pkBytes} } diff --git a/tools/tools.go b/tools/tools.go new file mode 100644 index 00000000..6e7a12d4 --- /dev/null +++ b/tools/tools.go @@ -0,0 +1,11 @@ +//go:build tools + +package tools + +import ( + _ "github.com/cosmos/gogoproto/protoc-gen-gocosmos" + _ "github.com/golang/protobuf/protoc-gen-go" + _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" + _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2" +) diff --git a/types/kyc.pb.go b/types/kyc.pb.go index 3bb5e3e7..c9d0d437 100644 --- a/types/kyc.pb.go +++ b/types/kyc.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/type/kyc.proto +// source: sgenetwork/sge/type/kyc.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -37,7 +37,7 @@ func (m *KycDataPayload) Reset() { *m = KycDataPayload{} } func (m *KycDataPayload) String() string { return proto.CompactTextString(m) } func (*KycDataPayload) ProtoMessage() {} func (*KycDataPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_aefa821fa9aaec33, []int{0} + return fileDescriptor_2be32303a1d48b19, []int{0} } func (m *KycDataPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,24 +91,24 @@ func init() { proto.RegisterType((*KycDataPayload)(nil), "sgenetwork.sge.type.KycDataPayload") } -func init() { proto.RegisterFile("sge/type/kyc.proto", fileDescriptor_aefa821fa9aaec33) } +func init() { proto.RegisterFile("sgenetwork/sge/type/kyc.proto", fileDescriptor_2be32303a1d48b19) } -var fileDescriptor_aefa821fa9aaec33 = []byte{ - // 217 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0x4e, 0x4f, 0xd5, - 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0xcf, 0xae, 0x4c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x2e, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, 0x03, - 0x49, 0x4b, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xe5, 0xf5, 0x41, 0x2c, 0x88, 0x52, 0xa5, 0x24, - 0x2e, 0x3e, 0xef, 0xca, 0x64, 0x97, 0xc4, 0x92, 0xc4, 0x80, 0xc4, 0xca, 0x9c, 0xfc, 0xc4, 0x14, - 0x21, 0x31, 0x2e, 0xb6, 0xcc, 0xf4, 0xbc, 0xfc, 0xa2, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x8e, - 0x20, 0x28, 0x4f, 0x48, 0x8a, 0x8b, 0x23, 0xb1, 0xa0, 0xa0, 0x28, 0xbf, 0x2c, 0x35, 0x45, 0x82, - 0x09, 0x2c, 0x03, 0xe7, 0x0b, 0xc9, 0x70, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x2b, 0x30, 0x6a, 0x70, - 0x3a, 0xf1, 0x3c, 0xba, 0x27, 0xcf, 0xe4, 0xe9, 0xf2, 0xea, 0x9e, 0x3c, 0x53, 0x66, 0x4a, 0x10, - 0x53, 0x66, 0x8a, 0x93, 0xd5, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, - 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x29, - 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x17, 0xa7, 0xa7, 0xea, 0x42, - 0x1d, 0xad, 0x0f, 0xf3, 0x53, 0x71, 0x12, 0x1b, 0xd8, 0x99, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x34, 0x51, 0xd7, 0x69, 0xe7, 0x00, 0x00, 0x00, +var fileDescriptor_2be32303a1d48b19 = []byte{ + // 215 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, + 0xcf, 0xae, 0x4c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x46, 0x48, 0xeb, 0x15, 0xa7, + 0xa7, 0xea, 0x81, 0xa4, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xf2, 0xfa, 0x20, 0x16, 0x44, + 0xa9, 0x52, 0x12, 0x17, 0x9f, 0x77, 0x65, 0xb2, 0x4b, 0x62, 0x49, 0x62, 0x40, 0x62, 0x65, 0x4e, + 0x7e, 0x62, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x66, 0x7a, 0x5e, 0x7e, 0x51, 0xaa, 0x04, 0xa3, 0x02, + 0xa3, 0x06, 0x47, 0x10, 0x94, 0x27, 0x24, 0xc5, 0xc5, 0x91, 0x58, 0x50, 0x50, 0x94, 0x5f, 0x96, + 0x9a, 0x22, 0xc1, 0x04, 0x96, 0x81, 0xf3, 0x85, 0x64, 0xb8, 0x98, 0x32, 0x53, 0x24, 0x98, 0x15, + 0x18, 0x35, 0x38, 0x9d, 0x78, 0x1e, 0xdd, 0x93, 0x67, 0xf2, 0x74, 0x79, 0x75, 0x4f, 0x9e, 0x29, + 0x33, 0x25, 0x88, 0x29, 0x33, 0xc5, 0xc9, 0xea, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, + 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, + 0x18, 0xa2, 0x14, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0x41, 0xfe, 0xd0, + 0x45, 0xf7, 0x53, 0x71, 0x12, 0x1b, 0xd8, 0x99, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, + 0x12, 0x37, 0x59, 0xf2, 0x00, 0x00, 0x00, } func (m *KycDataPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/client/cli/query_bet_test.go b/x/bet/client/cli/query_bet_test.go index cda533ac..e10319a9 100644 --- a/x/bet/client/cli/query_bet_test.go +++ b/x/bet/client/cli/query_bet_test.go @@ -6,19 +6,16 @@ import ( "testing" "time" + sdkmath "cosmossdk.io/math" + tmcli "github.com/cometbft/cometbft/libs/cli" + "github.com/cosmos/cosmos-sdk/client/flags" + clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/google/uuid" "github.com/spf13/cast" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - tmcli "github.com/tendermint/tendermint/libs/cli" - - sdkmath "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sge-network/sge/testutil/network" "github.com/sge-network/sge/testutil/nullify" "github.com/sge-network/sge/testutil/simapp" @@ -68,7 +65,7 @@ func networkWithBetObjects(t *testing.T, n int) (*network.Network, []types.Bet) OddsValue: "10", Amount: sdkmath.NewInt(10), Fee: sdkmath.NewInt(1), - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), } nullify.Fill(&bet) diff --git a/x/bet/client/cli/tx_bet_test.go b/x/bet/client/cli/tx_bet_test.go index 0aa75f19..45dc68ca 100644 --- a/x/bet/client/cli/tx_bet_test.go +++ b/x/bet/client/cli/tx_bet_test.go @@ -23,7 +23,7 @@ func TestTXBetCLI(t *testing.T) { commonArgs := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock), + fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), fmt.Sprintf( "--%s=%s", flags.FlagFees, diff --git a/x/bet/keeper/bet_test.go b/x/bet/keeper/bet_test.go index d270d4b1..7f5ef1a2 100644 --- a/x/bet/keeper/bet_test.go +++ b/x/bet/keeper/bet_test.go @@ -32,7 +32,7 @@ func createNBet( items[i].Amount = sdkmath.NewInt(10) items[i].Fee = sdkmath.NewInt(1) items[i].MarketUID = testMarketUID - items[i].MaxLossMultiplier = sdk.NewDec(10) + items[i].MaxLossMultiplier = sdkmath.LegacyNewDec(10) id := uint64(i + 1) keeper.SetBet(ctx, items[i], id) diff --git a/x/bet/keeper/keeper.go b/x/bet/keeper/keeper.go index b319ba0e..37e14353 100644 --- a/x/bet/keeper/keeper.go +++ b/x/bet/keeper/keeper.go @@ -3,8 +3,7 @@ package keeper import ( "fmt" - "github.com/tendermint/tendermint/libs/log" - + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/bet/keeper/keeper_test.go b/x/bet/keeper/keeper_test.go index 76456fcf..47732bd6 100644 --- a/x/bet/keeper/keeper_test.go +++ b/x/bet/keeper/keeper_test.go @@ -34,20 +34,20 @@ var ( UID: testOddsUID1, MarketUID: testMarketUID, Value: "4.20", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), } testBetOdds = &[]types.BetOdds{ { UID: testOddsUID1, - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, { UID: testOddsUID2, - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, { UID: testOddsUID3, - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, } testCreator string diff --git a/x/bet/keeper/settle_test.go b/x/bet/keeper/settle_test.go index 703492de..7bba1932 100644 --- a/x/bet/keeper/settle_test.go +++ b/x/bet/keeper/settle_test.go @@ -8,7 +8,6 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrtypes "github.com/cosmos/cosmos-sdk/types/errors" "github.com/sge-network/sge/testutil/simapp" @@ -52,7 +51,7 @@ func TestSettleBet(t *testing.T) { bet: &types.Bet{ MarketUID: testMarketUID, OddsValue: "10", - Amount: sdk.NewInt(1000000), + Amount: sdkmath.NewInt(1000000), Creator: testCreator, OddsUID: testOddsUID1, Status: types.Bet_STATUS_SETTLED, @@ -73,7 +72,7 @@ func TestSettleBet(t *testing.T) { bet: &types.Bet{ MarketUID: testMarketUID, OddsValue: "10", - Amount: sdk.NewInt(1000000), + Amount: sdkmath.NewInt(1000000), Creator: testCreator, OddsUID: testOddsUID1, }, @@ -92,7 +91,7 @@ func TestSettleBet(t *testing.T) { bet: &types.Bet{ MarketUID: testMarketUID, OddsValue: "10", - Amount: sdk.NewInt(1000000), + Amount: sdkmath.NewInt(1000000), Creator: testCreator, OddsUID: testOddsUID1, }, @@ -111,7 +110,7 @@ func TestSettleBet(t *testing.T) { bet: &types.Bet{ MarketUID: testMarketUID, OddsValue: "10", - Amount: sdk.NewInt(1000000), + Amount: sdkmath.NewInt(1000000), Creator: testCreator, OddsUID: testOddsUID1, }, @@ -131,7 +130,7 @@ func TestSettleBet(t *testing.T) { bet: &types.Bet{ MarketUID: testMarketUID, OddsValue: "10", - Amount: sdk.NewInt(1000000), + Amount: sdkmath.NewInt(1000000), Creator: testCreator, OddsUID: testOddsUID1, @@ -245,7 +244,7 @@ func TestBatchSettleBet(t *testing.T) { UID: testOddsUID1, MarketUID: marketUID, Value: "4.20", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, ) } diff --git a/x/bet/keeper/wager_test.go b/x/bet/keeper/wager_test.go index c7482bb7..11fc0464 100644 --- a/x/bet/keeper/wager_test.go +++ b/x/bet/keeper/wager_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrtypes "github.com/cosmos/cosmos-sdk/types/errors" "github.com/sge-network/sge/testutil/simapp" @@ -33,8 +32,8 @@ func TestWager(t *testing.T) { MarketUID: "notExistMarketUID", }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: sdkerrtypes.ErrInvalidAddress, }, @@ -46,8 +45,8 @@ func TestWager(t *testing.T) { Creator: simapp.TestParamUsers["user1"].Address.String(), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: types.ErrNoMatchingMarket, }, @@ -63,8 +62,8 @@ func TestWager(t *testing.T) { Creator: simapp.TestParamUsers["user1"].Address.String(), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: types.ErrInactiveMarket, }, @@ -80,8 +79,8 @@ func TestWager(t *testing.T) { Creator: simapp.TestParamUsers["user1"].Address.String(), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: types.ErrInactiveMarket, }, @@ -98,8 +97,8 @@ func TestWager(t *testing.T) { Creator: simapp.TestParamUsers["user1"].Address.String(), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: types.ErrEndTSIsPassed, }, @@ -127,8 +126,8 @@ func TestWager(t *testing.T) { Creator: simapp.TestParamUsers["user1"].Address.String(), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: types.ErrOddsUIDNotExist, }, @@ -156,8 +155,8 @@ func TestWager(t *testing.T) { Creator: simapp.TestParamUsers["user1"].Address.String(), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, err: types.ErrBetAmountIsLow, }, @@ -177,13 +176,13 @@ func TestWager(t *testing.T) { UID: "odds1", MarketUID: "uid_success", Value: "2.52", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, { UID: "odds2", MarketUID: "uid_success", Value: "1.50", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, }, bet: &types.Bet{ @@ -193,11 +192,11 @@ func TestWager(t *testing.T) { Amount: sdkmath.NewInt(1000000), OddsValue: "5", Creator: simapp.TestParamUsers["user1"].Address.String(), - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, betOdds: map[string]*types.BetOddsCompact{ - "odds1": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("0.1")}, - "odds2": {UID: "odds1", MaxLossMultiplier: sdk.MustNewDecFromStr("1.0")}, + "odds1": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1")}, + "odds2": {UID: "odds1", MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("1.0")}, }, }, } diff --git a/x/bet/module.go b/x/bet/module.go index 58a442f5..2400ab4f 100644 --- a/x/bet/module.go +++ b/x/bet/module.go @@ -9,7 +9,7 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -126,15 +126,9 @@ func NewAppModule( // Name returns the module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the module's message routing key. -func (am AppModule) Route() sdk.Route { return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) } - // QuerierRoute returns the module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the module's Querier. -func (AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { return nil } - // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/bet/module_simulation.go b/x/bet/module_simulation.go index c4fc5c56..333622ae 100644 --- a/x/bet/module_simulation.go +++ b/x/bet/module_simulation.go @@ -5,7 +5,7 @@ import ( "math/rand" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -20,7 +20,7 @@ import ( var ( _ = sample.AccAddress _ = betsimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -38,15 +38,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return betsimulation.ParamChanges(r) -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = betsimulation.NewDecodeStore(am.cdc) diff --git a/x/bet/simulation/bet.go b/x/bet/simulation/bet.go index f0324eae..8cd39de5 100644 --- a/x/bet/simulation/bet.go +++ b/x/bet/simulation/bet.go @@ -4,13 +4,12 @@ import ( //#nosec "math/rand" - "github.com/spf13/cast" - + simappparams "cosmossdk.io/simapp/params" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/spf13/cast" "github.com/sge-network/sge/x/bet/keeper" "github.com/sge-network/sge/x/bet/types" diff --git a/x/bet/simulation/decoder_test.go b/x/bet/simulation/decoder_test.go index 4b09ad18..fc6893ad 100644 --- a/x/bet/simulation/decoder_test.go +++ b/x/bet/simulation/decoder_test.go @@ -8,7 +8,6 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/kv" "github.com/sge-network/sge/app" @@ -32,7 +31,7 @@ func TestDecodeStore(t *testing.T) { UID: uuid.NewString(), MarketUID: uuid.NewString(), Value: "100", - MaxLossMultiplier: sdk.NewDec(1), + MaxLossMultiplier: sdkmath.LegacyNewDec(1), }, types.MetaData{ SelectedOddsType: types.OddsType_ODDS_TYPE_DECIMAL, diff --git a/x/bet/simulation/params.go b/x/bet/simulation/params.go index 8c0357ce..84990630 100644 --- a/x/bet/simulation/params.go +++ b/x/bet/simulation/params.go @@ -22,24 +22,24 @@ const ( // ParamChanges defines the parameters that can be modified by param change proposals // on the simulation -func ParamChanges(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{ - simulation.NewSimParamChange(types.ModuleName, keyBatchSettlementCount, +func ParamChanges(_ *rand.Rand) []simtypes.LegacyParamChange { + return []simtypes.LegacyParamChange{ + simulation.NewSimLegacyParamChange(types.ModuleName, keyBatchSettlementCount, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenBatchSettlementCount(r)) }, ), - simulation.NewSimParamChange(types.ModuleName, keyMaxBetByUIDQueryCount, + simulation.NewSimLegacyParamChange(types.ModuleName, keyMaxBetByUIDQueryCount, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenMaxBetByUIDQueryCount(r)) }, ), - simulation.NewSimParamChange(types.ModuleName, keyMinAmount, + simulation.NewSimLegacyParamChange(types.ModuleName, keyMinAmount, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenMinAmount(r)) }, ), - simulation.NewSimParamChange(types.ModuleName, keyMinFee, + simulation.NewSimLegacyParamChange(types.ModuleName, keyMinFee, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenFee(r)) }, diff --git a/x/bet/types/bet.pb.go b/x/bet/types/bet.pb.go index fe0eee5b..69067b70 100644 --- a/x/bet/types/bet.pb.go +++ b/x/bet/types/bet.pb.go @@ -1,14 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/bet.proto +// source: sgenetwork/sge/bet/bet.proto package types import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -70,7 +69,7 @@ func (x Bet_Status) String() string { } func (Bet_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{0, 0} + return fileDescriptor_7e3a1b484a8c9a09, []int{0, 0} } // Result of the bet. @@ -110,7 +109,7 @@ func (x Bet_Result) String() string { } func (Bet_Result) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{0, 1} + return fileDescriptor_7e3a1b484a8c9a09, []int{0, 1} } // Bet is the transaction order placed by a bettor on a specific event and odd @@ -140,7 +139,7 @@ type Bet struct { // settlement_height is the block height at which the bet is settled. SettlementHeight int64 `protobuf:"varint,12,opt,name=settlement_height,json=settlementHeight,proto3" json:"settlement_height,omitempty"` // max_loss_multiplier is the multiplier coefficient of max loss. - MaxLossMultiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,13,opt,name=max_loss_multiplier,json=maxLossMultiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_loss_multiplier"` + MaxLossMultiplier cosmossdk_io_math.LegacyDec `protobuf:"bytes,13,opt,name=max_loss_multiplier,json=maxLossMultiplier,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_loss_multiplier"` // bet_fulfillment is the fulfillment data. BetFulfillment []*BetFulfillment `protobuf:"bytes,14,rep,name=bet_fulfillment,json=betFulfillment,proto3" json:"bet_fulfillment,omitempty"` // meta is metadata for bet @@ -151,7 +150,7 @@ func (m *Bet) Reset() { *m = Bet{} } func (m *Bet) String() string { return proto.CompactTextString(m) } func (*Bet) ProtoMessage() {} func (*Bet) Descriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{0} + return fileDescriptor_7e3a1b484a8c9a09, []int{0} } func (m *Bet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -269,7 +268,7 @@ func (m *UID2ID) Reset() { *m = UID2ID{} } func (m *UID2ID) String() string { return proto.CompactTextString(m) } func (*UID2ID) ProtoMessage() {} func (*UID2ID) Descriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{1} + return fileDescriptor_7e3a1b484a8c9a09, []int{1} } func (m *UID2ID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -324,7 +323,7 @@ func (m *PendingBet) Reset() { *m = PendingBet{} } func (m *PendingBet) String() string { return proto.CompactTextString(m) } func (*PendingBet) ProtoMessage() {} func (*PendingBet) Descriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{2} + return fileDescriptor_7e3a1b484a8c9a09, []int{2} } func (m *PendingBet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -379,7 +378,7 @@ func (m *SettledBet) Reset() { *m = SettledBet{} } func (m *SettledBet) String() string { return proto.CompactTextString(m) } func (*SettledBet) ProtoMessage() {} func (*SettledBet) Descriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{3} + return fileDescriptor_7e3a1b484a8c9a09, []int{3} } func (m *SettledBet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -443,7 +442,7 @@ func (m *BetFulfillment) Reset() { *m = BetFulfillment{} } func (m *BetFulfillment) String() string { return proto.CompactTextString(m) } func (*BetFulfillment) ProtoMessage() {} func (*BetFulfillment) Descriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{4} + return fileDescriptor_7e3a1b484a8c9a09, []int{4} } func (m *BetFulfillment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -498,7 +497,7 @@ func (m *MetaData) Reset() { *m = MetaData{} } func (m *MetaData) String() string { return proto.CompactTextString(m) } func (*MetaData) ProtoMessage() {} func (*MetaData) Descriptor() ([]byte, []int) { - return fileDescriptor_9bc076bb1a4d9f6e, []int{5} + return fileDescriptor_7e3a1b484a8c9a09, []int{5} } func (m *MetaData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -552,70 +551,69 @@ func init() { proto.RegisterType((*MetaData)(nil), "sgenetwork.sge.bet.MetaData") } -func init() { proto.RegisterFile("sge/bet/bet.proto", fileDescriptor_9bc076bb1a4d9f6e) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/bet.proto", fileDescriptor_7e3a1b484a8c9a09) } -var fileDescriptor_9bc076bb1a4d9f6e = []byte{ - // 949 bytes of a gzipped FileDescriptorProto +var fileDescriptor_7e3a1b484a8c9a09 = []byte{ + // 944 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x41, 0x6f, 0xe2, 0x46, - 0x14, 0xc6, 0xc0, 0x92, 0xf0, 0x92, 0x10, 0x33, 0xd9, 0xee, 0x5a, 0xe9, 0x2e, 0x20, 0x4b, 0xad, - 0x90, 0xaa, 0x35, 0x12, 0xab, 0xdd, 0x43, 0x7b, 0x29, 0x60, 0xa7, 0xa1, 0x25, 0x40, 0x07, 0x68, - 0xa5, 0x3d, 0xd4, 0x32, 0x78, 0x42, 0xdc, 0xd8, 0x18, 0x79, 0x86, 0x36, 0xf9, 0x03, 0x3d, 0xf7, - 0x27, 0xf4, 0xe7, 0xec, 0x71, 0x8f, 0x55, 0x0f, 0xa8, 0x25, 0xb7, 0x3d, 0xee, 0x2f, 0xa8, 0x66, - 0x3c, 0x10, 0xa3, 0xa6, 0xd9, 0x1c, 0x12, 0x66, 0xbe, 0xf9, 0xbe, 0xef, 0x8d, 0xdf, 0xbc, 0x79, - 0x03, 0x45, 0x3a, 0x25, 0xb5, 0x31, 0x61, 0xfc, 0xcf, 0x98, 0x47, 0x21, 0x0b, 0x11, 0xa2, 0x53, - 0x32, 0x23, 0xec, 0xd7, 0x30, 0xba, 0x34, 0xe8, 0x94, 0x18, 0x63, 0xc2, 0x8e, 0x1f, 0x4f, 0xc3, - 0x69, 0x28, 0x96, 0x6b, 0x7c, 0x14, 0x33, 0x8f, 0x9f, 0xae, 0xc5, 0xa1, 0xeb, 0x52, 0x9b, 0x5d, - 0xcf, 0x49, 0xbc, 0xa0, 0xbf, 0xdf, 0x81, 0x4c, 0x93, 0x30, 0x54, 0x81, 0xcc, 0xc2, 0x73, 0x35, - 0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0xf8, 0xa0, 0x8f, 0x93, 0x74, 0x51, 0xfe, 0x6b, 0x5f, 0xbf, + 0x5e, 0x14, 0x94, 0x37, 0x8b, 0x82, 0xf2, 0xf7, 0xa2, 0xa0, 0xfc, 0x76, 0x5f, 0xd8, 0x79, 0x73, + 0x5f, 0xd8, 0xf9, 0xe3, 0xbe, 0xb0, 0xf3, 0xea, 0xb3, 0x91, 0xc7, 0x6e, 0xa6, 0x03, 0x63, 0x18, + 0x06, 0xbc, 0xef, 0x7d, 0x91, 0xec, 0x81, 0x77, 0xa2, 0x0b, 0xf2, 0x6d, 0xd2, 0x41, 0x56, 0xb4, + 0xc0, 0xe7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x63, 0x11, 0x7a, 0x70, 0x07, 0x00, 0x00, } func (m *Bet) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/bet_odds.pb.go b/x/bet/types/bet_odds.pb.go index 1be00361..ce0a848f 100644 --- a/x/bet/types/bet_odds.pb.go +++ b/x/bet/types/bet_odds.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/bet_odds.proto +// source: sgenetwork/sge/bet/bet_odds.proto package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -36,14 +36,14 @@ type BetOdds struct { // message. Required | NonUnique | "1.286" or "2/7" or "+500" Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // max_loss_multiplier is the factor for calculating max loss for given odds - MaxLossMultiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=max_loss_multiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_loss_multiplier"` + MaxLossMultiplier cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=max_loss_multiplier,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_loss_multiplier"` } func (m *BetOdds) Reset() { *m = BetOdds{} } func (m *BetOdds) String() string { return proto.CompactTextString(m) } func (*BetOdds) ProtoMessage() {} func (*BetOdds) Descriptor() ([]byte, []int) { - return fileDescriptor_2629a03d0a23fb04, []int{0} + return fileDescriptor_cabb5a887005fe34, []int{0} } func (m *BetOdds) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -99,14 +99,14 @@ type BetOddsCompact struct { // Required | Unique | uuid-v4 or code UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // max_loss_multiplier is the factor for calculating max loss for given odds - MaxLossMultiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_loss_multiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_loss_multiplier"` + MaxLossMultiplier cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_loss_multiplier,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_loss_multiplier"` } func (m *BetOddsCompact) Reset() { *m = BetOddsCompact{} } func (m *BetOddsCompact) String() string { return proto.CompactTextString(m) } func (*BetOddsCompact) ProtoMessage() {} func (*BetOddsCompact) Descriptor() ([]byte, []int) { - return fileDescriptor_2629a03d0a23fb04, []int{1} + return fileDescriptor_cabb5a887005fe34, []int{1} } func (m *BetOddsCompact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,31 +147,32 @@ func init() { proto.RegisterType((*BetOddsCompact)(nil), "sgenetwork.sge.bet.BetOddsCompact") } -func init() { proto.RegisterFile("sge/bet/bet_odds.proto", fileDescriptor_2629a03d0a23fb04) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/bet_odds.proto", fileDescriptor_cabb5a887005fe34) } -var fileDescriptor_2629a03d0a23fb04 = []byte{ - // 335 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x52, 0x3d, 0x4b, 0xfb, 0x40, - 0x1c, 0xce, 0xb5, 0xff, 0x17, 0x7a, 0x43, 0xc1, 0x58, 0xa4, 0x28, 0xe4, 0x4a, 0x07, 0x71, 0x69, - 0x32, 0x38, 0xba, 0x48, 0xed, 0x22, 0x58, 0x84, 0x80, 0x4b, 0x97, 0x90, 0x97, 0x1f, 0x67, 0x68, - 0xe2, 0x85, 0xfc, 0x2e, 0x5a, 0xbf, 0x83, 0x82, 0x5f, 0xc9, 0xad, 0x63, 0x47, 0x71, 0x38, 0x24, - 0xdd, 0xfa, 0x29, 0xe4, 0xae, 0x45, 0x3a, 0x54, 0x70, 0x73, 0xb8, 0xbb, 0xe7, 0x9e, 0x7b, 0xee, - 0xf7, 0xc6, 0x43, 0x0f, 0x90, 0x83, 0x17, 0x81, 0xd4, 0x2b, 0x10, 0x49, 0x82, 0x6e, 0x51, 0x0a, - 0x29, 0x6c, 0x1b, 0x39, 0xdc, 0x81, 0x7c, 0x10, 0xe5, 0xd4, 0x45, 0x0e, 0x6e, 0x04, 0xf2, 0xb0, - 0xc3, 0x05, 0x17, 0xe6, 0xd9, 0xd3, 0x68, 0xad, 0xec, 0x3f, 0x37, 0xe8, 0xff, 0x21, 0xc8, 0xeb, - 0x24, 0x41, 0xbb, 0x47, 0x9b, 0x55, 0x9a, 0x74, 0x49, 0x8f, 0x9c, 0xb4, 0x86, 0xed, 0x5a, 0xb1, - 0xe6, 0xcd, 0xe5, 0x68, 0xa5, 0x98, 0x66, 0x7d, 0xbd, 0xd9, 0x67, 0x94, 0xe6, 0x61, 0x39, 0x05, - 0x19, 0x68, 0x61, 0xc3, 0x08, 0x8f, 0x6a, 0xc5, 0x5a, 0x63, 0xc3, 0xae, 0xe5, 0x5b, 0x12, 0x7f, - 0x0b, 0xdb, 0x1d, 0xfa, 0xf7, 0x3e, 0xcc, 0x2a, 0xe8, 0x36, 0xf5, 0x3f, 0x7f, 0x7d, 0xb1, 0x9f, - 0x08, 0xdd, 0xcf, 0xc3, 0x59, 0x90, 0x09, 0xc4, 0x20, 0xaf, 0x32, 0x99, 0x16, 0x59, 0x0a, 0x65, - 0xf7, 0x8f, 0x09, 0x3e, 0x99, 0x2b, 0x66, 0xbd, 0x2b, 0x76, 0xcc, 0x53, 0x79, 0x5b, 0x45, 0x6e, - 0x2c, 0x72, 0x2f, 0x16, 0x98, 0x0b, 0xdc, 0x1c, 0x03, 0x4c, 0xa6, 0x9e, 0x7c, 0x2c, 0x00, 0xdd, - 0x11, 0xc4, 0xb5, 0x62, 0x7b, 0xe3, 0x70, 0x76, 0x25, 0x10, 0xc7, 0x5f, 0xa1, 0x56, 0x8a, 0xed, - 0xca, 0xe0, 0xef, 0x22, 0xfb, 0xaf, 0x84, 0xb6, 0x37, 0xf3, 0xb8, 0x10, 0x79, 0x11, 0xc6, 0xf2, - 0x07, 0x63, 0xf9, 0xae, 0x87, 0xc6, 0xaf, 0xf4, 0x30, 0x3c, 0x9f, 0xd7, 0x0e, 0x59, 0xd4, 0x0e, - 0xf9, 0xa8, 0x1d, 0xf2, 0xb2, 0x74, 0xac, 0xc5, 0xd2, 0xb1, 0xde, 0x96, 0x8e, 0x35, 0xd9, 0x2e, - 0x01, 0x39, 0x0c, 0x36, 0x1e, 0xd1, 0xd8, 0x9b, 0x19, 0x23, 0x99, 0x32, 0xa2, 0x7f, 0xc6, 0x1c, - 0xa7, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x2d, 0x7f, 0x8e, 0x60, 0x02, 0x00, 0x00, +var fileDescriptor_cabb5a887005fe34 = []byte{ + // 341 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6,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9, 0x7a, 0x99, 0xf9, 0xfa, 0xb9, + 0x89, 0x25, 0x19, 0x7a, 0x3e, 0xa9, 0xe9, 0x89, 0xc9, 0x95, 0x2e, 0xa9, 0xc9, 0x8f, 0xee, 0xc9, + 0x0b, 0xfa, 0x26, 0x56, 0xf8, 0xe4, 0x17, 0x17, 0xfb, 0xc2, 0xf5, 0xbf, 0xba, 0x27, 0x8f, 0xcd, + 0xd8, 0x20, 0x6c, 0x82, 0x4a, 0xdb, 0x18, 0xb9, 0xf8, 0xa0, 0x81, 0xe0, 0x9c, 0x9f, 0x5b, 0x90, + 0x98, 0x5c, 0x42, 0x44, 0x58, 0xe0, 0x72, 0x38, 0x13, 0xfd, 0x1c, 0xee, 0xe4, 0x70, 0xe2, 0x91, + 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, + 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x6a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, + 0xc9, 0xf9, 0xb9, 0xa0, 0x44, 0xa2, 0x8b, 0x9c, 0x60, 0x2a, 0xc0, 0x49, 0xa6, 0xa4, 0xb2, 0x20, + 0xb5, 0x38, 0x89, 0x0d, 0x9c, 0x0c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x49, 0xc4, 0x29, + 0xe1, 0x55, 0x02, 0x00, 0x00, } func (m *BetOdds) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/codec.go b/x/bet/types/codec.go index c8b76f7d..1aec2d62 100644 --- a/x/bet/types/codec.go +++ b/x/bet/types/codec.go @@ -4,7 +4,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) @@ -33,6 +32,6 @@ var ( func init() { RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) + // cryptocodec.RegisterCrypto(amino) sdk.RegisterLegacyAminoCodec(amino) } diff --git a/x/bet/types/constraints.pb.go b/x/bet/types/constraints.pb.go index c598502a..b8c4a5dc 100644 --- a/x/bet/types/constraints.pb.go +++ b/x/bet/types/constraints.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/constraints.proto +// source: sgenetwork/sge/bet/constraints.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -36,7 +36,7 @@ func (m *Constraints) Reset() { *m = Constraints{} } func (m *Constraints) String() string { return proto.CompactTextString(m) } func (*Constraints) ProtoMessage() {} func (*Constraints) Descriptor() ([]byte, []int) { - return fileDescriptor_902ec3e683a9aac6, []int{0} + return fileDescriptor_1cb99da0ccbae1b1, []int{0} } func (m *Constraints) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,25 +69,27 @@ func init() { proto.RegisterType((*Constraints)(nil), "sgenetwork.sge.bet.Constraints") } -func init() { proto.RegisterFile("sge/bet/constraints.proto", fileDescriptor_902ec3e683a9aac6) } +func init() { + proto.RegisterFile("sgenetwork/sge/bet/constraints.proto", fileDescriptor_1cb99da0ccbae1b1) +} -var fileDescriptor_902ec3e683a9aac6 = []byte{ - // 227 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x4e, 0x4f, 0xd5, - 0x4f, 0x4a, 0x2d, 0xd1, 0x4f, 0xce, 0xcf, 0x2b,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, 0x20, 0xb5, 0x38, - 0x89, 0x0d, 0xec, 0x0d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x09, 0xd4, 0x97, 0xc8, 0x0d, - 0x01, 0x00, 0x00, +var fileDescriptor_1cb99da0ccbae1b1 = []byte{ + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x4f, 0x4a, 0x2d, 0xd1, 0x4f, + 0xce, 0xcf, 0x2b, 0x2e, 0x29, 0x4a, 0xcc, 0xcc, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x12, 0x42, 0xa8, 0xd2, 0x2b, 0x4e, 0x4f, 0xd5, 0x4b, 0x4a, 0x2d, 0x91, 0x12, 0x49, 0xcf, + 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x4a, 0x35, 0x5c, 0xdc, 0xce, 0x08, 0xed, + 0x42, 0x36, 0x5c, 0x5c, 0xb9, 0x99, 0x79, 0xf1, 0x89, 0xb9, 0xf9, 0xa5, 0x79, 0x25, 0x12, 0x8c, + 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0xb2, 0x27, 0xee, 0xc9, 0x33, 0xdc, 0xba, 0x27, 0x2f, 0x9a, 0x9c, + 0x5f, 0x9c, 0x9b, 0x5f, 0x5c, 0x9c, 0x92, 0xad, 0x97, 0x99, 0xaf, 0x9f, 0x9b, 0x58, 0x92, 0xa1, + 0xe7, 0x99, 0x57, 0x12, 0xc4, 0x99, 0x9b, 0x99, 0xe7, 0x08, 0x56, 0x2f, 0xa4, 0xcf, 0xc5, 0x9c, + 0x96, 0x9a, 0x2a, 0xc1, 0x44, 0x8c, 0x36, 0x90, 0x4a, 0x27, 0x87, 0x13, 0x8f, 0xe4, 0x18, 0x2f, + 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, + 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, + 0x05, 0xf9, 0x53, 0x17, 0xd9, 0xcf, 0x15, 0x60, 0x5f, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, + 0x81, 0xbd, 0x61, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x79, 0x77, 0x20, 0x37, 0x18, 0x01, 0x00, + 0x00, } func (m *Constraints) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/expected_keepers.go b/x/bet/types/expected_keepers.go index 9828270a..7feab15c 100644 --- a/x/bet/types/expected_keepers.go +++ b/x/bet/types/expected_keepers.go @@ -39,9 +39,9 @@ type OrderbookKeeper interface { ProcessWager( ctx sdk.Context, betUID, bookUID, oddsUID string, - maxLossMultiplier sdk.Dec, + maxLossMultiplier sdkmath.LegacyDec, betAmount sdkmath.Int, - payoutProfit sdk.Dec, + payoutProfit sdkmath.LegacyDec, bettorAddress sdk.AccAddress, betFee sdkmath.Int, oddsVal string, diff --git a/x/bet/types/genesis.pb.go b/x/bet/types/genesis.pb.go index 3a8a5ad6..9296794c 100644 --- a/x/bet/types/genesis.pb.go +++ b/x/bet/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/genesis.proto +// source: sgenetwork/sge/bet/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -43,7 +43,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_6c49ebc0f2678a09, []int{0} + return fileDescriptor_a21c537e364bf87c, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,32 +118,32 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.bet.GenesisState") } -func init() { proto.RegisterFile("sge/bet/genesis.proto", fileDescriptor_6c49ebc0f2678a09) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/genesis.proto", fileDescriptor_a21c537e364bf87c) } -var fileDescriptor_6c49ebc0f2678a09 = []byte{ +var fileDescriptor_a21c537e364bf87c = []byte{ // 344 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcf, 0x4a, 0xf3, 0x40, - 0x14, 0xc5, 0x93, 0xaf, 0x7f, 0x3e, 0x99, 0x8a, 0x68, 0xac, 0x58, 0x82, 0x8c, 0xc5, 0x85, 0x74, - 0x63, 0x02, 0x71, 0xd3, 0xa5, 0x96, 0x82, 0x14, 0x44, 0xc4, 0xe2, 0xc6, 0x4d, 0xc9, 0x98, 0xcb, - 0x38, 0xd8, 0x76, 0x42, 0xe7, 0x16, 0xf5, 0x2d, 0x7c, 0x03, 0x5f, 0xa7, 0xcb, 0x2e, 0x5d, 0x89, - 0xb4, 0x2f, 0x22, 0x99, 0x99, 0xb4, 0x82, 0xe9, 0xee, 0xe6, 0xe4, 0x9c, 0xdf, 0x1d, 0xce, 0x25, - 0x07, 0x8a, 0x43, 0xc8, 0x00, 0x43, 0x0e, 0x63, 0x50, 0x42, 0x05, 0xe9, 0x44, 0xa2, 0xf4, 0x3c, - 0x95, 0x7d, 0xe3, 0x8b, 0x9c, 0x3c, 0x07, 0x8a, 0x43, 0xc0, 0x00, 0xfd, 0x3a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x75, 0xbf, 0x17, 0xd4, 0x7d, 0x5f, 0x52, 0x67, 0xbe, 0xa4, 0xce, 0xe7, 0x92, 0x3a, 0x0f, - 0xa7, 0x5c, 0xe0, 0xd3, 0x94, 0x05, 0x8f, 0x72, 0x14, 0x2a, 0x0e, 0x67, 0x96, 0x97, 0xcd, 0xe1, - 0xab, 0xbe, 0x34, 0xbe, 0xa5, 0xa0, 0x58, 0x55, 0x9f, 0xfa, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, - 0xe5, 0xda, 0xaa, 0x89, 0x6b, 0x02, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcd, 0x4a, 0xc3, 0x40, + 0x14, 0x85, 0x13, 0xfb, 0xa3, 0x4c, 0x45, 0x24, 0x08, 0x96, 0x50, 0xa6, 0xc5, 0x85, 0x74, 0x63, + 0x02, 0x71, 0xd3, 0xa5, 0x96, 0x82, 0x14, 0x44, 0xc4, 0xe2, 0xc6, 0x4d, 0xc9, 0x98, 0xcb, 0x38, + 0xd8, 0x36, 0xa1, 0x73, 0x8b, 0xfa, 0x16, 0xbe, 0x81, 0xaf, 0xd3, 0x65, 0x97, 0xae, 0x44, 0xda, + 0x17, 0x91, 0xcc, 0x4c, 0x9b, 0x82, 0xd3, 0xdd, 0x70, 0xef, 0x39, 0xdf, 0x5c, 0xce, 0x21, 0x2d, + 0xc9, 0x61, 0x02, 0xf8, 0x96, 0x4e, 0x5f, 0x43, 0xc9, 0x21, 0x64, 0x80, 0x61, 0x3e, 0x91, 0x42, + 0x06, 0xd9, 0x34, 0xc5, 0xd4, 0xf3, 0x0a, 0x45, 0x20, 0x39, 0x04, 0x0c, 0xd0, 0x3f, 0xe1, 0x29, + 0x4f, 0xd5, 0x3a, 0xcc, 0x5f, 0x5a, 0xe9, 0x37, 0x2d, 0xac, 0x2c, 0x9e, 0xc6, 0x63, 0x83, 0xf2, + 0x1b, 0x16,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0xa7, 0xe3, 0xbc, 0xdb, 0x8b, 0xed, 0x9e, 0xdf, + 0x55, 0xd3, 0xf8, 0x91, 0x81, 0x64, 0x55, 0x55, 0xf5, 0xe5, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xad, 0xf5, 0xa2, 0xce, 0x97, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/odds_type.go b/x/bet/types/odds_type.go index aa289879..f6cfa7da 100644 --- a/x/bet/types/odds_type.go +++ b/x/bet/types/odds_type.go @@ -3,27 +3,26 @@ package types import ( sdkerrors "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) // CalculateDecimalPayout calculates total payout of a certain bet amount by decimal odds calculations -func CalculateDecimalPayout(oddsVal string, amount sdkmath.Int) (sdk.Dec, error) { - // decimal odds value should be sdk.Dec, so convert it directly - oddsDecVal, err := sdk.NewDecFromStr(oddsVal) +func CalculateDecimalPayout(oddsVal string, amount sdkmath.Int) (sdkmath.LegacyDec, error) { + // decimal odds value should be sdkmath.LegacyDec, so convert it directly + oddsDecVal, err := sdkmath.LegacyNewDecFromStr(oddsVal) if err != nil { - return sdk.ZeroDec(), + return sdkmath.LegacyZeroDec(), sdkerrors.Wrapf(ErrDecimalOddsIncorrectFormat, "%s", err) } // odds value should not be negative or zero if !oddsDecVal.IsPositive() { - return sdk.ZeroDec(), + return sdkmath.LegacyZeroDec(), sdkerrors.Wrapf(ErrDecimalOddsShouldBePositive, "%s", oddsVal) } // odds value should not be less than 1 - if oddsDecVal.LTE(sdk.OneDec()) { - return sdk.ZeroDec(), + if oddsDecVal.LTE(sdkmath.LegacyOneDec()) { + return sdkmath.LegacyZeroDec(), sdkerrors.Wrapf(ErrDecimalOddsCanNotBeLessThanOne, "%s", oddsVal) } @@ -35,28 +34,28 @@ func CalculateDecimalPayout(oddsVal string, amount sdkmath.Int) (sdk.Dec, error) } // CalculateBetAmount calculates bet amount -func CalculateDecimalBetAmount(oddsVal string, payoutProfit sdk.Dec) (sdk.Dec, error) { - // decimal odds value should be sdk.Dec, so convert it directly - oddsDecVal, err := sdk.NewDecFromStr(oddsVal) +func CalculateDecimalBetAmount(oddsVal string, payoutProfit sdkmath.LegacyDec) (sdkmath.LegacyDec, error) { + // decimal odds value should be sdkmath.LegacyDec, so convert it directly + oddsDecVal, err := sdkmath.LegacyNewDecFromStr(oddsVal) if err != nil { - return sdk.ZeroDec(), + return sdkmath.LegacyZeroDec(), sdkerrors.Wrapf(ErrDecimalOddsIncorrectFormat, "%s", err) } // odds value should not be negative or zero if !oddsDecVal.IsPositive() { - return sdk.ZeroDec(), + return sdkmath.LegacyZeroDec(), sdkerrors.Wrapf(ErrDecimalOddsShouldBePositive, "%s", oddsVal) } // odds value should not be less than 1 - if oddsDecVal.LTE(sdk.OneDec()) { - return sdk.ZeroDec(), + if oddsDecVal.LTE(sdkmath.LegacyOneDec()) { + return sdkmath.LegacyZeroDec(), sdkerrors.Wrapf(ErrDecimalOddsCanNotBeLessThanOne, "%s", oddsVal) } // calculate bet amount - betAmount := payoutProfit.Quo(oddsDecVal.Sub(sdk.OneDec())) + betAmount := payoutProfit.Quo(oddsDecVal.Sub(sdkmath.LegacyOneDec())) // get the integer part of the bet amount return betAmount, nil diff --git a/x/bet/types/odds_type.pb.go b/x/bet/types/odds_type.pb.go index 1bac8cb4..a168cf0b 100644 --- a/x/bet/types/odds_type.pb.go +++ b/x/bet/types/odds_type.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/odds_type.proto +// source: sgenetwork/sge/bet/odds_type.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" math "math" ) @@ -53,29 +53,31 @@ func (x OddsType) String() string { } func (OddsType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9054da535c81741c, []int{0} + return fileDescriptor_8499746baf6d0fd2, []int{0} } func init() { proto.RegisterEnum("sgenetwork.sge.bet.OddsType", OddsType_name, OddsType_value) } -func init() { proto.RegisterFile("sge/bet/odds_type.proto", fileDescriptor_9054da535c81741c) } +func init() { + proto.RegisterFile("sgenetwork/sge/bet/odds_type.proto", fileDescriptor_8499746baf6d0fd2) +} -var fileDescriptor_9054da535c81741c = []byte{ - // 219 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x4e, 0x4f, 0xd5, - 0x4f, 0x4a, 0x2d, 0xd1, 0xcf, 0x4f, 0x49, 0x29, 0x8e, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2a, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x2b, 0x4e, 0x4f, 0xd5, 0x4b, 0x4a, 0x2d, 0xd1, 0xca, 0xe7, 0xe2, 0xf0, 0x4f, 0x49, 0x29, 0x0e, - 0xa9, 0x2c, 0x48, 0x15, 0x92, 0xe4, 0x12, 0xf5, 0x77, 0x71, 0x09, 0x8e, 0x0f, 0x89, 0x0c, 0x70, - 0x8d, 0x0f, 0xf5, 0x0b, 0x0e, 0x70, 0x75, 0xf6, 0x74, 0xf3, 0x74, 0x75, 0x11, 0x60, 0x10, 0x12, - 0xe5, 0x12, 0x44, 0x48, 0xb9, 0xb8, 0x3a, 0x7b, 0xfa, 0x3a, 0xfa, 0x08, 0x30, 0x0a, 0x49, 0x70, - 0x89, 0x20, 0x84, 0xdd, 0x82, 0x1c, 0x9d, 0x43, 0x3c, 0xfd, 0xfd, 0x1c, 0x7d, 0x04, 0x98, 0x84, - 0xc4, 0xb9, 0x84, 0x11, 0x32, 0xbe, 0xfe, 0x7e, 0xae, 0x91, 0x3e, 0x9e, 0x7e, 0xae, 0x02, 0xcc, - 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, - 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x96, 0x9e, 0x59, - 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9e, 0xaa, 0x0b, 0x75, 0x2a, 0x88, - 0xad, 0x5f, 0x01, 0xf6, 0x10, 0xc8, 0x2f, 0xc5, 0x49, 0x6c, 0x60, 0xdf, 0x18, 0x03, 0x02, 0x00, - 0x00, 0xff, 0xff, 0x93, 0x6e, 0x4e, 0x56, 0xe8, 0x00, 0x00, 0x00, +var fileDescriptor_8499746baf6d0fd2 = []byte{ + // 218 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x4f, 0x4a, 0x2d, 0xd1, 0xcf, + 0x4f, 0x49, 0x29, 0x8e, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x42, 0xa8, 0xd1, 0x2b, 0x4e, 0x4f, 0xd5, 0x4b, 0x4a, 0x2d, 0xd1, 0xca, 0xe7, 0xe2, 0xf0, 0x4f, + 0x49, 0x29, 0x0e, 0xa9, 0x2c, 0x48, 0x15, 0x92, 0xe4, 0x12, 0xf5, 0x77, 0x71, 0x09, 0x8e, 0x0f, + 0x89, 0x0c, 0x70, 0x8d, 0x0f, 0xf5, 0x0b, 0x0e, 0x70, 0x75, 0xf6, 0x74, 0xf3, 0x74, 0x75, 0x11, + 0x60, 0x10, 0x12, 0xe5, 0x12, 0x44, 0x48, 0xb9, 0xb8, 0x3a, 0x7b, 0xfa, 0x3a, 0xfa, 0x08, 0x30, + 0x0a, 0x49, 0x70, 0x89, 0x20, 0x84, 0xdd, 0x82, 0x1c, 0x9d, 0x43, 0x3c, 0xfd, 0xfd, 0x1c, 0x7d, + 0x04, 0x98, 0x84, 0xc4, 0xb9, 0x84, 0x11, 0x32, 0xbe, 0xfe, 0x7e, 0xae, 0x91, 0x3e, 0x9e, 0x7e, + 0xae, 0x02, 0xcc, 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, + 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, + 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0x0b, 0xf2, 0x82, 0x2e, 0xb2, 0x77, + 0x2a, 0xc0, 0x1e, 0x02, 0xf9, 0xa5, 0x38, 0x89, 0x0d, 0xec, 0x1b, 0x63, 0x40, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x6c, 0x31, 0xec, 0xd9, 0xf3, 0x00, 0x00, 0x00, } diff --git a/x/bet/types/params.pb.go b/x/bet/types/params.pb.go index a67d1717..ac55edbf 100644 --- a/x/bet/types/params.pb.go +++ b/x/bet/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/params.proto +// source: sgenetwork/sge/bet/params.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -36,7 +36,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_4216d2638a14c9d3, []int{0} + return fileDescriptor_f6bea002c4bbd0b9, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -90,29 +90,29 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.bet.Params") } -func init() { proto.RegisterFile("sge/bet/params.proto", fileDescriptor_4216d2638a14c9d3) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/params.proto", fileDescriptor_f6bea002c4bbd0b9) } -var fileDescriptor_4216d2638a14c9d3 = []byte{ - // 301 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x31, 0x4e, 0xc3, 0x30, - 0x14, 0x86, 0x63, 0x40, 0x1d, 0x52, 0xb1, 0x44, 0x05, 0x95, 0x0c, 0x4e, 0xd5, 0x01, 0x75, 0xc1, - 0x91, 0x80, 0x85, 0x4e, 0x28, 0xbd, 0x00, 0x14, 0xb1, 0x20, 0x21, 0xcb, 0x4e, 0x9f, 0xdc, 0x88, - 0x3a, 0x2e, 0xf1, 0x8b, 0x68, 0x6e, 0xc1, 0xc8, 0xc8, 0x71, 0x3a, 0x76, 0x64, 0xaa, 0x50, 0x7b, - 0x03, 0x4e, 0x80, 0xe2, 0x16, 0xa8, 0xc4, 0xf6, 0xa4, 0xef, 0xfd, 0x9f, 0xfd, 0x7e, 0xbf, 0x65, - 0x15, 0xc4, 0x12, 0x30, 0x9e, 0x8a, 0x42, 0x68, 0xcb, 0xa6, 0x85, 0x41, 0x13, 0x04, 0x56, 0x41, - 0x0e, 0xf8, 0x62, 0x8a, 0x27, 0x66, 0x15, 0x30, 0x09, 0x18, 0xb6, 0x94, 0x51, 0xc6, 0xe1, 0xb8, - 0x9e, 0x36, 0x9b, 0xe1, 0xc9, 0x4f, 0x3e, 0x35, 0xb9, 0xc5, 0x42, 0x64, 0x39, 0x6e, 0x25, 0xdd, - 0x25, 0xf1, 0x1b, 0x37, 0xce, 0x1a, 0x5c, 0xfa, 0xc7, 0x52, 0x60, 0x3a, 0xe6, 0x16, 0x10, 0x27, - 0xa0, 0x21, 0x47, 0x9e, 0x9a, 0x32, 0xc7, 0x36, 0xe9, 0x90, 0xde, 0xe1, 0xb0, 0xe5, 0xe8, 0xdd, - 0x2f, 0x1c, 0xd4, 0x2c, 0xb8, 0xf2, 0x43, 0x2d, 0x66, 0x5c, 0x02, 0x72, 0x59, 0xf1, 0x32, 0x1b, - 0xf1, 0xe7, 0x12, 0x8a, 0x6a, 0x9b, 0xdc, 0x73, 0xc9, 0x23, 0x2d, 0x66, 0x09, 0x60, 0x52, 0xdd, - 0x67, 0xa3, 0xdb, 0x9a, 0x6e, 0xa2, 0x8f, 0x7e, 0x73, 0xe7, 0x43, 0xed, 0xfd, 0x0e, 0xe9, 0x35, - 0xcf, 0x23, 0xf6, 0xff, 0x2c, 0x36, 0xf8, 0x5b, 0x4b, 0xc2, 0xf9, 0x32, 0xf2, 0xbe, 0x96, 0x51, - 0x50, 0x09, 0x3d, 0xe9, 0x77, 0x77, 0x0c, 0xdd, 0xe1, 0xae, 0xaf, 0x7f, 0xf0, 0xf6, 0x1e, 0x79, - 0xc9, 0xf5, 0x7c, 0x45, 0xc9, 0x62, 0x45, 0xc9, 0xe7, 0x8a, 0x92, 0xd7, 0x35, 0xf5, 0x16, 0x6b, - 0xea, 0x7d, 0xac, 0xa9, 0xf7, 0x70, 0xaa, 0x32, 0x1c, 0x97, 0x92, 0xa5, 0x46, 0xc7, 0x56, 0xc1, - 0xd9, 0xf6, 0xd1, 0x7a, 0x8e, 0x67, 0xae, 0x2e, 0xac, 0xa6, 0x60, 0x65, 0xc3, 0x35, 0x75, 0xf1, - 0x1d, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x66, 0x52, 0x67, 0x86, 0x01, 0x00, 0x00, +var fileDescriptor_f6bea002c4bbd0b9 = []byte{ + // 303 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0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, 0x81, 0x51, 0x83, 0xdb, + 0x48, 0x5e, 0x0f, 0xd3, 0x87, 0x7a, 0xce, 0x08, 0x65, 0x4e, 0x52, 0x27, 0xee, 0xc9, 0x33, 0x7c, + 0xba, 0x27, 0x2f, 0x54, 0x99, 0x98, 0x9b, 0x63, 0xa5, 0x84, 0x64, 0x82, 0x52, 0x10, 0xb2, 0x79, + 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0x39, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, + 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, + 0x1c, 0x43, 0x94, 0x5a, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x28, 0x80, + 0x74, 0x91, 0x03, 0xab, 0x02, 0x1c, 0x5c, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x90, + 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x9c, 0x75, 0x93, 0x9c, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/payout.go b/x/bet/types/payout.go index 99c69b47..f54d7dd3 100644 --- a/x/bet/types/payout.go +++ b/x/bet/types/payout.go @@ -2,38 +2,37 @@ package types import ( sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) // CalculatePayoutProfit calculates the amount of payout profit portion according to bet odds value and amount -func CalculatePayoutProfit(oddsVal string, amount sdkmath.Int) (sdk.Dec, error) { +func CalculatePayoutProfit(oddsVal string, amount sdkmath.Int) (sdkmath.LegacyDec, error) { payout, err := calculatePayout(oddsVal, amount) if err != nil { - return sdk.ZeroDec(), err + return sdkmath.LegacyZeroDec(), err } // bettor profit is the subtracted amount of payout from bet amount - profit := payout.Sub(sdk.NewDecFromInt(amount)) + profit := payout.Sub(sdkmath.LegacyNewDecFromInt(amount)) return profit, nil } // calculatePayout calculates the amount of payout according to bet odds value and amount -func calculatePayout(oddsVal string, amount sdkmath.Int) (sdk.Dec, error) { +func calculatePayout(oddsVal string, amount sdkmath.Int) (sdkmath.LegacyDec, error) { // total payout should be paid to bettor payout, err := CalculateDecimalPayout(oddsVal, amount) if err != nil { - return sdk.ZeroDec(), err + return sdkmath.LegacyZeroDec(), err } return payout, nil } // CalculateBetAmount calculates the amount of bet according to bet odds value and payout profit -func CalculateBetAmount(oddsVal string, payoutProfit sdk.Dec) (sdk.Dec, error) { +func CalculateBetAmount(oddsVal string, payoutProfit sdkmath.LegacyDec) (sdkmath.LegacyDec, error) { betAmount, err := calculateBetAmount(oddsVal, payoutProfit) if err != nil { - return sdk.ZeroDec(), err + return sdkmath.LegacyZeroDec(), err } return betAmount, nil @@ -43,12 +42,12 @@ func CalculateBetAmount(oddsVal string, payoutProfit sdk.Dec) (sdk.Dec, error) { // and returns the int and the truncated decimal part. func CalculateBetAmountInt( oddsVal string, - payoutProfit sdk.Dec, - truncatedBetAmount sdk.Dec, -) (sdkmath.Int, sdk.Dec, error) { + payoutProfit sdkmath.LegacyDec, + truncatedBetAmount sdkmath.LegacyDec, +) (sdkmath.Int, sdkmath.LegacyDec, error) { expectedBetAmountDec, err := CalculateBetAmount(oddsVal, payoutProfit) if err != nil { - return sdkmath.Int{}, sdk.Dec{}, err + return sdkmath.Int{}, sdkmath.LegacyDec{}, err } // add previous loop truncated value to the calculated bet amount expectedBetAmountDec = expectedBetAmountDec.Add(truncatedBetAmount) @@ -58,17 +57,17 @@ func CalculateBetAmountInt( betAmount := expectedBetAmountDec.RoundInt() // save the truncated amount in the calculations for the next loop - truncatedBetAmount = truncatedBetAmount.Add(expectedBetAmountDec.Sub(sdk.NewDecFromInt(betAmount))) + truncatedBetAmount = truncatedBetAmount.Add(expectedBetAmountDec.Sub(sdkmath.LegacyNewDecFromInt(betAmount))) return betAmount, truncatedBetAmount, nil } // calculateBetAmount calculates the amount of bet according to bet odds value and payoutProfit -func calculateBetAmount(oddsVal string, payoutProfit sdk.Dec) (sdk.Dec, error) { +func calculateBetAmount(oddsVal string, payoutProfit sdkmath.LegacyDec) (sdkmath.LegacyDec, error) { // total payout should be paid to bettor betAmount, err := CalculateDecimalBetAmount(oddsVal, payoutProfit) if err != nil { - return sdk.ZeroDec(), err + return sdkmath.LegacyZeroDec(), err } return betAmount, nil diff --git a/x/bet/types/query.pb.go b/x/bet/types/query.pb.go index de11c8e2..ea31ce88 100644 --- a/x/bet/types/query.pb.go +++ b/x/bet/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/query.proto +// source: sgenetwork/sge/bet/query.proto package types @@ -8,8 +8,8 @@ import ( fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" types "github.com/sge-network/sge/x/market/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -40,7 +40,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{0} + return fileDescriptor_5d73c4d56d215257, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,7 +80,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{1} + return fileDescriptor_5d73c4d56d215257, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -127,7 +127,7 @@ func (m *QueryBetRequest) Reset() { *m = QueryBetRequest{} } func (m *QueryBetRequest) String() string { return proto.CompactTextString(m) } func (*QueryBetRequest) ProtoMessage() {} func (*QueryBetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{2} + return fileDescriptor_5d73c4d56d215257, []int{2} } func (m *QueryBetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -181,7 +181,7 @@ func (m *QueryBetResponse) Reset() { *m = QueryBetResponse{} } func (m *QueryBetResponse) String() string { return proto.CompactTextString(m) } func (*QueryBetResponse) ProtoMessage() {} func (*QueryBetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{3} + return fileDescriptor_5d73c4d56d215257, []int{3} } func (m *QueryBetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,7 +234,7 @@ func (m *QueryBetsRequest) Reset() { *m = QueryBetsRequest{} } func (m *QueryBetsRequest) String() string { return proto.CompactTextString(m) } func (*QueryBetsRequest) ProtoMessage() {} func (*QueryBetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{4} + return fileDescriptor_5d73c4d56d215257, []int{4} } func (m *QueryBetsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -281,7 +281,7 @@ func (m *QueryBetsResponse) Reset() { *m = QueryBetsResponse{} } func (m *QueryBetsResponse) String() string { return proto.CompactTextString(m) } func (*QueryBetsResponse) ProtoMessage() {} func (*QueryBetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{5} + return fileDescriptor_5d73c4d56d215257, []int{5} } func (m *QueryBetsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -335,7 +335,7 @@ func (m *QueryBetsByCreatorRequest) Reset() { *m = QueryBetsByCreatorReq func (m *QueryBetsByCreatorRequest) String() string { return proto.CompactTextString(m) } func (*QueryBetsByCreatorRequest) ProtoMessage() {} func (*QueryBetsByCreatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{6} + return fileDescriptor_5d73c4d56d215257, []int{6} } func (m *QueryBetsByCreatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -389,7 +389,7 @@ func (m *QueryBetsByCreatorResponse) Reset() { *m = QueryBetsByCreatorRe func (m *QueryBetsByCreatorResponse) String() string { return proto.CompactTextString(m) } func (*QueryBetsByCreatorResponse) ProtoMessage() {} func (*QueryBetsByCreatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{7} + return fileDescriptor_5d73c4d56d215257, []int{7} } func (m *QueryBetsByCreatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -442,7 +442,7 @@ func (m *QueryBetsByUIDsRequest) Reset() { *m = QueryBetsByUIDsRequest{} func (m *QueryBetsByUIDsRequest) String() string { return proto.CompactTextString(m) } func (*QueryBetsByUIDsRequest) ProtoMessage() {} func (*QueryBetsByUIDsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{8} + return fileDescriptor_5d73c4d56d215257, []int{8} } func (m *QueryBetsByUIDsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -489,7 +489,7 @@ func (m *QueryBetsByUIDsResponse) Reset() { *m = QueryBetsByUIDsResponse func (m *QueryBetsByUIDsResponse) String() string { return proto.CompactTextString(m) } func (*QueryBetsByUIDsResponse) ProtoMessage() {} func (*QueryBetsByUIDsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{9} + return fileDescriptor_5d73c4d56d215257, []int{9} } func (m *QueryBetsByUIDsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -544,7 +544,7 @@ func (m *QueryPendingBetsRequest) Reset() { *m = QueryPendingBetsRequest func (m *QueryPendingBetsRequest) String() string { return proto.CompactTextString(m) } func (*QueryPendingBetsRequest) ProtoMessage() {} func (*QueryPendingBetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{10} + return fileDescriptor_5d73c4d56d215257, []int{10} } func (m *QueryPendingBetsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -598,7 +598,7 @@ func (m *QueryPendingBetsResponse) Reset() { *m = QueryPendingBetsRespon func (m *QueryPendingBetsResponse) String() string { return proto.CompactTextString(m) } func (*QueryPendingBetsResponse) ProtoMessage() {} func (*QueryPendingBetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{11} + return fileDescriptor_5d73c4d56d215257, []int{11} } func (m *QueryPendingBetsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -653,7 +653,7 @@ func (m *QuerySettledBetsOfHeightRequest) Reset() { *m = QuerySettledBet func (m *QuerySettledBetsOfHeightRequest) String() string { return proto.CompactTextString(m) } func (*QuerySettledBetsOfHeightRequest) ProtoMessage() {} func (*QuerySettledBetsOfHeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{12} + return fileDescriptor_5d73c4d56d215257, []int{12} } func (m *QuerySettledBetsOfHeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -707,7 +707,7 @@ func (m *QuerySettledBetsOfHeightResponse) Reset() { *m = QuerySettledBe func (m *QuerySettledBetsOfHeightResponse) String() string { return proto.CompactTextString(m) } func (*QuerySettledBetsOfHeightResponse) ProtoMessage() {} func (*QuerySettledBetsOfHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b93ca36013f0806, []int{13} + return fileDescriptor_5d73c4d56d215257, []int{13} } func (m *QuerySettledBetsOfHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -767,66 +767,66 @@ func init() { proto.RegisterType((*QuerySettledBetsOfHeightResponse)(nil), "sgenetwork.sge.bet.QuerySettledBetsOfHeightResponse") } -func init() { proto.RegisterFile("sge/bet/query.proto", fileDescriptor_9b93ca36013f0806) } - -var fileDescriptor_9b93ca36013f0806 = []byte{ - // 887 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0x41, 0x6f, 0xe3, 0x44, - 0x14, 0xc7, 0xe3, 0xa4, 0x9b, 0x2a, 0x2f, 0xac, 0x42, 0xa7, 0x85, 0x64, 0x2d, 0x9a, 0x74, 0x4d, - 0x37, 0x5d, 0xb5, 0x1b, 0x8f, 0xda, 0xe5, 0x00, 0xe2, 0x82, 0x0c, 0x2a, 0x70, 0x40, 0x5b, 0x8c, - 0x7a, 0xd9, 0x4b, 0x64, 0x27, 0x53, 0xd7, 0xb4, 0xf1, 0xa4, 0x9e, 0x09, 0x10, 0x45, 0x91, 0x10, - 0xe7, 0x22, 0x21, 0x51, 0xc1, 0x85, 0xcf, 0xc0, 0xe7, 0xe8, 0x81, 0x43, 0x25, 0x2e, 0x9c, 0x2a, - 0xd4, 0x72, 0xea, 0xa7, 0x40, 0x9e, 0x99, 0x24, 0x76, 0x93, 0x34, 0x41, 0x2a, 0xea, 0xa5, 0x6e, - 0x9e, 0xdf, 0xbc, 0xff, 0xef, 0xbd, 0x99, 0xf7, 0xc6, 0xb0, 0xcc, 0x3c, 0x82, 0x5d, 0xc2, 0xf1, - 0x49, 0x87, 0x84, 0x5d, 0xb3, 0x1d, 0x52, 0x4e, 0x11, 0x62, 0x1e, 0x09, 0x08, 0xff, 0x96, 0x86, - 0x47, 0x26, 0xf3, 0x88, 0xe9, 0x12, 0xae, 0xaf, 0x78, 0xd4, 0xa3, 0xe2, 0x35, 0x8e, 0xfe, 0x93, - 0x9e, 0xfa, 0x3b, 0x1e, 0xa5, 0xde, 0x31, 0xc1, 0x4e, 0xdb, 0xc7, 0x4e, 0x10, 0x50, 0xee, 0x70, - 0x9f, 0x06, 0x4c, 0xbd, 0xdd, 0x6c, 0x50, 0xd6, 0xa2, 0x0c, 0xbb, 0x0e, 0x23, 0x52, 0x00, 0x7f, - 0xb3, 0xed, 0x12, 0xee, 0x6c, 0xe3, 0xb6, 0xe3, 0xf9, 0x81, 0x70, 0x56, 0xbe, 0x2b, 0x03, 0x90, - 0xb6, 0x13, 0x3a, 0xad, 0x41, 0x84, 0xa5, 0x81, 0xd5, 0x25, 0x5c, 0x99, 0x8a, 0x91, 0xa9, 0xe5, - 0x84, 0x47, 0x84, 0xab, 0x87, 0x7c, 0x61, 0xac, 0x00, 0xfa, 0x32, 0xd2, 0xd8, 0x13, 0x01, 0x6c, - 0x72, 0xd2, 0x21, 0x8c, 0x1b, 0xaf, 0x60, 0x39, 0x61, 0x65, 0x6d, 0x1a, 0x30, 0x82, 0xde, 0x87, - 0xac, 0x14, 0x2a, 0x69, 0x6b, 0xda, 0xf3, 0xfc, 0x8e, 0x6e, 0x8e, 0xe7, 0x6c, 0xca, 0x35, 0xd6, - 0xc2, 0xf9, 0x65, 0x25, 0x65, 0x2b, 0x7f, 0x63, 0x17, 0x0a, 0x22, 0xa0, 0x45, 0xb8, 0xd2, 0x40, - 0x25, 0x58, 0x6c, 0x84, 0xc4, 0xe1, 0x34, 0x14, 0xd1, 0x72, 0xf6, 0xe0, 0x27, 0x7a, 0x02, 0x99, - 0x8e, 0xdf, 0x2c, 0xa5, 0x23, 0xab, 0xb5, 0x78, 0x73, 0x59, 0x89, 0x7e, 0xda, 0xd1, 0x1f, 0xe3, - 0x7b, 0x0d, 0xde, 0x1c, 0x05, 0x52, 0x58, 0x18, 0x32, 0x2e, 0xe1, 0x8a, 0xa9, 0x38, 0x89, 0xc9, - 0x22, 0x5c, 0x01, 0x45, 0x9e, 0xe8, 0x43, 0xc8, 0xca, 0x22, 0x08, 0x8d, 0xfc, 0xce, 0xea, 0xed, - 0x35, 0xaa, 0x44, 0x5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, 0x0b, 0x00, 0x00, +func init() { proto.RegisterFile("sgenetwork/sge/bet/query.proto", fileDescriptor_5d73c4d56d215257) } + +var fileDescriptor_5d73c4d56d215257 = []byte{ + // 889 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0xcf, 0x6f, 0xe3, 0x44, + 0x14, 0xc7, 0xe3, 0xa4, 0x9b, 0x2a, 0x2f, 0xac, 0xc2, 0xce, 0x2e, 0x34, 0x6b, 0x6d, 0xe3, 0xae, + 0x69, 0xd3, 0xaa, 0x6d, 0x6c, 0xb5, 0xe5, 0x00, 0xe2, 0x82, 0x0c, 0x2a, 0x70, 0x40, 0x2d, 0x46, + 0xbd, 0xf4, 0x12, 0xd9, 0xc9, 0xd4, 0x35, 0x6d, 0x3c, 0xa9, 0x67, 0x02, 0x44, 0x51, 0x24, 0xc4, + 0xb9, 0x48, 0x48, 0x54, 0x70, 0xe1, 0x6f, 0xe0, 0xef, 0xe8, 0x81, 0x43, 0x25, 0x2e, 0x9c, 0x2a, + 0xd4, 0x72, 0xea, 0x5f, 0x81, 0x3c, 0x33, 0x49, 0xec, 0xfc, 0x68, 0x82, 0xd4, 0x55, 0x2f, 0x71, + 0x3c, 0xf3, 0xe6, 0x7d, 0x3f, 0xef, 0xcd, 0xbc, 0x37, 0x86, 0x12, 0xf5, 0x70, 0x80, 0xd9, 0x77, + 0x24, 0x3c, 0x31, 0xa9, 0x87, 0x4d, 0x17, 0x33, 0xf3, 0xac, 0x85, 0xc3, 0xb6, 0xd1, 0x0c, 0x09, + 0x23, 0x08, 0x0d, 0xe6, 0x0d, 0xea, 0x61, 0xc3, 0xc5, 0x4c, 0x7d, 0xe1, 0x11, 0x8f, 0xf0, 0x69, + 0x33, 0xfa, 0x27, 0x2c, 0xd5, 0x57, 0x1e, 0x21, 0xde, 0x29, 0x36, 0x9d, 0xa6, 0x6f, 0x3a, 0x41, + 0x40, 0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0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1136,7 +1136,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/bet/query.proto", + Metadata: "sgenetwork/sge/bet/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/query.pb.gw.go b/x/bet/types/query.pb.gw.go index 42f323cf..370e2a1c 100644 --- a/x/bet/types/query.pb.gw.go +++ b/x/bet/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/bet/query.proto +// source: sgenetwork/sge/bet/query.proto /* Package types is a reverse proxy. diff --git a/x/bet/types/stats.pb.go b/x/bet/types/stats.pb.go index 9b4fca44..e34d45ca 100644 --- a/x/bet/types/stats.pb.go +++ b/x/bet/types/stats.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/stats.proto +// source: sgenetwork/sge/bet/stats.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -32,7 +32,7 @@ func (m *BetStats) Reset() { *m = BetStats{} } func (m *BetStats) String() string { return proto.CompactTextString(m) } func (*BetStats) ProtoMessage() {} func (*BetStats) Descriptor() ([]byte, []int) { - return fileDescriptor_e7bd589ff6fa2d86, []int{0} + return fileDescriptor_d4b91f5cccbf55c0, []int{0} } func (m *BetStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,20 +72,20 @@ func init() { proto.RegisterType((*BetStats)(nil), "sgenetwork.sge.bet.BetStats") } -func init() { proto.RegisterFile("sge/bet/stats.proto", fileDescriptor_e7bd589ff6fa2d86) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/stats.proto", fileDescriptor_d4b91f5cccbf55c0) } -var fileDescriptor_e7bd589ff6fa2d86 = []byte{ - // 155 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x4e, 0x4f, 0xd5, - 0x4f, 0x4a, 0x2d, 0xd1, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x12, 0x2a, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, - 0x4b, 0x4a, 0x2d, 0x51, 0x52, 0xe0, 0xe2, 0x70, 0x4a, 0x2d, 0x09, 0x06, 0xa9, 0x12, 0x12, 0xe1, - 0x62, 0x4d, 0xce, 0x2f, 0xcd, 0x2b, 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x09, 0x82, 0x70, 0x9c, - 0x1c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, - 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2d, 0x3d, 0xb3, 0x24, - 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3d, 0x55, 0x17, 0x6a, 0x36, 0x88, 0xad, - 0x5f, 0x01, 0xb6, 0xbd, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0xbd, 0x31, 0x20, 0x00, - 0x00, 0xff, 0xff, 0xe8, 0xa1, 0x55, 0x2b, 0x95, 0x00, 0x00, 0x00, +var fileDescriptor_d4b91f5cccbf55c0 = []byte{ + // 154 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x4f, 0x4a, 0x2d, 0xd1, 0x2f, + 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0xc8, 0xeb, 0x15, + 0xa7, 0xa7, 0xea, 0x25, 0xa5, 0x96, 0x28, 0x29, 0x70, 0x71, 0x38, 0xa5, 0x96, 0x04, 0x83, 0x54, + 0x09, 0x89, 0x70, 0xb1, 0x26, 0xe7, 0x97, 0xe6, 0x95, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x04, + 0x41, 0x38, 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, + 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x96, + 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0x0b, 0xb2, 0x4f, 0x17, 0xd9, 0xee, 0x0a, + 0xb0, 0xed, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xeb, 0x8d, 0x01, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x99, 0x1c, 0x2c, 0x12, 0xa0, 0x00, 0x00, 0x00, } func (m *BetStats) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/ticket.go b/x/bet/types/ticket.go index 31b42e49..ec00a01c 100644 --- a/x/bet/types/ticket.go +++ b/x/bet/types/ticket.go @@ -4,7 +4,7 @@ import ( "strings" sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" "github.com/sge-network/sge/utils" ) @@ -50,11 +50,11 @@ func (payload *WagerTicketPayload) ValidateOdds() error { return ErrEmptyOddsValue } - if payload.SelectedOdds.MaxLossMultiplier.IsNil() || payload.SelectedOdds.MaxLossMultiplier.LTE(sdk.ZeroDec()) { + if payload.SelectedOdds.MaxLossMultiplier.IsNil() || payload.SelectedOdds.MaxLossMultiplier.LTE(sdkmath.LegacyZeroDec()) { return ErrMaxLossMultiplierCanNotBeZero } - if payload.SelectedOdds.MaxLossMultiplier.GT(sdk.OneDec()) { + if payload.SelectedOdds.MaxLossMultiplier.GT(sdkmath.LegacyOneDec()) { return ErrMaxLossMultiplierCanNotBeMoreThanOne } @@ -66,11 +66,11 @@ func (payload *WagerTicketPayload) ValidateCompactOdds(odds BetOddsCompact) erro return ErrInvalidOddsUID } - if odds.MaxLossMultiplier.IsNil() || odds.MaxLossMultiplier.LTE(sdk.ZeroDec()) { + if odds.MaxLossMultiplier.IsNil() || odds.MaxLossMultiplier.LTE(sdkmath.LegacyZeroDec()) { return ErrMaxLossMultiplierCanNotBeZero } - if odds.MaxLossMultiplier.GT(sdk.OneDec()) { + if odds.MaxLossMultiplier.GT(sdkmath.LegacyOneDec()) { return ErrMaxLossMultiplierCanNotBeMoreThanOne } diff --git a/x/bet/types/ticket.pb.go b/x/bet/types/ticket.pb.go index c93dab7f..84f73cd1 100644 --- a/x/bet/types/ticket.pb.go +++ b/x/bet/types/ticket.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/ticket.proto +// source: sgenetwork/sge/bet/ticket.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" types "github.com/sge-network/sge/types" io "io" math "math" @@ -42,7 +42,7 @@ func (m *WagerTicketPayload) Reset() { *m = WagerTicketPayload{} } func (m *WagerTicketPayload) String() string { return proto.CompactTextString(m) } func (*WagerTicketPayload) ProtoMessage() {} func (*WagerTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_cf6959e7db451613, []int{0} + return fileDescriptor_5c3f88574fd82596, []int{0} } func (m *WagerTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -110,32 +110,32 @@ func init() { proto.RegisterType((*WagerTicketPayload)(nil), "sgenetwork.sge.bet.WagerTicketPayload") } -func init() { proto.RegisterFile("sge/bet/ticket.proto", fileDescriptor_cf6959e7db451613) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/ticket.proto", fileDescriptor_5c3f88574fd82596) } -var fileDescriptor_cf6959e7db451613 = []byte{ - // 342 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4a, 0xeb, 0x40, - 0x14, 0x86, 0x93, 0xde, 0xde, 0xb6, 0x37, 0xbd, 0x2e, 0x1c, 0x8a, 0x84, 0x2a, 0xb1, 0x54, 0x90, - 0x6e, 0x9c, 0x81, 0x0a, 0xee, 0x84, 0x52, 0xbb, 0x13, 0x51, 0x82, 0x20, 0xb8, 0x29, 0x93, 0x99, - 0xc3, 0x58, 0x92, 0x76, 0x42, 0xe7, 0x88, 0xcd, 0x5b, 0xf8, 0x22, 0xbe, 0x47, 0x97, 0x5d, 0xba, - 0x12, 0x69, 0x5f, 0x44, 0x32, 0x49, 0x41, 0x54, 0xdc, 0x9d, 0xf3, 0xe7, 0xff, 0xcf, 0xff, 0x91, - 0xf1, 0x5a, 0x46, 0x01, 0x8b, 0x00, 0x19, 0x4e, 0x44, 0x0c, 0x48, 0xd3, 0xb9, 0x46, 0x4d, 0x88, - 0x51, 0x30, 0x03, 0x7c, 0xd2, 0xf3, 0x98, 0x1a, 0x05, 0x34, 0x02, 0x6c, 0xb7, 0x94, 0x56, 0xda, - 0x7e, 0x66, 0xf9, 0x54, 0x38, 0xdb, 0xb9, 0x93, 0x61, 0x96, 0x02, 0x8b, 0x33, 0x51, 0x6a, 0x7b, - 0xdb, 0x9b, 0x11, 0xe0, 0x58, 0x4b, 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0x7c, 0x66, 0x8b, 0xe2, - 0x85, 0xb3, 0x14, 0x4c, 0x54, 0xb3, 0x3f, 0xfe, 0xf4, 0x23, 0x00, 0x00, 0xff, 0xff, 0xc7, 0xac, - 0x67, 0x89, 0xf9, 0x01, 0x00, 0x00, +var fileDescriptor_5c3f88574fd82596 = []byte{ + // 343 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x41, 0x4b, 0x02, 0x41, + 0x18, 0x86, 0x77, 0xcd, 0xd4, 0xd6, 0xba, 0x0c, 0x1d, 0x16, 0xb3, 0xd5, 0x0c, 0xc2, 0x4b, 0xb3, + 0x60, 0xd0, 0x2d, 0x10, 0xf3, 0x16, 0x51, 0x2c, 0x41, 0xd0, 0x45, 0x66, 0x67, 0x3e, 0x26, 0xd9, + 0xd5, 0x59, 0x9c, 0x2f, 0x72, 0xff, 0x45, 0x7f, 0xa4, 0xff, 0xe1, 0xd1, 0x63, 0xa7, 0x08, 0xfd, + 0x23, 0xb1, 0xb3, 0x4a, 0x61, 0xd2, 0x6d, 0xbf, 0xfd, 0xde, 0x77, 0xde, 0x67, 0x5e, 0xc6, 0x69, + 0x68, 0x09, 0x63, 0xc0, 0x57, 0x35, 0x89, 0x7c, 0x2d, 0xc1, 0x0f, 0x01, 0x7d, 0x1c, 0xf2, 0x08, + 0x90, 0x26, 0x13, 0x85, 0x8a, 0x90, 0x1f, 0x01, 0xd5, 0x12, 0x68, 0x08, 0x58, 0x3b, 0x94, 0x4a, + 0x2a, 0xb3, 0xf6, 0xb3, 0xaf, 0x5c, 0x59, 0x3b, 0xde, 0x38, 0x0a, 0xd3, 0x04, 0xfc, 0x28, 0xe5, + 0xab, 0x75, 0x7d, 0x4b, 0x52, 0xb8, 0x8e, 0xa9, 0x9d, 0x6c, 0xdf, 0x0e, 0x94, 0x10, 0x3a, 0x97, + 0xb4, 0xde, 0x0b, 0x0e, 0x79, 0x64, 0x12, 0x26, 0x0f, 0x86, 0xef, 0x9e, 0xa5, 0xb1, 0x62, 0x82, + 0x74, 0x9d, 0x03, 0x0d, 0x31, 0x70, 0x04, 0x61, 0xd4, 0xae, 0xdd, 0xb4, 0xdb, 0xd5, 0xce, 0x11, + 0xfd, 0x0b, 0x4e, 0x7b, 0x80, 0x77, 0x42, 0xe8, 0x60, 0x7f, 0xed, 0xc8, 0x26, 0xd2, 0x77, 0x2a, + 0x51, 0xca, 0x07, 0x82, 0x21, 0x73, 0x0b, 0xc6, 0x7c, 0xba, 0x69, 0xce, 0xee, 0x42, 0x6f, 0x52, + 0xde, 0x67, 0xc8, 0x56, 0xc1, 0xbd, 0xe2, 0xec, 0xb3, 0x61, 0x05, 0xe5, 0x28, 0xff, 0x4b, 0xae, + 0x9c, 0x0a, 0x8b, 0xe3, 0x1c, 0xa1, 0xd8, 0xdc, 0x69, 0x57, 0x3b, 0xad, 0x7f, 0x10, 0xae, 0xd5, + 0x28, 0x61, 0x1c, 0x83, 0x32, 0x8b, 0x63, 0x03, 0x71, 0xe9, 0x14, 0x47, 0x80, 0xcc, 0xdd, 0x35, + 0x00, 0xf5, 0x6d, 0xd6, 0x5b, 0x40, 0x96, 0x45, 0xad, 0x92, 0x8d, 0x9e, 0xb8, 0x4e, 0x99, 0xab, + 0x31, 0xc2, 0x14, 0xdd, 0x52, 0xd3, 0x6e, 0xef, 0x05, 0xeb, 0xb1, 0xd7, 0x9d, 0x2d, 0x3c, 0x7b, + 0xbe, 0xf0, 0xec, 0xaf, 0x85, 0x67, 0xbf, 0x2d, 0x3d, 0x6b, 0xbe, 0xf4, 0xac, 0x8f, 0xa5, 0x67, + 0x3d, 0x9d, 0xc9, 0x21, 0x3e, 0xbf, 0x84, 0x94, 0xab, 0x51, 0x56, 0xf6, 0xf9, 0xef, 0xe2, 0xa7, + 0xf9, 0x13, 0x48, 0x13, 0xd0, 0x61, 0xc9, 0x14, 0x7f, 0xf1, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x6b, + 0x10, 0xb1, 0xd7, 0x25, 0x02, 0x00, 0x00, } func (m *WagerTicketPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/ticket_test.go b/x/bet/types/ticket_test.go index 523fdb04..2c10c22f 100644 --- a/x/bet/types/ticket_test.go +++ b/x/bet/types/ticket_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" sgetypes "github.com/sge-network/sge/types" "github.com/sge-network/sge/x/bet/types" @@ -24,7 +24,7 @@ func TestTicketFieldsValidation(t *testing.T) { MarketUID: "6e31c60f-2025-48ce-ae79-1dc110f16355", UID: " ", Value: "10", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, kyc: sgetypes.KycDataPayload{ Ignore: true, @@ -39,7 +39,7 @@ func TestTicketFieldsValidation(t *testing.T) { MarketUID: " ", UID: "6e31c60f-2025-48ce-ae79-1dc110f16355", Value: "10", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, kyc: sgetypes.KycDataPayload{ Approved: true, @@ -53,7 +53,7 @@ func TestTicketFieldsValidation(t *testing.T) { MarketUID: "6e31c60f-2025-48ce-ae79-1dc110f16355", UID: "6e31c60f-2025-48ce-ae79-1dc110f16355", Value: "", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, kyc: sgetypes.KycDataPayload{ Approved: true, @@ -67,7 +67,7 @@ func TestTicketFieldsValidation(t *testing.T) { MarketUID: "6e31c60f-2025-48ce-ae79-1dc110f16355", UID: "6e31c60f-2025-48ce-ae79-1dc110f16355", Value: "10", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, err: types.ErrUserKycFailed, }, @@ -77,7 +77,7 @@ func TestTicketFieldsValidation(t *testing.T) { MarketUID: "6e31c60f-2025-48ce-ae79-1dc110f16355", UID: "6e31c60f-2025-48ce-ae79-1dc110f16355", Value: "10", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, kyc: sgetypes.KycDataPayload{ Approved: true, @@ -91,7 +91,7 @@ func TestTicketFieldsValidation(t *testing.T) { MarketUID: "6e31c60f-2025-48ce-ae79-1dc110f16355", UID: "6e31c60f-2025-48ce-ae79-1dc110f16355", Value: "10", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, kyc: sgetypes.KycDataPayload{ Approved: true, diff --git a/x/bet/types/tx.pb.go b/x/bet/types/tx.pb.go index bba6e06b..41b3a93d 100644 --- a/x/bet/types/tx.pb.go +++ b/x/bet/types/tx.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/tx.proto +// source: sgenetwork/sge/bet/tx.proto package types import ( context "context" fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -39,7 +39,7 @@ func (m *MsgWager) Reset() { *m = MsgWager{} } func (m *MsgWager) String() string { return proto.CompactTextString(m) } func (*MsgWager) ProtoMessage() {} func (*MsgWager) Descriptor() ([]byte, []int) { - return fileDescriptor_38b4167f68c2a7f8, []int{0} + return fileDescriptor_3fc41486184bd76d, []int{0} } func (m *MsgWager) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,7 +92,7 @@ func (m *MsgWagerResponse) Reset() { *m = MsgWagerResponse{} } func (m *MsgWagerResponse) String() string { return proto.CompactTextString(m) } func (*MsgWagerResponse) ProtoMessage() {} func (*MsgWagerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_38b4167f68c2a7f8, []int{1} + return fileDescriptor_3fc41486184bd76d, []int{1} } func (m *MsgWagerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,25 +133,25 @@ func init() { proto.RegisterType((*MsgWagerResponse)(nil), "sgenetwork.sge.bet.MsgWagerResponse") } -func init() { proto.RegisterFile("sge/bet/tx.proto", fileDescriptor_38b4167f68c2a7f8) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/tx.proto", fileDescriptor_3fc41486184bd76d) } -var fileDescriptor_38b4167f68c2a7f8 = []byte{ - // 239 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x28, 0x4e, 0x4f, 0xd5, - 0x4f, 0x4a, 0x2d, 0xd1, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2a, 0x4e, - 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, 0x4b, 0x4a, 0x2d, - 0x91, 0x12, 0x86, 0xa9, 0x2a, 0x4f, 0x4c, 0x4f, 0x2d, 0x82, 0x28, 0x54, 0x8a, 0xe2, 0xe2, 0xf0, - 0x2d, 0x4e, 0x0f, 0x07, 0x89, 0x08, 0x49, 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, - 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x42, 0x26, 0x5c, 0xac, 0x05, 0x45, 0xf9, - 0x05, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x72, 0x7a, 0x98, 0xc6, 0xeb, 0x81, 0xcd, - 0x08, 0x00, 0xa9, 0x0a, 0x82, 0x28, 0x56, 0xf2, 0xe0, 0x12, 0x80, 0x99, 0x1d, 0x94, 0x5a, 0x5c, - 0x90, 0x9f, 0x57, 0x9c, 0x8a, 0x30, 0x89, 0x91, 0x04, 0x93, 0x8c, 0x82, 0xb8, 0x98, 0x7d, 0x8b, - 0xd3, 0x85, 0xbc, 0xb9, 0x58, 0x21, 0x2e, 0x95, 0xc1, 0xa6, 0x0d, 0x66, 0x97, 0x94, 0x0a, 0x3e, - 0x59, 0x98, 0x4b, 0x9c, 0x1c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, - 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, - 0x2d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3d, 0x55, 0x17, - 0x6a, 0x14, 0x88, 0xad, 0x5f, 0x01, 0x09, 0xe7, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x10, - 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x41, 0x9b, 0xc2, 0x84, 0x7f, 0x01, 0x00, 0x00, +var fileDescriptor_3fc41486184bd76d = []byte{ + // 238 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x4f, 0x4a, 0x2d, 0xd1, 0x2f, + 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0x48, 0xea, 0x15, 0xa7, 0xa7, 0xea, + 0x25, 0xa5, 0x96, 0x48, 0xc9, 0x61, 0xd1, 0x50, 0x9e, 0x98, 0x9e, 0x5a, 0x04, 0xd1, 0xa3, 0x14, + 0xc5, 0xc5, 0xe1, 0x5b, 0x9c, 0x1e, 0x0e, 0x12, 0x11, 0x92, 0xe0, 0x62, 0x4f, 0x2e, 0x4a, 0x4d, + 0x2c, 0xc9, 0x2f, 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x85, 0x4c, 0xb8, 0x58, + 0x0b, 0x8a, 0xf2, 0x0b, 0x8a, 0x25, 0x98, 0x14, 0x18, 0x35, 0xb8, 0x8d, 0xe4, 0xf4, 0x30, 0x6d, + 0xd2, 0x03, 0x9b, 0x11, 0x00, 0x52, 0x15, 0x04, 0x51, 0xac, 0xe4, 0xc1, 0x25, 0x00, 0x33, 0x3b, + 0x28, 0xb5, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x15, 0x61, 0x12, 0x23, 0x09, 0x26, 0x19, 0x05, 0x71, + 0x31, 0xfb, 0x16, 0xa7, 0x0b, 0x79, 0x73, 0xb1, 0x42, 0x5c, 0x2a, 0x83, 0x4d, 0x1b, 0xcc, 0x2e, + 0x29, 0x15, 0x7c, 0xb2, 0x30, 0x97, 0x38, 0x39, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, + 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, + 0x1c, 0x43, 0x94, 0x5a, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x28, 0xcc, + 0x74, 0x91, 0xc3, 0xaf, 0x02, 0x12, 0xe4, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x20, 0x34, + 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xa6, 0x56, 0x07, 0x95, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -233,7 +233,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/bet/tx.proto", + Metadata: "sgenetwork/sge/bet/tx.proto", } func (m *MsgWager) Marshal() (dAtA []byte, err error) { diff --git a/x/bet/types/wager.pb.go b/x/bet/types/wager.pb.go index 730d4090..6f8037bc 100644 --- a/x/bet/types/wager.pb.go +++ b/x/bet/types/wager.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/bet/wager.proto +// source: sgenetwork/sge/bet/wager.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -38,7 +38,7 @@ func (m *WagerProps) Reset() { *m = WagerProps{} } func (m *WagerProps) String() string { return proto.CompactTextString(m) } func (*WagerProps) ProtoMessage() {} func (*WagerProps) Descriptor() ([]byte, []int) { - return fileDescriptor_b14a4fe747361920, []int{0} + return fileDescriptor_d31f188015e12e07, []int{0} } func (m *WagerProps) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -85,26 +85,26 @@ func init() { proto.RegisterType((*WagerProps)(nil), "sgenetwork.sge.bet.WagerProps") } -func init() { proto.RegisterFile("sge/bet/wager.proto", fileDescriptor_b14a4fe747361920) } +func init() { proto.RegisterFile("sgenetwork/sge/bet/wager.proto", fileDescriptor_d31f188015e12e07) } -var fileDescriptor_b14a4fe747361920 = []byte{ - // 247 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x4e, 0x4f, 0xd5, - 0x4f, 0x4a, 0x2d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x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, - 0x7e, 0xae, 0x7e, 0x71, 0x7a, 0xaa, 0x2e, 0xd4, 0x3b, 0x20, 0xb6, 0x7e, 0x05, 0xd8, 0xc3, 0x25, - 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x7f, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x70, - 0xf1, 0xda, 0x76, 0x08, 0x01, 0x00, 0x00, +var fileDescriptor_d31f188015e12e07 = []byte{ + // 245 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x4f, 0x4a, 0x2d, 0xd1, 0x2f, + 0x4f, 0x4c, 0x4f, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0xc8, 0xeb, 0x15, + 0xa7, 0xa7, 0xea, 0x25, 0xa5, 0x96, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xa5, 0xf5, 0x41, + 0x2c, 0x88, 0x4a, 0xa5, 0x5a, 0x2e, 0xae, 0x70, 0x90, 0xc6, 0x80, 0xa2, 0xfc, 0x82, 0x62, 0x21, + 0x05, 0x2e, 0xe6, 0xd2, 0xcc, 0x14, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x4e, 0x27, 0xbe, 0x47, 0xf7, + 0xe4, 0x99, 0x43, 0x3d, 0x5d, 0x5e, 0xdd, 0x93, 0x07, 0x89, 0x06, 0x81, 0x08, 0x21, 0x53, 0x2e, + 0xb6, 0xc4, 0xdc, 0xfc, 0xd2, 0xbc, 0x12, 0x09, 0x26, 0xb0, 0x22, 0xd9, 0x13, 0xf7, 0xe4, 0x19, + 0x6e, 0xdd, 0x93, 0x17, 0x4d, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x2e, 0x4e, 0xc9, 0xd6, 0xcb, 0xcc, + 0xd7, 0xcf, 0x4d, 0x2c, 0xc9, 0xd0, 0xf3, 0xcc, 0x2b, 0x09, 0x82, 0x2a, 0x16, 0x12, 0xe3, 0x62, + 0x2b, 0xc9, 0x4c, 0xce, 0x4e, 0x2d, 0x91, 0x60, 0x06, 0x69, 0x0b, 0x82, 0xf2, 0x9c, 0x1c, 0x4e, + 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, + 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, + 0x49, 0x2f, 0x39, 0x3f, 0x17, 0xe4, 0x45, 0x5d, 0x64, 0xef, 0x56, 0x80, 0x3d, 0x5c, 0x52, 0x59, + 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xf6, 0x87, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x1c, 0xf5, + 0xe1, 0x13, 0x01, 0x00, 0x00, } func (m *WagerProps) Marshal() (dAtA []byte, err error) { diff --git a/x/house/client/cli/query_deposit_test.go b/x/house/client/cli/query_deposit_test.go index 3150657b..e9a79ebd 100644 --- a/x/house/client/cli/query_deposit_test.go +++ b/x/house/client/cli/query_deposit_test.go @@ -5,12 +5,8 @@ import ( "testing" "time" - "github.com/spf13/cast" - "github.com/stretchr/testify/require" - - tmcli "github.com/tendermint/tendermint/libs/cli" - sdkmath "cosmossdk.io/math" + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" @@ -20,6 +16,8 @@ import ( "github.com/sge-network/sge/x/house/client/cli" "github.com/sge-network/sge/x/house/types" markettypes "github.com/sge-network/sge/x/market/types" + "github.com/spf13/cast" + "github.com/stretchr/testify/require" ) const testMarketUID = "5db09053-2901-4110-8fb5-c14e21f8d555" diff --git a/x/house/client/cli/query_withdrawal_test.go b/x/house/client/cli/query_withdrawal_test.go index 75b95ed5..87c733d6 100644 --- a/x/house/client/cli/query_withdrawal_test.go +++ b/x/house/client/cli/query_withdrawal_test.go @@ -4,16 +4,14 @@ import ( "fmt" "testing" - "github.com/stretchr/testify/require" - - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/sge-network/sge/testutil/nullify" "github.com/sge-network/sge/x/house/client/cli" "github.com/sge-network/sge/x/house/types" + "github.com/stretchr/testify/require" ) func TestQueryWithdraw(t *testing.T) { diff --git a/x/house/client/cli/tx_deposit_test.go b/x/house/client/cli/tx_deposit_test.go index 87200c54..2dd926ff 100644 --- a/x/house/client/cli/tx_deposit_test.go +++ b/x/house/client/cli/tx_deposit_test.go @@ -23,7 +23,7 @@ func TestTXDepositCLI(t *testing.T) { commonArgs := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock), + fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), fmt.Sprintf( "--%s=%s", flags.FlagFees, diff --git a/x/house/client/cli/tx_withdraw_test.go b/x/house/client/cli/tx_withdraw_test.go index 1a21fd63..3bf826bd 100644 --- a/x/house/client/cli/tx_withdraw_test.go +++ b/x/house/client/cli/tx_withdraw_test.go @@ -24,7 +24,7 @@ func TestTXWithdrawCLI(t *testing.T) { commonArgs := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock), + fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), fmt.Sprintf( "--%s=%s", flags.FlagFees, diff --git a/x/house/keeper/params.go b/x/house/keeper/params.go index 9fd0033c..d2e6293c 100644 --- a/x/house/keeper/params.go +++ b/x/house/keeper/params.go @@ -24,7 +24,7 @@ func (k Keeper) GetMinAllowedDepositAmount(ctx sdk.Context) (res sdkmath.Int) { } // GetHouseParticipationFee returns % of deposit to be paid for house participation by an account -func (k Keeper) GetHouseParticipationFee(ctx sdk.Context) (res sdk.Dec) { +func (k Keeper) GetHouseParticipationFee(ctx sdk.Context) (res sdkmath.LegacyDec) { return k.GetParams(ctx).HouseParticipationFee } diff --git a/x/house/module.go b/x/house/module.go index 8dfeff34..6b81420d 100644 --- a/x/house/module.go +++ b/x/house/module.go @@ -5,17 +5,15 @@ import ( "encoding/json" "fmt" - "github.com/gorilla/mux" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - abci "github.com/tendermint/tendermint/abci/types" - + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/gorilla/mux" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" "github.com/sge-network/sge/x/house/client/cli" "github.com/sge-network/sge/x/house/keeper" @@ -100,19 +98,9 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { // RegisterInvariants registers the house module invariants. func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} -// Route returns the message routing key for the house module. -func (am AppModule) Route() sdk.Route { - return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) -} - // QuerierRoute returns the house module's querier route name. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the house module sdk.Querier. -func (AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} - // RegisterServices registers a GRPC query service to respond to the module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) diff --git a/x/house/module_simulation.go b/x/house/module_simulation.go index 6d7c86e2..f5f3fe9c 100644 --- a/x/house/module_simulation.go +++ b/x/house/module_simulation.go @@ -2,10 +2,9 @@ package house import ( //#nosec - "math/rand" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -20,7 +19,7 @@ import ( var ( _ = sample.AccAddress _ = housesimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -31,15 +30,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return housesimulation.ParamChanges(r) -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = housesimulation.NewDecodeStore(am.cdc) diff --git a/x/house/simulation/genesis.go b/x/house/simulation/genesis.go index 1e665afc..1bdff9e8 100644 --- a/x/house/simulation/genesis.go +++ b/x/house/simulation/genesis.go @@ -10,7 +10,6 @@ import ( "github.com/spf13/cast" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/sge-network/sge/x/house/types" @@ -23,8 +22,8 @@ const ( ) // GenHouseParticipationFee randomized batch settlement count -func GenHouseParticipationFee(r *rand.Rand) sdk.Dec { - return sdk.NewDec(cast.ToInt64(r.Intn(99))) +func GenHouseParticipationFee(r *rand.Rand) sdkmath.LegacyDec { + return sdkmath.LegacyNewDec(cast.ToInt64(r.Intn(99))) } // GenMinDeposit randomized house by uid query count @@ -34,7 +33,7 @@ func GenMinDeposit(r *rand.Rand) sdkmath.Int { // RandomizedGenState generates a random GenesisState for house func RandomizedGenState(simState *module.SimulationState) { - var houseParticipationFee sdk.Dec + var houseParticipationFee sdkmath.LegacyDec simState.AppParams.GetOrGenerate( simState.Cdc, HouseParticipationFee, &houseParticipationFee, simState.Rand, func(r *rand.Rand) { houseParticipationFee = GenHouseParticipationFee(r) }, diff --git a/x/house/simulation/genesis_test.go b/x/house/simulation/genesis_test.go index f09e823b..7f555469 100644 --- a/x/house/simulation/genesis_test.go +++ b/x/house/simulation/genesis_test.go @@ -11,7 +11,6 @@ import ( sdkmath "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -44,7 +43,7 @@ func TestRandomizedGenState(t *testing.T) { var houseGenesis types.GenesisState simState.Cdc.MustUnmarshalJSON(simState.GenState[types.ModuleName], &houseGenesis) - require.Equal(t, sdk.NewDecWithPrec(1, 1), houseGenesis.Params.HouseParticipationFee) + require.Equal(t, sdkmath.LegacyNewDecWithPrec(1, 1), houseGenesis.Params.HouseParticipationFee) require.Equal(t, sdkmath.NewInt(100), houseGenesis.Params.MinDeposit) } diff --git a/x/house/simulation/params.go b/x/house/simulation/params.go index 83b38c93..7f4446a2 100644 --- a/x/house/simulation/params.go +++ b/x/house/simulation/params.go @@ -19,9 +19,9 @@ const ( // ParamChanges defines the parameters that can be modified by param change proposals // on the simulation -func ParamChanges(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{ - simulation.NewSimParamChange(types.ModuleName, keyMinDeposit, +func ParamChanges(_ *rand.Rand) []simtypes.LegacyParamChange { + return []simtypes.LegacyParamChange{ + simulation.NewSimLegacyParamChange(types.ModuleName, keyMinDeposit, func(r *rand.Rand) string { return fmt.Sprintf("\"%s\"", GenMinDeposit(r)) }, diff --git a/x/house/types/authz.pb.go b/x/house/types/authz.pb.go index d2739962..7e218dba 100644 --- a/x/house/types/authz.pb.go +++ b/x/house/types/authz.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/authz.proto +// source: sgenetwork/sge/house/authz.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -34,7 +34,7 @@ func (m *DepositAuthorization) Reset() { *m = DepositAuthorization{} } func (m *DepositAuthorization) String() string { return proto.CompactTextString(m) } func (*DepositAuthorization) ProtoMessage() {} func (*DepositAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_65362c36d170cdf0, []int{0} + return fileDescriptor_ad67f0a0dd6cd8ca, []int{0} } func (m *DepositAuthorization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,7 +73,7 @@ func (m *WithdrawAuthorization) Reset() { *m = WithdrawAuthorization{} } func (m *WithdrawAuthorization) String() string { return proto.CompactTextString(m) } func (*WithdrawAuthorization) ProtoMessage() {} func (*WithdrawAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_65362c36d170cdf0, []int{1} + return fileDescriptor_ad67f0a0dd6cd8ca, []int{1} } func (m *WithdrawAuthorization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -107,26 +107,26 @@ func init() { proto.RegisterType((*WithdrawAuthorization)(nil), "sgenetwork.sge.house.WithdrawAuthorization") } -func init() { proto.RegisterFile("sge/house/authz.proto", fileDescriptor_65362c36d170cdf0) } +func init() { proto.RegisterFile("sgenetwork/sge/house/authz.proto", fileDescriptor_ad67f0a0dd6cd8ca) } -var fileDescriptor_65362c36d170cdf0 = []byte{ - // 253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x4e, 0x4f, 0xd5, - 0xcf, 0xc8, 0x2f, 0x2d, 0x4e, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0xa8, 0xd2, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x12, 0x29, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, - 0x4f, 0xd5, 0x03, 0xab, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 0xd0, 0x07, 0xb1, 0x20, - 0x6a, 0x95, 0xc2, 0xb8, 0x44, 0x5c, 0x52, 0x0b, 0xf2, 0x8b, 0x33, 0x4b, 0x1c, 0x4b, 0x4b, 0x32, - 0xf2, 0x8b, 0x32, 0xab, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0xec, 0xb8, 0xb8, 0x8b, 0x0b, 0x52, - 0xf3, 0x52, 0xe2, 0x73, 0x32, 0x73, 0x33, 0x4b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x64, - 0x4f, 0xdc, 0x93, 0x67, 0xb8, 0x75, 0x4f, 0x5e, 0x34, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0xb8, 0x38, - 0x25, 0x5b, 0x2f, 0x33, 0x5f, 0x3f, 0x37, 0xb1, 0x24, 0x43, 0xcf, 0x33, 0xaf, 0x24, 0x88, 0x0b, - 0xac, 0xc3, 0x07, 0xa4, 0x41, 0x29, 0x96, 0x4b, 0x34, 0x3c, 0xb3, 0x24, 0x23, 0xa5, 0x28, 0xb1, - 0x1c, 0xd5, 0x60, 0x17, 0x2e, 0xbe, 0x72, 0xa8, 0x04, 0x29, 0x66, 0xf3, 0xc2, 0x34, 0x81, 0x8d, - 0x77, 0x72, 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, - 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x8d, 0xf4, 0xcc, - 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0xf4, 0x54, 0x5d, 0x68, 0x40, 0x80, - 0xd8, 0xfa, 0x15, 0xd0, 0xc0, 0x2a, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x80, 0x31, - 0x20, 0x00, 0x00, 0xff, 0xff, 0xb3, 0xfb, 0xb1, 0x8e, 0x46, 0x01, 0x00, 0x00, +var fileDescriptor_ad67f0a0dd6cd8ca = []byte{ + // 252 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0xc8, 0x2f, 0x2d, 0x4e, + 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0xa8, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x41, 0xa8, + 0xd0, 0x2b, 0x4e, 0x4f, 0xd5, 0x03, 0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x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0x4d, 0x73, 0xfa, 0x1d, 0x51, 0x01, 0x00, 0x00, } func (m *DepositAuthorization) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/codec.go b/x/house/types/codec.go index c3902e03..01718d61 100644 --- a/x/house/types/codec.go +++ b/x/house/types/codec.go @@ -4,7 +4,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" "github.com/cosmos/cosmos-sdk/x/authz" @@ -41,6 +40,6 @@ var ( func init() { RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) + // cryptocodec.RegisterCrypto(amino) sdk.RegisterLegacyAminoCodec(amino) } diff --git a/x/house/types/deposit.go b/x/house/types/deposit.go index 4f6b5a4e..56dee1f3 100644 --- a/x/house/types/deposit.go +++ b/x/house/types/deposit.go @@ -4,7 +4,6 @@ import ( yaml "gopkg.in/yaml.v2" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) // NewDeposit creates a new deposit object @@ -33,6 +32,6 @@ func (d *Deposit) String() string { } // CalcHouseParticipationFeeAmount sets participation fee amount for house -func (d *Deposit) CalcHouseParticipationFeeAmount(feePercentage sdk.Dec) sdkmath.Int { +func (d *Deposit) CalcHouseParticipationFeeAmount(feePercentage sdkmath.LegacyDec) sdkmath.Int { return feePercentage.MulInt(d.Amount).RoundInt() } diff --git a/x/house/types/deposit.pb.go b/x/house/types/deposit.pb.go index 3f79ad91..ee347799 100644 --- a/x/house/types/deposit.pb.go +++ b/x/house/types/deposit.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/deposit.proto +// source: sgenetwork/sge/house/deposit.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -48,7 +48,7 @@ type Deposit struct { func (m *Deposit) Reset() { *m = Deposit{} } func (*Deposit) ProtoMessage() {} func (*Deposit) Descriptor() ([]byte, []int) { - return fileDescriptor_c6f2840908fc45a1, []int{0} + return fileDescriptor_723fb8b8b0b44700, []int{0} } func (m *Deposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,38 +81,40 @@ func init() { proto.RegisterType((*Deposit)(nil), "sgenetwork.sge.house.Deposit") } -func init() { proto.RegisterFile("sge/house/deposit.proto", fileDescriptor_c6f2840908fc45a1) } +func init() { + proto.RegisterFile("sgenetwork/sge/house/deposit.proto", fileDescriptor_723fb8b8b0b44700) +} -var fileDescriptor_c6f2840908fc45a1 = []byte{ - // 441 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x3f, 0x6f, 0xd3, 0x40, - 0x18, 0xc6, 0x6d, 0x08, 0x89, 0x7a, 0xe2, 0x4f, 0x39, 0x5a, 0x6a, 0x15, 0xe4, 0xab, 0x6e, 0xca, - 0x00, 0xf6, 0xc0, 0x56, 0x06, 0x94, 0x50, 0x21, 0x65, 0x40, 0x48, 0x96, 0x10, 0x12, 0x8b, 0x75, - 0xb5, 0x4f, 0xce, 0x29, 0xb1, 0x5f, 0xeb, 0xee, 0xa2, 0xb4, 0xdf, 0x80, 0x91, 0x91, 0x31, 0xe2, - 0xd3, 0x74, 0xec, 0x88, 0x18, 0x4e, 0xc8, 0x59, 0x10, 0xa3, 0x3f, 0x01, 0xca, 0x9d, 0x69, 0x83, - 0x00, 0xb1, 0xdd, 0x3d, 0xef, 0xef, 0x79, 0xde, 0x67, 0x78, 0xd1,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f, 0x0d, 0xd9, 0xcf, 0x40, 0x95, 0xa0, 0x54, 0x3e, 0x8b, 0x04, 0xc4, 0x25, 0xd3, - 0xd3, 0x68, 0x52, 0xe9, 0xd6, 0x90, 0x3b, 0x6e, 0x81, 0x33, 0xd1, 0xa4, 0x73, 0xe3, 0x11, 0xda, - 0x5d, 0x0a, 0x3d, 0xcd, 0x25, 0x5b, 0xb2, 0x79, 0x9a, 0xd9, 0xc4, 0xbe, 0x6d, 0xf5, 0xb0, 0x35, - 0x04, 0x3b, 0xd3, 0x35, 0xa1, 0x68, 0x72, 0xef, 0xfa, 0xf7, 0xd2, 0x46, 0x2c, 0xd1, 0x81, 0x06, - 0xcd, 0xe6, 0xe9, 0x56, 0x50, 0xd7, 0x6d, 0x60, 0xbb, 0xbd, 0xf8, 0x5f, 0xb7, 0xd0, 0xad, 0xf9, - 0x47, 0x0a, 0x4d, 0xf6, 0xed, 0xe4, 0xdd, 0xd5, 0x60, 0x64, 0xf5, 0xe3, 0xdb, 0x1f, 0x56, 0xc4, - 0xfb, 0xb4, 0x22, 0xde, 0xf7, 0x15, 0xf1, 0xc6, 0xe3, 0x8b, 0x26, 0xf4, 0x2f, 0x9b, 0xd0, 0xff, - 0xd6, 0x84, 0xfe, 0xc7, 0x75, 0xe8, 0x5d, 0xae, 0x43, 0xef, 0xcb, 0x3a, 0xf4, 0xde, 0x0f, 0x0b, - 0xa1, 0xa7, 0x8b, 0xd3, 0x28, 0x83, 0x32, 0x56, 0x05, 0x7f, 0xda, 0x9d, 0xdd, 0xe6, 0x1d, 0x9f, - 0x75, 0xc7, 0xa9, 0xcf, 0x6b, 0xae, 0x4e, 0xfb, 0xf6, 0xde, 0x9e, 0xfd, 0x0c, 0x00, 0x00, 0xff, - 0xff, 0xce, 0xd4, 0x22, 0x0c, 0xb6, 0x02, 0x00, 0x00, +var fileDescriptor_723fb8b8b0b44700 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00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c, 0xcf, 0x0b, 0xe2, 0xfd, 0x58, 0x10, 0x6f, 0x38, 0xbc, 0x5c, 0x86, 0xfe, 0xd5, 0x32, + 0xf4, 0xbf, 0x2f, 0x43, 0xff, 0xd3, 0x2a, 0xf4, 0xae, 0x56, 0xa1, 0xf7, 0x75, 0x15, 0x7a, 0x1f, + 0xfa, 0x85, 0xd0, 0xe3, 0xd9, 0x59, 0x94, 0x41, 0xb9, 0x3e, 0xc7, 0x67, 0xbb, 0xa7, 0x79, 0xde, + 0x1e, 0xa7, 0xbe, 0xa8, 0xb9, 0x3a, 0xeb, 0xda, 0x7b, 0x7b, 0xfe, 0x2b, 0x00, 0x00, 0xff, 0xff, + 0xef, 0x50, 0xa6, 0xd7, 0xc1, 0x02, 0x00, 0x00, } func (m *Deposit) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/genesis.pb.go b/x/house/types/genesis.pb.go index 4b7450d5..bc365ff4 100644 --- a/x/house/types/genesis.pb.go +++ b/x/house/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/genesis.proto +// source: sgenetwork/sge/house/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -37,7 +37,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_aa4dcd3bb98435db, []int{0} + return fileDescriptor_02191d749ca2ced3, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,28 +91,30 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.house.GenesisState") } -func init() { proto.RegisterFile("sge/house/genesis.proto", fileDescriptor_aa4dcd3bb98435db) } +func init() { + proto.RegisterFile("sgenetwork/sge/house/genesis.proto", fileDescriptor_02191d749ca2ced3) +} -var fileDescriptor_aa4dcd3bb98435db = []byte{ - // 281 bytes of a gzipped FileDescriptorProto +var fileDescriptor_02191d749ca2ced3 = []byte{ + // 282 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x31, 0x4b, 0xc3, 0x40, - 0x14, 0xc7, 0x73, 0x56, 0x3a, 0x24, 0x45, 0x21, 0x14, 0x0d, 0x45, 0xcf, 0xe0, 0x94, 0xc5, 0x0b, - 0xd4, 0xcd, 0x31, 0x88, 0x2e, 0x82, 0xa2, 0x83, 0xe0, 0x22, 0xa9, 0x3d, 0x2e, 0x87, 0xad, 0x17, - 0xf2, 0x5e, 0x89, 0x7e, 0x0b, 0x3f, 0x56, 0xc7, 0x8e, 0x4e, 0x22, 0xc9, 0x17, 0x91, 0xe4, 0x9e, - 0xa6, 0x43, 0xb6, 0x77, 0xfc, 0x7f, 0xef, 0x77, 0x7f, 0x9e, 0x7b, 0x08, 0x4a, 0xc6, 0x99, 0x59, - 0x81, 0x8c, 0x95, 0x7c, 0x93, 0xa0, 0x41, 0xe4, 0x85, 0x41, 0xe3, 0x8f, 0xa1, 0x79, 0x63, 0x69, - 0x8a, 0x57, 0x01, 0x4a, 0x8a, 0x96, 0x99, 0x8c, 0x95, 0x51, 0xa6, 0x05, 0xe2, 0x66, 0xb2, 0xec, - 0x64, 0x4b, 0x32, 0x97, 0xb9, 0x01, 0x8d, 0x14, 0x04, 0x5d, 0x50, 0x6a, 0xcc, 0xe6, 0x45, 0x5a, - 0x52, 0x72, 0xd0, 0x25, 0x79, 0x5a, 0xa4, 0x4b, 0xfa, 0xf6, 0xb4, 0x66, 0xee, 0xe8, 0xda, 0x16, - 0x79, 0xc0, 0x14, 0xa5, 0x7f, 0xe1, 0x0e, 0x2d, 0x10, 0xb0, 0x90, 0x45, 0xde, 0xf4, 0x48, 0xf4, - 0x15, 0x13, 0x77, 0x2d, 0x93, 0xec, 0xae, 0xbf, 0x4f, 0x9c, 0x7b, 0xda, 0xf0, 0xaf, 0xdc, 0x11, - 0xf5, 0x79, 0x5e, 0x68, 0xc0, 0x60, 0x27, 0x1c, 0x44, 0xde, 0xf4, 0xb8, 0xdf, 0x70, 0x69, 0x49, - 0x52, 0x78, 0xb4, 0x78, 0xa3, 0x01, 0xfd, 0x5b, 0x77, 0xff, 0xaf, 0x7e, 0xba, 0xb0, 0xaa, 0x41, - 0xab, 0x0a, 0xfb, 0x55, 0x8f, 0xff, 0x30, 0xd9, 0xf6, 0xba, 0xf5, 0x46, 0x98, 0x24, 0xeb, 0x8a, - 0xb3, 0x4d, 0xc5, 0xd9, 0x4f, 0xc5, 0xd9, 0x67, 0xcd, 0x9d, 0x4d, 0xcd, 0x9d, 0xaf, 0x9a, 0x3b, - 0x4f, 0x91, 0xd2, 0x98, 0xad, 0x66, 0xe2, 0xc5, 0x2c, 0x63, 0x50, 0xf2, 0x8c, 0xe4, 0xcd, 0x1c, - 0xbf, 0xd3, 0xc1, 0xf0, 0x23, 0x97, 0x30, 0x1b, 0xb6, 0x07, 0x3b, 0xff, 0x0d, 0x00, 0x00, 0xff, - 0xff, 0x4b, 0x16, 0x65, 0x27, 0xc2, 0x01, 0x00, 0x00, + 0x18, 0x86, 0x73, 0x56, 0x3a, 0x24, 0x45, 0x21, 0x74, 0x28, 0x45, 0xcf, 0x58, 0x97, 0x2c, 0x5e, + 0xa0, 0x6e, 0x8e, 0x41, 0x74, 0x11, 0x14, 0x1d, 0x04, 0x17, 0xb9, 0xda, 0xe3, 0x72, 0xd8, 0x7a, + 0x21, 0xdf, 0x57, 0xa2, 0xff, 0xc2, 0x9f, 0xd5, 0xb1, 0xa3, 0x93, 0x48, 0xf2, 0x47, 0x24, 0x77, + 0xa7, 0x75, 0xb8, 0xed, 0x38, 0x9e, 0xf7, 0xe1, 0xfd, 0xde, 0x70, 0x02, 0x52,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ae, 0x37, 0x37, 0x18, 0xbe, 0x97, 0x02, 0x66, 0x7d, 0x33, 0xd8, 0xd9, 0x4f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xbc, 0x0a, 0x1b, 0xf6, 0xee, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/params.go b/x/house/types/params.go index b09a916d..ad192a3d 100644 --- a/x/house/types/params.go +++ b/x/house/types/params.go @@ -34,7 +34,7 @@ func ParamKeyTable() paramtypes.KeyTable { } // NewParams creates a new Params instance -func NewParams(minDeposit sdkmath.Int, houseParticipationFee sdk.Dec, maxWithdrawalCount uint64) Params { +func NewParams(minDeposit sdkmath.Int, houseParticipationFee sdkmath.LegacyDec, maxWithdrawalCount uint64) Params { return Params{ MinDeposit: minDeposit, HouseParticipationFee: houseParticipationFee, @@ -67,7 +67,7 @@ func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { func DefaultParams() Params { return NewParams( sdkmath.NewInt(DefaultMinDeposit), - sdk.MustNewDecFromStr(DefaultHouseParticipationFee), + sdkmath.LegacyMustNewDecFromStr(DefaultHouseParticipationFee), DefaultMaxWithdrawalCount, ) } @@ -106,12 +106,12 @@ func validateMinimumDeposit(i interface{}) error { // validateHouseParticipationFee performs validation of house participation fee func validateHouseParticipationFee(i interface{}) error { - v, ok := i.(sdk.Dec) + v, ok := i.(sdkmath.LegacyDec) if !ok { return fmt.Errorf("invalid parameter type: %T", i) } - if v.LT(sdk.ZeroDec()) { + if v.LT(sdkmath.LegacyZeroDec()) { return fmt.Errorf("house participation fee cannot be lower than 0: %d", v) } diff --git a/x/house/types/params.pb.go b/x/house/types/params.pb.go index 78eaa82c..377eb13d 100644 --- a/x/house/types/params.pb.go +++ b/x/house/types/params.pb.go @@ -1,14 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/params.proto +// source: sgenetwork/sge/house/params.proto package types import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -31,7 +30,7 @@ type Params struct { MinDeposit cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=min_deposit,json=minDeposit,proto3,customtype=cosmossdk.io/math.Int" json:"min_deposit" yaml:"min_deposit"` // house_participation_fee is the % of the deposit to be paid for a house // participation by the depositor. - HouseParticipationFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=house_participation_fee,json=houseParticipationFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"house_participation_fee"` + HouseParticipationFee cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=house_participation_fee,json=houseParticipationFee,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"house_participation_fee"` // max_withdrawal_count is the maximum number of withdrawals allowed // per participation index. MaxWithdrawalCount uint64 `protobuf:"varint,3,opt,name=max_withdrawal_count,json=maxWithdrawalCount,proto3" json:"max_withdrawal_count,omitempty" yaml:"max_withdrawal_count"` @@ -40,7 +39,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_632fcdf2e68e6d32, []int{0} + return fileDescriptor_a973c755b8200942, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,31 +79,31 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.house.Params") } -func init() { proto.RegisterFile("sge/house/params.proto", fileDescriptor_632fcdf2e68e6d32) } +func init() { proto.RegisterFile("sgenetwork/sge/house/params.proto", fileDescriptor_a973c755b8200942) } -var fileDescriptor_632fcdf2e68e6d32 = []byte{ - // 336 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x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b, 0xb4, 0x88, 0x45, 0xce, - 0xb4, 0xc0, 0x2c, 0x9a, 0x02, 0xb4, 0x6b, 0x86, 0x40, 0x2a, 0xc2, 0x2d, 0x17, 0x3a, 0x5d, 0x4c, - 0x48, 0x8c, 0x92, 0x9e, 0x60, 0xd5, 0xd3, 0x53, 0xc9, 0x8c, 0xea, 0x75, 0x0e, 0x8a, 0x0c, 0x21, - 0x1e, 0xb7, 0xcc, 0xba, 0xd1, 0xf9, 0xb6, 0x7b, 0x00, 0xf7, 0xd1, 0x69, 0x4a, 0xb6, 0x8a, 0x96, - 0x42, 0xa7, 0x49, 0xc1, 0x96, 0x6c, 0x1e, 0xc5, 0xb8, 0xc8, 0x74, 0xfb, 0x5f, 0xc7, 0xee, 0xd6, - 0x43, 0xff, 0x50, 0xfa, 0x37, 0x95, 0xd3, 0x3f, 0x54, 0xc1, 0xd8, 0x95, 0x6c, 0xf5, 0xfc, 0xdb, - 0xbd, 0x3b, 0x36, 0x07, 0xf5, 0xb7, 0x0f, 0xdf, 0x0a, 0xc3, 0xcd, 0xce, 0xb3, 0xb7, 0x3b, 0xcf, - 0xfe, 0xde, 0x79, 0xf6, 0xeb, 0xde, 0xb3, 0xb6, 0x7b, 0xcf, 0xfa, 0xdc, 0x7b, 0xd6, 0x4b, 0xf7, - 0xcc, 0xb1, 0xe2, 0xd0, 0xab, 0x32, 0x3f, 0xd6, 0x74, 0x55, 0x1d, 0xc6, 0xf8, 0x9e, 0x34, 0x4c, - 0xd8, 0xfd, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x4e, 0x33, 0x92, 0xb2, 0x01, 0x00, 0x00, +var fileDescriptor_a973c755b8200942 = []byte{ + // 331 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x41, 0x4b, 0x02, 0x41, + 0x14, 0xc7, 0x77, 0x4d, 0x84, 0xb6, 0xdb, 0x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 0xd7, + 0x70, 0x0b, 0x94, 0xa4, 0xf3, 0x2e, 0xa4, 0xfd, 0x9a, 0x99, 0xd1, 0x3b, 0x1c, 0x71, 0x0d, 0xe0, + 0xde, 0x39, 0x55, 0x4e, 0x66, 0xc9, 0x94, 0xe9, 0x6c, 0x98, 0x93, 0x29, 0x19, 0x27, 0x29, 0x4e, + 0x84, 0xae, 0x1f, 0x35, 0xed, 0x56, 0x39, 0xf6, 0x37, 0x85, 0xdf, 0xd8, 0xaf, 0xf7, 0x0f, 0x15, + 0xf4, 0x5d, 0x4e, 0x66, 0x0f, 0x3f, 0xd5, 0xab, 0x6d, 0xb1, 0x53, 0x7e, 0x7b, 0xf7, 0xad, 0x38, + 0x5e, 0xac, 0x3c, 0x7b, 0xb9, 0xf2, 0xec, 0xaf, 0x95, 0x67, 0xbf, 0xac, 0x3d, 0x6b, 0xb9, 0xf6, + 0xac, 0x8f, 0xb5, 0x67, 0x3d, 0xb6, 0x28, 0xd3, 0xd9, 0x64, 0x10, 0xa6, 0xc8, 0xb7, 0xf7, 0xbf, + 0x3c, 0xcc, 0x62, 0xb6, 0x4f, 0x43, 0xcf, 0x25, 0xa8, 0x41, 0xc5, 0x5c, 0xb8, 0xfd, 0x1d, 0x00, + 0x00, 0xff, 0xff, 0x38, 0xab, 0xc1, 0xbc, 0xb2, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/query.pb.go b/x/house/types/query.pb.go index 7d5ba59e..d9f24cd9 100644 --- a/x/house/types/query.pb.go +++ b/x/house/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/query.proto +// source: sgenetwork/sge/house/query.proto package types @@ -8,8 +8,8 @@ import ( fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -39,7 +39,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{0} + return fileDescriptor_5ca530dfff23b318, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{1} + return fileDescriptor_5ca530dfff23b318, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -125,7 +125,7 @@ func (m *QueryDepositsRequest) Reset() { *m = QueryDepositsRequest{} } func (m *QueryDepositsRequest) String() string { return proto.CompactTextString(m) } func (*QueryDepositsRequest) ProtoMessage() {} func (*QueryDepositsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{2} + return fileDescriptor_5ca530dfff23b318, []int{2} } func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -173,7 +173,7 @@ func (m *QueryDepositsResponse) Reset() { *m = QueryDepositsResponse{} } func (m *QueryDepositsResponse) String() string { return proto.CompactTextString(m) } func (*QueryDepositsResponse) ProtoMessage() {} func (*QueryDepositsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{3} + return fileDescriptor_5ca530dfff23b318, []int{3} } func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -230,7 +230,7 @@ func (m *QueryDepositsByAccountRequest) Reset() { *m = QueryDepositsByAc func (m *QueryDepositsByAccountRequest) String() string { return proto.CompactTextString(m) } func (*QueryDepositsByAccountRequest) ProtoMessage() {} func (*QueryDepositsByAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{4} + return fileDescriptor_5ca530dfff23b318, []int{4} } func (m *QueryDepositsByAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -286,7 +286,7 @@ func (m *QueryDepositsByAccountResponse) Reset() { *m = QueryDepositsByA func (m *QueryDepositsByAccountResponse) String() string { return proto.CompactTextString(m) } func (*QueryDepositsByAccountResponse) ProtoMessage() {} func (*QueryDepositsByAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{5} + return fileDescriptor_5ca530dfff23b318, []int{5} } func (m *QueryDepositsByAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -343,7 +343,7 @@ func (m *QueryWithdrawalsByAccountRequest) Reset() { *m = QueryWithdrawa func (m *QueryWithdrawalsByAccountRequest) String() string { return proto.CompactTextString(m) } func (*QueryWithdrawalsByAccountRequest) ProtoMessage() {} func (*QueryWithdrawalsByAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{6} + return fileDescriptor_5ca530dfff23b318, []int{6} } func (m *QueryWithdrawalsByAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -399,7 +399,7 @@ func (m *QueryWithdrawalsByAccountResponse) Reset() { *m = QueryWithdraw func (m *QueryWithdrawalsByAccountResponse) String() string { return proto.CompactTextString(m) } func (*QueryWithdrawalsByAccountResponse) ProtoMessage() {} func (*QueryWithdrawalsByAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{7} + return fileDescriptor_5ca530dfff23b318, []int{7} } func (m *QueryWithdrawalsByAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -458,7 +458,7 @@ func (m *QueryWithdrawalRequest) Reset() { *m = QueryWithdrawalRequest{} func (m *QueryWithdrawalRequest) String() string { return proto.CompactTextString(m) } func (*QueryWithdrawalRequest) ProtoMessage() {} func (*QueryWithdrawalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{8} + return fileDescriptor_5ca530dfff23b318, []int{8} } func (m *QueryWithdrawalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -526,7 +526,7 @@ func (m *QueryWithdrawalResponse) Reset() { *m = QueryWithdrawalResponse func (m *QueryWithdrawalResponse) String() string { return proto.CompactTextString(m) } func (*QueryWithdrawalResponse) ProtoMessage() {} func (*QueryWithdrawalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_436b89bf9285a4cb, []int{9} + return fileDescriptor_5ca530dfff23b318, []int{9} } func (m *QueryWithdrawalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -575,57 +575,57 @@ func init() { proto.RegisterType((*QueryWithdrawalResponse)(nil), "sgenetwork.sge.house.QueryWithdrawalResponse") } -func init() { proto.RegisterFile("sge/house/query.proto", fileDescriptor_436b89bf9285a4cb) } - -var fileDescriptor_436b89bf9285a4cb = []byte{ - // 749 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0x4f, 0x4f, 0x13, 0x5b, - 0x14, 0xc0, 0x7b, 0x0b, 0xaf, 0x0f, 0x0e, 0xc9, 0xcb, 0xe3, 0xb6, 0x40, 0x5f, 0x1f, 0x2d, 0xb5, - 0x89, 0x5a, 0x41, 0xe6, 0x06, 0x30, 0x9a, 0xb8, 0x31, 0x34, 0x06, 0x35, 0xc6, 0x04, 0x6a, 0x8c, - 0x89, 0x0b, 0xc9, 0x6d, 0xe7, 0x66, 0xb8, 0x81, 0xce, 0x1d, 0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 0xfd, 0x22, - 0xb6, 0xf0, 0x3b, 0x04, 0xa9, 0xa8, 0x69, 0xc3, 0xd7, 0x07, 0x74, 0x1d, 0xb0, 0x25, 0x32, 0x37, - 0xce, 0x9d, 0xa7, 0x81, 0x8b, 0x0a, 0xb8, 0x80, 0xf3, 0xa4, 0xff, 0x23, 0x4a, 0x77, 0x3a, 0x99, - 0x3f, 0x20, 0x80, 0xb0, 0x14, 0xbe, 0x3a, 0x54, 0xc7, 0x80, 0x6f, 0x71, 0xc8, 0xdb, 0x9a, 0xea, - 0xa1, 0xa2, 0x7a, 0x80, 0xef, 0x2b, 0xaa, 0x90, 0x87, 0x34, 0xfb, 0xa6, 0xba, 0x45, 0x9a, 0xe1, - 0xf0, 0xb6, 0x48, 0x33, 0x62, 0x54, 0x5b, 0xa4, 0xc9, 0xcd, 0x56, 0xa9, 0x74, 0x74, 0x92, 0x43, - 0xc7, 0x27, 0x39, 0xf4, 0xe5, 0x24, 0x87, 0x5e, 0x9f, 0xe6, 0x62, 0xc7, 0xa7, 0xb9, 0xd8, 0xa7, - 0xd3, 0x5c, 0xec, 0x49, 0xd1, 0xe2, 0xde, 0x56, 0xbd, 0x62, 0x54, 0x45, 0xad, 0xdd, 0x70, 0x51, - 0x83, 0xaa, 0xe6, 0x7b, 0x5a, 0x8a, 0xb7, 0xef, 0x30, 0x59, 0x49, 0xa8, 0xff, 0x2b, 0x56, 0xbe, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x04, 0x93, 0xbd, 0x31, 0x09, 0x00, 0x00, +func init() { proto.RegisterFile("sgenetwork/sge/house/query.proto", fileDescriptor_5ca530dfff23b318) } + +var fileDescriptor_5ca530dfff23b318 = []byte{ + // 750 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcf, 0x6b, 0x13, 0x4b, + 0x1c, 0xc0, 0x33, 0x69, 0x5f, 0x5e, 0x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 0x55, 0xcc, 0x85, + 0xd8, 0x98, 0x86, 0xed, 0x6f, 0x9a, 0x1e, 0x6d, 0x04, 0x41, 0x7a, 0x06, 0xf0, 0x7a, 0xfb, 0x1f, + 0xac, 0xc9, 0xea, 0x65, 0xb6, 0x53, 0x67, 0xc2, 0xd7, 0xd7, 0x21, 0xdd, 0xb5, 0x2a, 0x5c, 0xee, + 0x08, 0x86, 0x6f, 0x42, 0x2a, 0xa0, 0xc8, 0xa2, 0x02, 0x2a, 0x4e, 0x2c, 0x4d, 0x1b, 0x71, 0x7e, + 0x8c, 0x20, 0xab, 0x34, 0x7a, 0xf8, 0x79, 0x26, 0x51, 0x56, 0x19, 0xfa, 0x53, 0xc8, 0xc8, 0x92, + 0xb7, 0x03, 0xc6, 0xb0, 0x15, 0x5e, 0x05, 0x88, 0xa4, 0xa9, 0xba, 0x97, 0x8c, 0xc0, 0xb0, 0xd1, + 0x36, 0x6c, 0x04, 0x37, 0x44, 0x19, 0x36, 0xd6, 0xa8, 0xc5, 0x54, 0x6e, 0xb9, 0x23, 0x53, 0xdf, + 0x47, 0x30, 0xd5, 0xd3, 0x40, 0x51, 0xdf, 0x82, 0x31, 0x25, 0xa6, 0xcd, 0x3d, 0x52, 0x9c, 0x58, + 0xca, 0xc7, 0x73, 0xab, 0x4c, 0x05, 0x7e, 0x9a, 0x84, 0xef, 0x74, 0x21, 0x26, 0x25, 0xe2, 0xe5, + 0x1f, 0x22, 0x06, 0xdd, 0xbb, 0x18, 0x5f, 0x20, 0xc8, 0x77, 0x31, 0x96, 0xf6, 0x56, 0xaa, 0x55, + 0x5e, 0x77, 0xfc, 0xd0, 0x46, 0x16, 0xfe, 0xa6, 0xa6, 0xe9, 0x31, 0x11, 0x28, 0x1e, 0x2f, 0x87, + 0x3f, 0x7b, 0x3c, 0x25, 0x7f, 0xda, 0xd3, 0x5b, 0x04, 0xda, 0xf7, 0x18, 0xfe, 0x38, 0x61, 0xaf, + 0x10, 0x14, 0x24, 0xec, 0x63,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15, 0xc0, 0x79, 0x09, 0x30, + 0x85, 0xd3, 0xfd, 0x6f, 0x06, 0x81, 0x0f, 0x10, 0x4c, 0xf6, 0x4d, 0x3e, 0x5e, 0x1e, 0xa2, 0x7e, + 0xef, 0xdc, 0xe5, 0xae, 0x9d, 0x2d, 0x49, 0xd1, 0x5d, 0x94, 0x74, 0x33, 0x38, 0x1f, 0x43, 0x47, + 0x9a, 0xea, 0x41, 0x6c, 0xe1, 0x77, 0x08, 0x32, 0x71, 0xd3, 0x86, 0xaf, 0x0f, 0xe8, 0x3a, 0xe0, + 0x94, 0xc8, 0xdd, 0x38, 0x73, 0x9e, 0x02, 0x2e, 0x4a, 0x60, 0x1d, 0x17, 0x62, 0x5e, 0xa2, 0x74, + 0xbb, 0x93, 0xf9, 0x03, 0x02, 0x88, 0x4a, 0xe1, 0xab, 0x43, 0x75, 0x0c, 0xf9, 0x16, 0x86, 0x8c, + 0x56, 0x54, 0x0f, 0x25, 0xd5, 0x03, 0x7c, 0x5f, 0x52, 0x45, 0x3c, 0xa4, 0xd9, 0x37, 0xd5, 0x2d, + 0xd2, 0x8c, 0x86, 0xb7, 0x45, 0x9a, 0x31, 0xa3, 0xda, 0x22, 0x4d, 0xdb, 0x6c, 0x95, 0x4a, 0x87, + 0xc7, 0x1a, 0x3a, 0x3a, 0xd6, 0xd0, 0x97, 0x63, 0x0d, 0xbd, 0x3e, 0xd1, 0x12, 0x47, 0x27, 0x5a, + 0xe2, 0xd3, 0x89, 0x96, 0x78, 0x52, 0xb4, 0x6c, 0x7f, 0xb3, 0x5e, 0x31, 0xaa, 0xbc, 0xd6, 0x6e, + 0xb8, 0xd0, 0xf9, 0x5d, 0xb1, 0xab, 0xa4, 0xf8, 0x7b, 0x2e, 0x13, 0x95, 0x94, 0xfc, 0xae, 0x58, + 0xfe, 0x16, 0x00, 0x00, 0xff, 0xff, 0x3a, 0xb6, 0xf3, 0x8e, 0x5d, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -859,7 +859,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/house/query.proto", + Metadata: "sgenetwork/sge/house/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/query.pb.gw.go b/x/house/types/query.pb.gw.go index 52ca0b2b..c17d43cd 100644 --- a/x/house/types/query.pb.gw.go +++ b/x/house/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/house/query.proto +// source: sgenetwork/sge/house/query.proto /* Package types is a reverse proxy. diff --git a/x/house/types/ticket.pb.go b/x/house/types/ticket.pb.go index 15e2fe33..d55170b6 100644 --- a/x/house/types/ticket.pb.go +++ b/x/house/types/ticket.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/ticket.proto +// source: sgenetwork/sge/house/ticket.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" types "github.com/sge-network/sge/types" io "io" math "math" @@ -36,7 +36,7 @@ func (m *DepositTicketPayload) Reset() { *m = DepositTicketPayload{} } func (m *DepositTicketPayload) String() string { return proto.CompactTextString(m) } func (*DepositTicketPayload) ProtoMessage() {} func (*DepositTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_1f686c28436675f2, []int{0} + return fileDescriptor_240713aaceffb197, []int{0} } func (m *DepositTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,7 +91,7 @@ func (m *WithdrawTicketPayload) Reset() { *m = WithdrawTicketPayload{} } func (m *WithdrawTicketPayload) String() string { return proto.CompactTextString(m) } func (*WithdrawTicketPayload) ProtoMessage() {} func (*WithdrawTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_1f686c28436675f2, []int{1} + return fileDescriptor_240713aaceffb197, []int{1} } func (m *WithdrawTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -139,28 +139,28 @@ func init() { proto.RegisterType((*WithdrawTicketPayload)(nil), "sgenetwork.sge.house.WithdrawTicketPayload") } -func init() { proto.RegisterFile("sge/house/ticket.proto", fileDescriptor_1f686c28436675f2) } +func init() { proto.RegisterFile("sgenetwork/sge/house/ticket.proto", fileDescriptor_240713aaceffb197) } -var fileDescriptor_1f686c28436675f2 = []byte{ - // 285 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2b, 0x4e, 0x4f, 0xd5, - 0xcf, 0xc8, 0x2f, 0x2d, 0x4e, 0xd5, 0x2f, 0xc9, 0x4c, 0xce, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0x29, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, - 0x4e, 0x4f, 0xd5, 0x03, 0x2b, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 0xd0, 0x07, 0xb1, - 0x20, 0x6a, 0xa5, 0x84, 0x40, 0x66, 0x94, 0x54, 0x16, 0xa4, 0xea, 0x67, 0x57, 0x26, 0x43, 0xc4, - 0x94, 0x96, 0x33, 0x72, 0x89, 0xb8, 0xa4, 0x16, 0xe4, 0x17, 0x67, 0x96, 0x84, 0x80, 0xcd, 0x0d, - 0x48, 0xac, 0xcc, 0xc9, 0x4f, 0x4c, 0x11, 0x72, 0xe1, 0xe2, 0xc8, 0xae, 0x4c, 0x8e, 0x4f, 0x49, - 0x2c, 0x49, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x52, 0xd6, 0x43, 0xb3, 0x0b, 0x64, 0x94, - 0x9e, 0x77, 0x65, 0xb2, 0x4b, 0x62, 0x49, 0x22, 0x54, 0x9b, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, - 0x41, 0xec, 0xd9, 0x10, 0x51, 0x21, 0x4f, 0x2e, 0xc1, 0x14, 0x88, 0xe9, 0xf9, 0x45, 0xf1, 0x89, - 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x32, 0x9f, 0xee, - 0xc9, 0x4b, 0x54, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0x61, 0x28, 0x51, 0x0a, 0x12, 0x80, 0x8b, 0x39, - 0x42, 0x85, 0x56, 0x30, 0x72, 0x89, 0x86, 0x67, 0x96, 0x64, 0xa4, 0x14, 0x25, 0x96, 0x0f, 0x6e, - 0xa7, 0x3a, 0x39, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, - 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x46, 0x7a, - 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x7a, 0xaa, 0x2e, 0xd4, 0x8d, - 0x20, 0xb6, 0x7e, 0x05, 0x2c, 0x7e, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xf1, 0x63, 0x0c, - 0x08, 0x00, 0x00, 0xff, 0xff, 0x12, 0xb9, 0xd1, 0x7a, 0xf9, 0x01, 0x00, 0x00, +var fileDescriptor_240713aaceffb197 = []byte{ + // 284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0x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1f, 0xdc, 0x4e, 0x75, 0x72, 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, + 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, + 0x28, 0x8d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x50, 0x6c, 0xe8, 0x22, + 0xc7, 0x4c, 0x05, 0x2c, 0xaa, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xf1, 0x63, 0x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0xef, 0xcf, 0xb0, 0x22, 0x0f, 0x02, 0x00, 0x00, } func (m *DepositTicketPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/tx.pb.go b/x/house/types/tx.pb.go index c035bcbe..faf8b263 100644 --- a/x/house/types/tx.pb.go +++ b/x/house/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/tx.proto +// source: sgenetwork/sge/house/tx.proto package types @@ -8,8 +8,8 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -47,7 +47,7 @@ func (m *MsgDeposit) Reset() { *m = MsgDeposit{} } func (m *MsgDeposit) String() string { return proto.CompactTextString(m) } func (*MsgDeposit) ProtoMessage() {} func (*MsgDeposit) Descriptor() ([]byte, []int) { - return fileDescriptor_d3891d05e499977f, []int{0} + return fileDescriptor_0764ff859f434eaf, []int{0} } func (m *MsgDeposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -90,7 +90,7 @@ func (m *MsgDepositResponse) Reset() { *m = MsgDepositResponse{} } func (m *MsgDepositResponse) String() string { return proto.CompactTextString(m) } func (*MsgDepositResponse) ProtoMessage() {} func (*MsgDepositResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d3891d05e499977f, []int{1} + return fileDescriptor_0764ff859f434eaf, []int{1} } func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -153,7 +153,7 @@ func (m *MsgWithdraw) Reset() { *m = MsgWithdraw{} } func (m *MsgWithdraw) String() string { return proto.CompactTextString(m) } func (*MsgWithdraw) ProtoMessage() {} func (*MsgWithdraw) Descriptor() ([]byte, []int) { - return fileDescriptor_d3891d05e499977f, []int{2} + return fileDescriptor_0764ff859f434eaf, []int{2} } func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -197,7 +197,7 @@ func (m *MsgWithdrawResponse) Reset() { *m = MsgWithdrawResponse{} } func (m *MsgWithdrawResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawResponse) ProtoMessage() {} func (*MsgWithdrawResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d3891d05e499977f, []int{3} + return fileDescriptor_0764ff859f434eaf, []int{3} } func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -254,43 +254,43 @@ func init() { proto.RegisterType((*MsgWithdrawResponse)(nil), "sgenetwork.sge.house.MsgWithdrawResponse") } -func init() { proto.RegisterFile("sge/house/tx.proto", fileDescriptor_d3891d05e499977f) } +func init() { proto.RegisterFile("sgenetwork/sge/house/tx.proto", fileDescriptor_0764ff859f434eaf) } -var fileDescriptor_d3891d05e499977f = []byte{ - // 522 bytes of a gzipped FileDescriptorProto +var fileDescriptor_0764ff859f434eaf = []byte{ + // 524 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 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3, 0x43, 0x74, 0x06, 0xb7, + 0xaa, 0xc7, 0x7b, 0xb8, 0x5a, 0xf9, 0xe5, 0x5b, 0xd0, 0xba, 0xb7, 0x21, 0x16, 0xba, 0xbc, 0x83, + 0xdb, 0x0b, 0x6f, 0x3e, 0x59, 0x5b, 0x55, 0x41, 0xb4, 0xa3, 0x5b, 0x21, 0x55, 0x67, 0xdb, 0xbe, + 0xc9, 0x75, 0x30, 0xc9, 0x75, 0xf0, 0x3d, 0xd7, 0xc1, 0xc7, 0xa9, 0xae, 0x4c, 0xa6, 0xba, 0xf2, + 0x75, 0xaa, 0x2b, 0xef, 0xbb, 0x21, 0x15, 0xfd, 0xe1, 0x85, 0xe9, 0xb3, 0x68, 0xbe, 0xb0, 0x5e, + 0xd4, 0x97, 0xd7, 0xb8, 0xda, 0x84, 0x57, 0x09, 0xe1, 0x17, 0x2d, 0xb9, 0xbc, 0x5e, 0xfe, 0x0e, + 0x00, 0x00, 0xff, 0xff, 0x17, 0xd2, 0x1d, 0xcc, 0x2e, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -416,7 +416,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/house/tx.proto", + Metadata: "sgenetwork/sge/house/tx.proto", } func (m *MsgDeposit) Marshal() (dAtA []byte, err error) { diff --git a/x/house/types/withdraw.pb.go b/x/house/types/withdraw.pb.go index 2fb807e9..15658afb 100644 --- a/x/house/types/withdraw.pb.go +++ b/x/house/types/withdraw.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/house/withdraw.proto +// source: sgenetwork/sge/house/withdraw.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -53,7 +53,7 @@ func (x WithdrawalMode) String() string { } func (WithdrawalMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9ca852402ebf549d, []int{0} + return fileDescriptor_bc9c262f4256300e, []int{0} } // Withdrawal represents the withdrawal against a deposit. @@ -78,7 +78,7 @@ type Withdrawal struct { func (m *Withdrawal) Reset() { *m = Withdrawal{} } func (*Withdrawal) ProtoMessage() {} func (*Withdrawal) Descriptor() ([]byte, []int) { - return fileDescriptor_9ca852402ebf549d, []int{0} + return fileDescriptor_bc9c262f4256300e, []int{0} } func (m *Withdrawal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -112,41 +112,43 @@ func init() { proto.RegisterType((*Withdrawal)(nil), "sgenetwork.sge.house.Withdrawal") } -func init() { proto.RegisterFile("sge/house/withdraw.proto", fileDescriptor_9ca852402ebf549d) } +func init() { + proto.RegisterFile("sgenetwork/sge/house/withdraw.proto", fileDescriptor_bc9c262f4256300e) +} -var fileDescriptor_9ca852402ebf549d = []byte{ +var fileDescriptor_bc9c262f4256300e = []byte{ // 488 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x41, 0x6f, 0x12, 0x41, - 0x14, 0xc7, 0x77, 0xb7, 0x48, 0xc3, 0xa8, 0x48, 0x46, 0x8c, 0x6b, 0x49, 0x76, 0xc8, 0xc6, 0x03, - 0x1a, 0xdd, 0x4d, 0xf4, 0x56, 0x4f, 0x20, 0x10, 0x37, 0x01, 0xdb, 0xac, 0x25, 0x24, 0x5e, 0xc8, - 0x94, 0x99, 0x2c, 0x13, 0xba, 0x0c, 0xd9, 0x19, 0x42, 0xfb, 0x0d, 0x3c, 0x7a, 0xf4, 0xc8, 0x67, - 0xf1, 0xd4, 0x63, 0x8f, 0xc6, 0xc3, 0xc4, 0xc0, 0xc5, 0x78, 0xdc, 0x4f, 0x60, 0x76, 0xd8, 0xa6, - 0x2d, 0xe9, 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0x1e, 0x61, 0x39, 0xf6, 0xfc, 0xa9, 0x4c, 0x14, 0x7a, 0x9c, 0x9d, 0x48, 0x8b, + 0xdc, 0x20, 0x53, 0x1f, 0x3e, 0xfa, 0xbe, 0x44, 0xc6, 0xcf, 0x25, 0x32, 0xfe, 0x2d, 0x91, 0xf1, + 0x66, 0x0c, 0x8a, 0x77, 0xed, 0x21, 0x02, 0x95, 0x81, 0x7f, 0xf2, 0xb9, 0x15, 0x34, 0x06, 0x8d, + 0xee, 0xb0, 0x77, 0xd4, 0x6a, 0x0f, 0xfb, 0x5f, 0xbe, 0x1e, 0xb7, 0x3f, 0xf9, 0x1d, 0xbf, 0xdd, + 0x2a, 0x19, 0xd0, 0x06, 0xe5, 0x5d, 0xa0, 0xd3, 0xef, 0x76, 0x4b, 0x26, 0xac, 0x80, 0xe7, 0xbb, + 0x93, 0xe3, 0x46, 0x70, 0xe2, 0x37, 0xba, 0x25, 0xab, 0xd9, 0xbc, 0x5c, 0x39, 0xe6, 0xd5, 0xca, + 0x31, 0xff, 0xae, 0x1c, 0xf3, 0xc7, 0xda, 0x31, 0xae, 0xd6, 0x8e, 0xf1, 0x7b, 0xed, 0x18, 0xdf, + 0x6a, 0x21, 0x93, 0xe3, 0xf9, 0xa9, 0x37, 0xe2, 0x51, 0x9a, 0xcc, 0x77, 0xdb, 0x29, 0x3d, 0xcf, + 0x72, 0x2a, 0x2f, 0x66, 0x54, 0x9c, 0xe6, 0x75, 0xf2, 0x3e, 0x5c, 0x07, 0x00, 0x00, 0xff, 0xff, + 0xc7, 0xb9, 0xe4, 0x97, 0xcc, 0x02, 0x00, 0x00, } func (m *Withdrawal) Marshal() (dAtA []byte, err error) { diff --git a/x/market/client/cli/query_market_test.go b/x/market/client/cli/query_market_test.go index 00a4cd57..c8b30fca 100644 --- a/x/market/client/cli/query_market_test.go +++ b/x/market/client/cli/query_market_test.go @@ -9,8 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/sge-network/sge/testutil/network" diff --git a/x/market/keeper/keeper.go b/x/market/keeper/keeper.go index 735500b2..e437d580 100644 --- a/x/market/keeper/keeper.go +++ b/x/market/keeper/keeper.go @@ -5,7 +5,7 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" - "github.com/tendermint/tendermint/libs/log" + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/market/module.go b/x/market/module.go index b755b1c5..9635f0e6 100644 --- a/x/market/module.go +++ b/x/market/module.go @@ -9,7 +9,7 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -131,19 +131,9 @@ func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the module's message routing key. -func (am AppModule) Route() sdk.Route { - return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) -} - // QuerierRoute returns the module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the module's Querier. -func (AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} - // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/market/module_simulation.go b/x/market/module_simulation.go index 1269d364..55416425 100644 --- a/x/market/module_simulation.go +++ b/x/market/module_simulation.go @@ -5,7 +5,7 @@ import ( "math/rand" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -20,7 +20,7 @@ import ( var ( _ = sample.AccAddress _ = marketsimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -45,15 +45,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return marketsimulation.ParamChanges(r) -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = marketsimulation.NewDecodeStore(am.cdc) diff --git a/x/market/simulation/params.go b/x/market/simulation/params.go index 30ad6642..e3f6ec71 100644 --- a/x/market/simulation/params.go +++ b/x/market/simulation/params.go @@ -12,6 +12,6 @@ import ( // ParamChanges defines the parameters that can be modified by param change proposals // on the simulation -func ParamChanges(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{} +func ParamChanges(_ *rand.Rand) []simtypes.LegacyParamChange { + return []simtypes.LegacyParamChange{} } diff --git a/x/market/types/codec.go b/x/market/types/codec.go index 8b8fd97c..66a82e9a 100644 --- a/x/market/types/codec.go +++ b/x/market/types/codec.go @@ -4,7 +4,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) @@ -42,6 +41,6 @@ var ( func init() { RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) + // cryptocodec.RegisterCrypto(amino) sdk.RegisterLegacyAminoCodec(amino) } diff --git a/x/market/types/genesis.pb.go b/x/market/types/genesis.pb.go index deb9a0d0..96234406 100644 --- a/x/market/types/genesis.pb.go +++ b/x/market/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/genesis.proto +// source: sgenetwork/sge/market/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -38,7 +38,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_e4ffd0e85fa3c489, []int{0} + return fileDescriptor_eb5c3fab001b4377, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,27 +92,29 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.market.GenesisState") } -func init() { proto.RegisterFile("sge/market/genesis.proto", fileDescriptor_e4ffd0e85fa3c489) } +func init() { + proto.RegisterFile("sgenetwork/sge/market/genesis.proto", fileDescriptor_eb5c3fab001b4377) +} -var fileDescriptor_e4ffd0e85fa3c489 = []byte{ +var fileDescriptor_eb5c3fab001b4377 = []byte{ // 261 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x4e, 0x4f, 0xd5, - 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xd1, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2d, 0x06, 0xf1, 0x4b, 0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x8a, - 0xd3, 0x53, 0xf5, 0x20, 0x8a, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x2a, 0xf4, 0x41, 0x2c, - 0x88, 0x62, 0x29, 0x71, 0x24, 0x63, 0x0a, 0x12, 0x8b, 0x12, 0x73, 0x8b, 0xb1, 0x48, 0x40, 0x28, - 0xa8, 0x84, 0x18, 0x92, 0x44, 0x71, 0x49, 0x62, 0x09, 0x54, 0x83, 0xd2, 0x45, 0x46, 0x2e, 0x1e, - 0x77, 0x88, 0x43, 0x82, 0x4b, 0x12, 0x4b, 0x52, 0x85, 0xac, 0xb9, 0xd8, 0x20, 0x26, 0x4a, 0x30, - 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0xc9, 0xea, 0x61, 0x75, 0x98, 0x5e, 0x00, 0x58, 0x91, 0x13, 0xcb, - 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x2d, 0x42, 0x2e, 0x5c, 0xdc, 0x10, 0xe9, 0xf8, 0x9c, 0xcc, - 0xe2, 0x12, 0x09, 0x26, 0x05, 0x66, 0x3c, 0x26, 0xf8, 0x82, 0x29, 0xa8, 0x09, 0x5c, 0x10, 0x41, - 0x9f, 0xcc, 0xe2, 0x12, 0x21, 0x3b, 0x2e, 0x56, 0xb0, 0x13, 0x25, 0x98, 0xc1, 0x2e, 0x50, 0xc2, - 0xab, 0x1f, 0xe4, 0x6a, 0x98, 0x33, 0x20, 0xda, 0x9c, 0x9c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, - 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, - 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x33, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, - 0xbf, 0x38, 0x3d, 0x55, 0x17, 0x6a, 0x2a, 0x88, 0xad, 0x5f, 0x01, 0x0b, 0x9e, 0x92, 0xca, 0x82, - 0xd4, 0xe2, 0x24, 0x36, 0x70, 0xf8, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x25, 0x6c, 0xab, - 0xfc, 0xb2, 0x01, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, + 0x2d, 0xd1, 0x07, 0x09, 0x16, 0x67, 0x16, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0x22, + 0x14, 0xe9, 0x15, 0xa7, 0xa7, 0xea, 0x41, 0x14, 0x49, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x55, + 0xe8, 0x83, 0x58, 0x10, 0xc5, 0x52, 0x4a, 0xd8, 0x4d, 0x2c, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xc6, + 0xaf, 0x06, 0x42, 0x41, 0xd5, 0x28, 0x62, 0x57, 0x53, 0x5c, 0x92, 0x58, 0x02, 0x35, 0x46, 0xe9, + 0x22, 0x23, 0x17, 0x8f, 0x3b, 0xc4, 0xa5, 0xc1, 0x25, 0x89, 0x25, 0xa9, 0x42, 0xd6, 0x5c, 0x6c, + 0x10, 0x7b, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x64, 0xf5, 0xb0, 0xba, 0x5c, 0x2f, 0x00, + 0xac, 0xc8, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x16, 0x21, 0x17, 0x2e, 0x6e, 0x88, + 0x74, 0x7c, 0x4e, 0x66, 0x71, 0x89, 0x04, 0x93, 0x02, 0x33, 0x1e, 0x13, 0x7c, 0xc1, 0x14, 0xd4, + 0x04, 0x2e, 0x88, 0xa0, 0x4f, 0x66, 0x71, 0x89, 0x90, 0x1d, 0x17, 0x2b, 0xd8, 0x89, 0x12, 0xcc, + 0x60, 0x17, 0x28, 0xe1, 0xd5, 0x0f, 0x72, 0x35, 0xcc, 0x19, 0x10, 0x6d, 0x4e, 0xce, 0x27, 0x1e, + 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, + 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x99, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, + 0x97, 0x9c, 0x9f, 0x0b, 0x0a, 0x10, 0x5d, 0xe4, 0xc0, 0xa9, 0x80, 0x05, 0x4f, 0x49, 0x65, 0x41, + 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x7c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0xde, 0x12, + 0x51, 0xde, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/market.pb.go b/x/market/types/market.pb.go index a1df2459..ffad7af2 100644 --- a/x/market/types/market.pb.go +++ b/x/market/types/market.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/market.proto +// source: sgenetwork/sge/market/market.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -64,7 +64,7 @@ func (x MarketStatus) String() string { } func (MarketStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_935a8ad1d6bee065, []int{0} + return fileDescriptor_14e36a254c493254, []int{0} } // Market is the representation of the market to be stored in @@ -96,7 +96,7 @@ func (m *Market) Reset() { *m = Market{} } func (m *Market) String() string { return proto.CompactTextString(m) } func (*Market) ProtoMessage() {} func (*Market) Descriptor() ([]byte, []int) { - return fileDescriptor_935a8ad1d6bee065, []int{0} + return fileDescriptor_14e36a254c493254, []int{0} } func (m *Market) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -200,43 +200,46 @@ func init() { proto.RegisterType((*Market)(nil), "sgenetwork.sge.market.Market") } -func init() { proto.RegisterFile("sge/market/market.proto", fileDescriptor_935a8ad1d6bee065) } +func init() { + proto.RegisterFile("sgenetwork/sge/market/market.proto", fileDescriptor_14e36a254c493254) +} -var fileDescriptor_935a8ad1d6bee065 = []byte{ - // 528 bytes of a gzipped FileDescriptorProto +var fileDescriptor_14e36a254c493254 = []byte{ + // 529 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x41, 0x6f, 0xd3, 0x30, - 0x18, 0x86, 0x9b, 0xa5, 0x6b, 0x57, 0x33, 0xaa, 0xc8, 0xac, 0x2c, 0x2b, 0x5a, 0x92, 0x81, 0x84, + 0x14, 0xc7, 0x9b, 0xa5, 0x6b, 0x57, 0x33, 0xaa, 0xc8, 0x6c, 0x90, 0x15, 0x2d, 0xc9, 0x86, 0x84, 0x0a, 0x88, 0x54, 0xda, 0x8e, 0x9c, 0x9a, 0xc4, 0xa0, 0x88, 0xae, 0x43, 0x4e, 0x0a, 0x12, 0x97, - 0xa8, 0x5d, 0xac, 0x50, 0x95, 0xc6, 0x53, 0xec, 0x6a, 0xf0, 0x2f, 0xf8, 0x43, 0xdc, 0x39, 0xee, - 0xc8, 0x29, 0x42, 0xe9, 0xad, 0x3f, 0x81, 0x13, 0xb2, 0x9b, 0x55, 0x2b, 0x85, 0x4b, 0xfc, 0xf9, - 0x7b, 0xde, 0xcf, 0xf2, 0x9b, 0x57, 0x06, 0x87, 0x2c, 0x21, 0xdd, 0xd9, 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d, 0x03, 0x00, + 0x00, } func (m *Market) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/odds.pb.go b/x/market/types/odds.pb.go index 13713231..abddb199 100644 --- a/x/market/types/odds.pb.go +++ b/x/market/types/odds.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/odds.proto +// source: sgenetwork/sge/market/odds.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -35,7 +35,7 @@ func (m *Odds) Reset() { *m = Odds{} } func (m *Odds) String() string { return proto.CompactTextString(m) } func (*Odds) ProtoMessage() {} func (*Odds) Descriptor() ([]byte, []int) { - return fileDescriptor_cf7f1000ed50889d, []int{0} + return fileDescriptor_3606fe4744ae3444, []int{0} } func (m *Odds) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -82,22 +82,23 @@ func init() { proto.RegisterType((*Odds)(nil), "sgenetwork.sge.market.Odds") } -func init() { proto.RegisterFile("sge/market/odds.proto", fileDescriptor_cf7f1000ed50889d) } +func init() { proto.RegisterFile("sgenetwork/sge/market/odds.proto", fileDescriptor_3606fe4744ae3444) } -var fileDescriptor_cf7f1000ed50889d = []byte{ - // 192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x4e, 0x4f, 0xd5, - 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xd1, 0xcf, 0x4f, 0x49, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x02, 0x09, 0xe7, 0xa5, 0x96, 0x94, 0xe7, 0x17, 0x65, 0xeb, 0x15, 0xa7, 0xa7, 0xea, - 0x41, 0x54, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x55, 0xe8, 0x83, 0x58, 0x10, 0xc5, 0x4a, - 0x36, 0x5c, 0x2c, 0xfe, 0x29, 0x29, 0xc5, 0x42, 0x0a, 0x5c, 0xcc, 0xa5, 0x99, 0x29, 0x12, 0x8c, - 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x7c, 0x8f, 0xee, 0xc9, 0x33, 0x87, 0x7a, 0xba, 0xbc, 0xba, 0x27, - 0x0f, 0x12, 0x0d, 0x02, 0x11, 0x42, 0x42, 0x5c, 0x2c, 0xb9, 0xa9, 0x25, 0x89, 0x12, 0x4c, 0x20, - 0x25, 0x41, 0x60, 0xb6, 0x93, 0xf3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, - 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, - 0x69, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x17, 0xa7, 0xa7, 0xea, - 0x42, 0x1d, 0x04, 0x62, 0xeb, 0x57, 0xc0, 0x1c, 0x5d, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, - 0x76, 0x89, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xe3, 0x61, 0x97, 0xcf, 0x00, 0x00, 0x00, +var fileDescriptor_3606fe4744ae3444 = []byte{ + // 193 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, + 0x2d, 0xd1, 0xcf, 0x4f, 0x49, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x45, 0xa8, + 0xd0, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xa8, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd0, + 0x07, 0xb1, 0x20, 0x8a, 0x95, 0x6c, 0xb8, 0x58, 0xfc, 0x53, 0x52, 0x8a, 0x85, 0x14, 0xb8, 0x98, + 0x4b, 0x33, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0xf8, 0x1e, 0xdd, 0x93, 0x67, 0x0e, + 0xf5, 0x74, 0x79, 0x75, 0x4f, 0x1e, 0x24, 0x1a, 0x04, 0x22, 0x84, 0x84, 0xb8, 0x58, 0x72, 0x53, + 0x4b, 0x12, 0x25, 0x98, 0x40, 0x4a, 0x82, 0xc0, 0x6c, 0x27, 0xe7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, + 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, + 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x4c, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, + 0x05, 0x39, 0x53, 0x17, 0xd9, 0xc9, 0x15, 0x30, 0x47, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, + 0x81, 0x5d, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xc3, 0x95, 0x51, 0xda, 0x00, 0x00, + 0x00, } func (m *Odds) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/params.pb.go b/x/market/types/params.pb.go index b8afdd91..c597c27a 100644 --- a/x/market/types/params.pb.go +++ b/x/market/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/params.proto +// source: sgenetwork/sge/market/params.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -31,7 +31,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_e166b9eeb42fd7f6, []int{0} + return fileDescriptor_30c8b635732b997c, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -64,20 +64,22 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.market.Params") } -func init() { proto.RegisterFile("sge/market/params.proto", fileDescriptor_e166b9eeb42fd7f6) } +func init() { + proto.RegisterFile("sgenetwork/sge/market/params.proto", fileDescriptor_30c8b635732b997c) +} -var fileDescriptor_e166b9eeb42fd7f6 = []byte{ - // 157 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x4e, 0x4f, 0xd5, - 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2d, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xa8, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd0, 0x07, - 0xb1, 0x20, 0x8a, 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x9a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, - 0x70, 0x72, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, - 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xcd, 0xf4, 0xcc, - 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0xf4, 0x54, 0x5d, 0xa8, 0x15, 0x20, - 0xb6, 0x7e, 0x05, 0xcc, 0x21, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xb3, 0x8d, 0x01, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xb4, 0xaa, 0x61, 0xb6, 0xa3, 0x00, 0x00, 0x00, +var fileDescriptor_30c8b635732b997c = []byte{ + // 155 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, + 0x2d, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x45, 0xa8, 0xd1, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xa8, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, + 0xab, 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x9a, 0xad, 0x58, 0x66, + 0x2c, 0x90, 0x67, 0x70, 0x72, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, + 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, + 0xcd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x90, 0xd5, 0xba, 0xc8, 0xce, + 0xa8, 0x80, 0x39, 0xa4, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0xb6, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0xa3, 0xb3, 0x9c, 0x25, 0xae, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/query.pb.go b/x/market/types/query.pb.go index 9e954c53..fbc6e11b 100644 --- a/x/market/types/query.pb.go +++ b/x/market/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/query.proto +// source: sgenetwork/sge/market/query.proto package types @@ -8,8 +8,8 @@ import ( fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -39,7 +39,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{0} + return fileDescriptor_bfd151c101859bd3, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{1} + return fileDescriptor_bfd151c101859bd3, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -125,7 +125,7 @@ func (m *QueryMarketRequest) Reset() { *m = QueryMarketRequest{} } func (m *QueryMarketRequest) String() string { return proto.CompactTextString(m) } func (*QueryMarketRequest) ProtoMessage() {} func (*QueryMarketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{2} + return fileDescriptor_bfd151c101859bd3, []int{2} } func (m *QueryMarketRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -171,7 +171,7 @@ func (m *QueryMarketResponse) Reset() { *m = QueryMarketResponse{} } func (m *QueryMarketResponse) String() string { return proto.CompactTextString(m) } func (*QueryMarketResponse) ProtoMessage() {} func (*QueryMarketResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{3} + return fileDescriptor_bfd151c101859bd3, []int{3} } func (m *QueryMarketResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -218,7 +218,7 @@ func (m *QueryMarketsRequest) Reset() { *m = QueryMarketsRequest{} } func (m *QueryMarketsRequest) String() string { return proto.CompactTextString(m) } func (*QueryMarketsRequest) ProtoMessage() {} func (*QueryMarketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{4} + return fileDescriptor_bfd151c101859bd3, []int{4} } func (m *QueryMarketsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -266,7 +266,7 @@ func (m *QueryMarketsResponse) Reset() { *m = QueryMarketsResponse{} } func (m *QueryMarketsResponse) String() string { return proto.CompactTextString(m) } func (*QueryMarketsResponse) ProtoMessage() {} func (*QueryMarketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{5} + return fileDescriptor_bfd151c101859bd3, []int{5} } func (m *QueryMarketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,7 +319,7 @@ func (m *QueryMarketsByUIDsRequest) Reset() { *m = QueryMarketsByUIDsReq func (m *QueryMarketsByUIDsRequest) String() string { return proto.CompactTextString(m) } func (*QueryMarketsByUIDsRequest) ProtoMessage() {} func (*QueryMarketsByUIDsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{6} + return fileDescriptor_bfd151c101859bd3, []int{6} } func (m *QueryMarketsByUIDsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -366,7 +366,7 @@ func (m *QueryMarketsByUIDsResponse) Reset() { *m = QueryMarketsByUIDsRe func (m *QueryMarketsByUIDsResponse) String() string { return proto.CompactTextString(m) } func (*QueryMarketsByUIDsResponse) ProtoMessage() {} func (*QueryMarketsByUIDsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a0102cd07774feff, []int{7} + return fileDescriptor_bfd151c101859bd3, []int{7} } func (m *QueryMarketsByUIDsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -420,47 +420,47 @@ func init() { proto.RegisterType((*QueryMarketsByUIDsResponse)(nil), "sgenetwork.sge.market.QueryMarketsByUIDsResponse") } -func init() { proto.RegisterFile("sge/market/query.proto", fileDescriptor_a0102cd07774feff) } - -var fileDescriptor_a0102cd07774feff = []byte{ - // 579 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0xb3, 0x6d, 0x4c, 0xed, 0x48, 0x45, 0x5f, 0x52, 0xb5, 0x6b, 0xdd, 0xca, 0xa2, 0xd5, - 0x46, 0x9c, 0x31, 0xf5, 0x24, 0xe2, 0x25, 0x8a, 0xe2, 0x41, 0xa8, 0x0b, 0x5e, 0x04, 0x09, 0x93, - 0x66, 0x1c, 0x97, 0x36, 0x3b, 0xdb, 0x9d, 0x5d, 0x35, 0x96, 0x22, 0xf4, 0x13, 0x08, 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8, 0x2f, 0x09, 0x3e, 0xa1, 0x8a, - 0x26, 0x3a, 0x39, 0x3c, 0xb7, 0xdf, 0x27, 0x87, 0xe7, 0x57, 0xdc, 0x5d, 0x52, 0xe1, 0x55, 0xb8, - 0x38, 0x1a, 0xbe, 0x9b, 0xf8, 0x9d, 0x3d, 0xf8, 0x8c, 0xe6, 0xcc, 0x34, 0x60, 0x02, 0xc7, 0x61, - 0xeb, 0x77, 0x26, 0xd2, 0x9a, 0xf8, 0xab, 0x2a, 0x7e, 0x11, 0xaa, 0x64, 0xec, 0x65, 0x21, 0xe1, - 0xbb, 0x85, 0x16, 0x72, 0x3b, 0x00, 0xf7, 0x26, 0xf0, 0xce, 0xad, 0x9a, 0xdd, 0x98, 0xa2, 0xc2, - 0x30, 0xd5, 0x15, 0xd3, 0x0d, 0x70, 0x0b, 0x98, 0x5a, 0xed, 0x5e, 0x2b, 0x5d, 0x52, 0x35, 0x22, - 0xb9, 0xd7, 0x7c, 0x7c, 0xd0, 0x77, 0xac, 0xc3, 0xbe, 0x63, 0xfd, 0xee, 0x3b, 0xd6, 0x97, 0x81, - 0x53, 0x3a, 0x1c, 0x38, 0xa5, 0x5f, 0x03, 0xa7, 0xf4, 0x7a, 0x8d, 0xfb, 0xf1, 0xbb, 0xa4, 0x8d, - 0x37, 0x45, 0x37, 0xf5, 0xb9, 0x6b, 0x18, 0x94, 0xe7, 0xc7, 0xcc, 0x35, 0xee, 0x85, 0x4c, 0xb6, - 0x2b, 0xea, 0xb5, 0x78, 0xff, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb4, 0xba, 0x42, 0xd2, 0xd9, - 0x05, 0x00, 0x00, +func init() { proto.RegisterFile("sgenetwork/sge/market/query.proto", fileDescriptor_bfd151c101859bd3) } + +var fileDescriptor_bfd151c101859bd3 = []byte{ + // 580 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x41, 0x6b, 0x13, 0x4f, + 0x18, 0xc6, 0xb3, 0x69, 0xfe, 0xe9, 0xbf, 0x23, 0x15, 0x7d, 0x93, 0x82, 0x5d, 0xeb, 0x56, 0x07, + 0xad, 0x36, 0xe2, 0xac, 0xa9, 0x27, 0x11, 0x2f, 0x51, 0x14, 0x0f, 0x42, 0x5d, 0xf0, 0x22, 0x48, + 0x98, 0x34, 0xe3, 0xb8, 0xb4, 0xd9, 0xd9, 0x66, 0x76, 0xd5, 0x58, 0x8a, 0xd0, 0x4f, 0x20, 0x78, + 0xf5, 0xe0, 0xc1, 0x0f, 0xd3, 0x63, 0xc1, 0x8b, 0xa7, 0x22, 0x89, 0x27, 0x3f, 0x85, 0xec, 0xcc, + 0x6c, 0x92, 0x25, 0x6b, 0x9a, 0x5c, 0x92, 0xcd, 0xe4, 0x79, 0x9f, 0xdf, 0xf3, 0xce, 0xbc, 0x3b, + 0xe8, 0x9a, 0xe4, 0x2c, 0x60, 0xd1, 0x7b, 0xd1, 0xdd, 0x75, 0x25, 0x67, 0x6e, 0x87, 0x76, 0x77, + 0x59, 0xe4, 0xee, 0xc7, 0xac, 0xdb, 0x23, 0x61, 0x57, 0x44, 0x02, 0x56, 0x46, 0x12, 0x22, 0x39, + 0x23, 0x5a, 0x62, 0x57, 0xb9, 0xe0, 0x42, 0x29, 0xdc, 0xe4, 0x49, 0x8b, 0xed, 0x35, 0x2e, 0x04, + 0xdf, 0x63, 0x2e, 0x0d, 0x7d, 0x97, 0x06, 0x81, 0x88, 0x68, 0xe4, 0x8b, 0x40, 0x9a, 0x7f, 0x6b, + 0x3b, 0x42, 0x76, 0x84, 0x74, 0x5b, 0x54, 0x32, 0xcd, 0x70, 0xdf, 0xd5, 0x5b, 0x2c, 0xa2, 0x75, + 0x37, 0xa4, 0xdc, 0x0f, 0x94, 0xd8, 0x68, 0x71, 0x7e, 0xb2, 0x90, 0x76, 0x69, 0x47, 0x4e, 0xd7, + 0xe8, 0x2f, 0xad, 0xc1,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0x64, 0xab, 0xac, 0xae, 0xc5, 0x7b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x69, 0x41, 0xfc, + 0xfa, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -656,7 +656,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/market/query.proto", + Metadata: "sgenetwork/sge/market/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/query.pb.gw.go b/x/market/types/query.pb.gw.go index be2302a8..c64b2270 100644 --- a/x/market/types/query.pb.gw.go +++ b/x/market/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/market/query.proto +// source: sgenetwork/sge/market/query.proto /* Package types is a reverse proxy. diff --git a/x/market/types/stats.pb.go b/x/market/types/stats.pb.go index 09dbfefe..ef9b35f2 100644 --- a/x/market/types/stats.pb.go +++ b/x/market/types/stats.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/stats.proto +// source: sgenetwork/sge/market/stats.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -33,7 +33,7 @@ func (m *MarketStats) Reset() { *m = MarketStats{} } func (m *MarketStats) String() string { return proto.CompactTextString(m) } func (*MarketStats) ProtoMessage() {} func (*MarketStats) Descriptor() ([]byte, []int) { - return fileDescriptor_ee763120d9ee1c76, []int{0} + return fileDescriptor_b89d96b591dbbbbd, []int{0} } func (m *MarketStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,21 +73,21 @@ func init() { proto.RegisterType((*MarketStats)(nil), "sgenetwork.sge.market.MarketStats") } -func init() { proto.RegisterFile("sge/market/stats.proto", fileDescriptor_ee763120d9ee1c76) } +func init() { proto.RegisterFile("sgenetwork/sge/market/stats.proto", fileDescriptor_b89d96b591dbbbbd) } -var fileDescriptor_ee763120d9ee1c76 = []byte{ - // 174 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2b, 0x4e, 0x4f, 0xd5, - 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xd1, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0x2d, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, - 0x4e, 0x4f, 0xd5, 0x83, 0x28, 0x51, 0xb2, 0xe1, 0xe2, 0xf6, 0x05, 0xb3, 0x82, 0x41, 0x6a, 0x85, - 0x74, 0xb9, 0x84, 0x8a, 0x52, 0x8b, 0xf3, 0x73, 0xca, 0x52, 0x53, 0xe2, 0x4b, 0xf3, 0x8a, 0x53, - 0x4b, 0x4a, 0x72, 0x52, 0x53, 0x24, 0x18, 0x15, 0x98, 0x35, 0x38, 0x83, 0x04, 0x61, 0x32, 0xa1, - 0x30, 0x09, 0x27, 0xe7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, - 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x4c, - 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0x4e, 0x4f, 0xd5, 0x85, 0x5a, - 0x0d, 0x62, 0xeb, 0x57, 0xc0, 0xdc, 0x57, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xa0, - 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x84, 0xfb, 0x10, 0xc3, 0xba, 0x00, 0x00, 0x00, +var fileDescriptor_b89d96b591dbbbbd = []byte{ + // 173 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, + 0x2d, 0xd1, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x45, + 0x28, 0xd1, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0x28, 0x51, 0xb2, 0xe1, 0xe2, 0xf6, 0x05, 0xb3, 0x82, + 0x41, 0x6a, 0x85, 0x74, 0xb9, 0x84, 0x8a, 0x52, 0x8b, 0xf3, 0x73, 0xca, 0x52, 0x53, 0xe2, 0x4b, + 0xf3, 0x8a, 0x53, 0x4b, 0x4a, 0x72, 0x52, 0x53, 0x24, 0x18, 0x15, 0x98, 0x35, 0x38, 0x83, 0x04, + 0x61, 0x32, 0xa1, 0x30, 0x09, 0x27, 0xe7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, + 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, + 0x88, 0xd2, 0x4c, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0x05, 0xb9, 0x48, 0x17, + 0xd9, 0x75, 0x15, 0x30, 0xf7, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x1d, 0x68, 0x0c, + 0x08, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x0d, 0x49, 0x10, 0xc5, 0x00, 0x00, 0x00, } func (m *MarketStats) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/ticket.pb.go b/x/market/types/ticket.pb.go index 7c0e3bc1..7e1b1ccf 100644 --- a/x/market/types/ticket.pb.go +++ b/x/market/types/ticket.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/ticket.proto +// source: sgenetwork/sge/market/ticket.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -43,7 +43,7 @@ func (m *MarketAddTicketPayload) Reset() { *m = MarketAddTicketPayload{} func (m *MarketAddTicketPayload) String() string { return proto.CompactTextString(m) } func (*MarketAddTicketPayload) ProtoMessage() {} func (*MarketAddTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_1dc46cd902954700, []int{0} + return fileDescriptor_a35459e041976d97, []int{0} } func (m *MarketAddTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +130,7 @@ func (m *MarketUpdateTicketPayload) Reset() { *m = MarketUpdateTicketPay func (m *MarketUpdateTicketPayload) String() string { return proto.CompactTextString(m) } func (*MarketUpdateTicketPayload) ProtoMessage() {} func (*MarketUpdateTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_1dc46cd902954700, []int{1} + return fileDescriptor_a35459e041976d97, []int{1} } func (m *MarketUpdateTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -205,7 +205,7 @@ func (m *MarketResolutionTicketPayload) Reset() { *m = MarketResolutionT func (m *MarketResolutionTicketPayload) String() string { return proto.CompactTextString(m) } func (*MarketResolutionTicketPayload) ProtoMessage() {} func (*MarketResolutionTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_1dc46cd902954700, []int{2} + return fileDescriptor_a35459e041976d97, []int{2} } func (m *MarketResolutionTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -268,38 +268,41 @@ func init() { proto.RegisterType((*MarketResolutionTicketPayload)(nil), "sgenetwork.sge.market.MarketResolutionTicketPayload") } -func init() { proto.RegisterFile("sge/market/ticket.proto", fileDescriptor_1dc46cd902954700) } +func init() { + proto.RegisterFile("sgenetwork/sge/market/ticket.proto", fileDescriptor_a35459e041976d97) +} -var fileDescriptor_1dc46cd902954700 = []byte{ - // 446 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x53, 0xcf, 0x6a, 0xd4, 0x40, - 0x1c, 0xde, 0xd9, 0xa4, 0xd1, 0x8e, 0xba, 0xc8, 0x68, 0x6d, 0xac, 0x98, 0x89, 0x2b, 0x48, 0x44, - 0x4c, 0xa0, 0x3d, 0x7a, 0x32, 0x56, 0xa4, 0x07, 0x51, 0x66, 0xbb, 0x08, 0x5e, 0x96, 0xb4, 0x33, - 0xc4, 0xb0, 0xdd, 0xcc, 0x92, 0x99, 0x50, 0xfb, 0x16, 0xde, 0x05, 0x9f, 0xc7, 0x63, 0x8f, 0x1e, - 0x64, 0x90, 0xd9, 0xdb, 0x3e, 0x85, 0xcc, 0x24, 0xa4, 0x5b, 0xaa, 0x87, 0xc5, 0x8b, 0x97, 0xcc, - 0x97, 0xef, 0xcf, 0x24, 0xdf, 0x6f, 0x18, 0xb8, 0x2d, 0x72, 0x96, 0xcc, 0xb2, 0x6a, 0xca, 0x64, - 0x22, 0x8b, 0xe3, 0x29, 0x93, 0xf1, 0xbc, 0xe2, 0x92, 0xa3, 0x2d, 0x91, 0xb3, 0x92, 0xc9, 0x53, - 0x5e, 0x4d, 0x63, 0x91, 0xb3, 0xb8, 0xf1, 0xec, 0xac, 0xfa, 0x9b, 0xa5, 0xf1, 0xef, 0x6c, 0xad, - 0x08, 0x9c, 0x52, 0xd1, 0xd2, 0x77, 0x73, 0x9e, 0x73, 0x0b, 0x13, 0x83, 0x1a, 0x76, 0xf8, 0xad, - 0x0f, 0xef, 0xbd, 0xb5, 0xde, 0x97, 0x94, 0x1e, 0xda, 0xcf, 0xbe, 0xcf, 0xce, 0x4e, 0x78, 0x46, - 0x51, 0x08, 0x9d, 0xba, 0xa0, 0x3e, 0x08, 0x41, 0xb4, 0x99, 0x0e, 0xb4, 0xc2, 0xce, 0xf8, 0x60, - 0x7f, 0xa9, 0xb0, 0x61, 0x89, 0x79, 0xa0, 0x3d, 0x78, 0x5d, 0xc8, 0xac, 0x92, 0x13, 0x29, 0xfc, - 0x7e, 0x08, 0x22, 0x37, 0xdd, 0xd6, 0x0a, 0x5f, 0x1b, 0x19, 0xee, 0x70, 0xb4, 0x54, 0xb8, 0x93, - 0x49, 0x87, 0xd0, 0x33, 0xe8, 0xb1, 0x92, 0x9a, 0x88, 0x63, 0x23, 0x77, 0xb4, 0xc2, 0x1b, 0xaf, - 0x4b, 0x6a, 0x03, 0xad, 0x44, 0xda, 0x15, 0x25, 0xd0, 0x35, 0x15, 0x7c, 0x37, 0x74, 0xa2, 0x1b, - 0xbb, 0x0f, 0xe2, 0x3f, 0x8e, 0x22, 0x7e, 0x47, 0xa9, 0x20, 0xd6, 0x88, 0x5e, 0x40, 0x4f, 0xc8, - 0x4c, 0xd6, 0xc2, 0xdf, 0x08, 0x41, 0x34, 0xd8, 0x7d, 0xfc, 0x97, 0x48, 0xd3, 0x79, 0x64, 0xad, - 0xa4, 0x8d, 0x20, 0x04, 0xdd, 0x19, 0x93, 0x99, 0xef, 0x99, 0xca, 0xc4, 0xe2, 0xe1, 0x4f, 0x00, - 0xef, 0x37, 0xe6, 0xf1, 0x9c, 0x66, 0x92, 0xfd, 0x7f, 0x33, 0xba, 0xa8, 0xec, 0xae, 0x5d, 0x79, - 0xf8, 0xb5, 0x0f, 0x1f, 0x36, 0x02, 0x61, 0x82, 0x9f, 0xd4, 0xb2, 0xe0, 0xe5, 0xba, 0x15, 0xdf, - 0xc0, 0x5b, 0x55, 0x17, 0xbe, 0xe8, 0xf9, 0x48, 0x2b, 0x7c, 0x73, 0x65, 0x57, 0xf3, 0xef, 0x97, - 0x8d, 0xe4, 0xf2, 0x2b, 0x22, 0xf0, 0xf6, 0x69, 0x51, 0x96, 0xac, 0x9a, 0x98, 0xb3, 0x9c, 0xd4, - 0x05, 0x35, 0x03, 0x70, 0xa2, 0xcd, 0xf4, 0x89, 0x56, 0x78, 0xf0, 0xc1, 0x6a, 0xe6, 0xb0, 0xc7, - 0x07, 0xfb, 0x62, 0xa9, 0xf0, 0x15, 0x37, 0xb9, 0xc2, 0xfc, 0xd3, 0x74, 0xd2, 0x57, 0xdf, 0x75, - 0x00, 0xce, 0x75, 0x00, 0x7e, 0xe9, 0x00, 0x7c, 0x59, 0x04, 0xbd, 0xf3, 0x45, 0xd0, 0xfb, 0xb1, - 0x08, 0x7a, 0x1f, 0x9f, 0xe6, 0x85, 0xfc, 0x54, 0x1f, 0xc5, 0xc7, 0x7c, 0x96, 0x88, 0x9c, 0x3d, - 0x6f, 0x77, 0x34, 0x38, 0xf9, 0xdc, 0x5d, 0xe3, 0xb3, 0x39, 0x13, 0x47, 0x9e, 0xbd, 0x69, 0x7b, - 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xd8, 0x54, 0xce, 0xe1, 0x03, 0x00, 0x00, +var fileDescriptor_a35459e041976d97 = []byte{ + // 449 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0xcf, 0x6b, 0xd4, 0x40, + 0x14, 0xc7, 0x77, 0x36, 0xe9, 0x6a, 0x47, 0x5d, 0x64, 0xfc, 0x15, 0x2b, 0x66, 0x62, 0x04, 0x89, + 0x88, 0x09, 0xb4, 0x47, 0x4f, 0xc6, 0x8a, 0xf4, 0x20, 0xca, 0x6c, 0x17, 0xc1, 0xcb, 0x92, 0x76, + 0x86, 0x18, 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7d, 0x10, 0x1f, + 0xf2, 0x99, 0xd9, 0xb7, 0x97, 0x67, 0x77, 0xef, 0x6b, 0xb7, 0xdc, 0x27, 0x73, 0x26, 0x0e, 0x06, + 0x76, 0xd3, 0x76, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xcf, 0xf7, 0x80, 0x02, 0x04, 0x00, + 0x00, } func (m *MarketAddTicketPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/market/types/tx.pb.go b/x/market/types/tx.pb.go index 4417dde6..b84f75d8 100644 --- a/x/market/types/tx.pb.go +++ b/x/market/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/market/tx.proto +// source: sgenetwork/sge/market/tx.proto package types @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -41,7 +41,7 @@ func (m *MsgAdd) Reset() { *m = MsgAdd{} } func (m *MsgAdd) String() string { return proto.CompactTextString(m) } func (*MsgAdd) ProtoMessage() {} func (*MsgAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_d0e875658c4f19fd, []int{0} + return fileDescriptor_cb37002f2abdafc2, []int{0} } func (m *MsgAdd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -96,7 +96,7 @@ func (m *MsgAddResponse) Reset() { *m = MsgAddResponse{} } func (m *MsgAddResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddResponse) ProtoMessage() {} func (*MsgAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d0e875658c4f19fd, []int{1} + return fileDescriptor_cb37002f2abdafc2, []int{1} } func (m *MsgAddResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,7 +151,7 @@ func (m *MsgResolve) Reset() { *m = MsgResolve{} } func (m *MsgResolve) String() string { return proto.CompactTextString(m) } func (*MsgResolve) ProtoMessage() {} func (*MsgResolve) Descriptor() ([]byte, []int) { - return fileDescriptor_d0e875658c4f19fd, []int{2} + return fileDescriptor_cb37002f2abdafc2, []int{2} } func (m *MsgResolve) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -206,7 +206,7 @@ func (m *MsgResolveResponse) Reset() { *m = MsgResolveResponse{} } func (m *MsgResolveResponse) String() string { return proto.CompactTextString(m) } func (*MsgResolveResponse) ProtoMessage() {} func (*MsgResolveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d0e875658c4f19fd, []int{3} + return fileDescriptor_cb37002f2abdafc2, []int{3} } func (m *MsgResolveResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -262,7 +262,7 @@ func (m *MsgUpdate) Reset() { *m = MsgUpdate{} } func (m *MsgUpdate) String() string { return proto.CompactTextString(m) } func (*MsgUpdate) ProtoMessage() {} func (*MsgUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_d0e875658c4f19fd, []int{4} + return fileDescriptor_cb37002f2abdafc2, []int{4} } func (m *MsgUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -317,7 +317,7 @@ func (m *MsgUpdateResponse) Reset() { *m = MsgUpdateResponse{} } func (m *MsgUpdateResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateResponse) ProtoMessage() {} func (*MsgUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d0e875658c4f19fd, []int{5} + return fileDescriptor_cb37002f2abdafc2, []int{5} } func (m *MsgUpdateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -369,32 +369,33 @@ func init() { proto.RegisterType((*MsgUpdateResponse)(nil), "sgenetwork.sge.market.MsgUpdateResponse") } -func init() { proto.RegisterFile("sge/market/tx.proto", fileDescriptor_d0e875658c4f19fd) } - -var fileDescriptor_d0e875658c4f19fd = []byte{ - // 352 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x4a, 0xf3, 0x40, - 0x14, 0xc5, 0x9b, 0xb6, 0x5f, 0x4a, 0xef, 0x07, 0x82, 0xe3, 0xbf, 0x12, 0x30, 0xd6, 0x82, 0xd0, - 0x2e, 0x9c, 0x40, 0x5d, 0x08, 0x82, 0x82, 0x75, 0x29, 0xd9, 0x04, 0x45, 0x70, 0x97, 0x36, 0x97, - 0x69, 0xa9, 0xed, 0x84, 0x99, 0x51, 0xeb, 0xd2, 0x37, 0xf0, 0xb1, 0xba, 0xec, 0xd2, 0x95, 0x48, - 0xfb, 0x22, 0xd2, 0x99, 0x24, 0xba, 0xb0, 0x16, 0x0a, 0x5d, 0xcd, 0x4c, 0xce, 0xf9, 0x1d, 0x0e, - 0xb9, 0x5c, 0xd8, 0x92, 0x0c, 0xbd, 0x41, 0x28, 0xfa, 0xa8, 0x3c, 0x35, 0xa2, 0xb1, 0xe0, 0x8a, - 0x93, 0x1d, 0xc9, 0x70, 0x88, 0xea, 0x99, 0x8b, 0x3e, 0x95, 0x0c, 0xa9, 0xd1, 0x9d, 0x6d, 0xc6, - 0x19, 0xd7, 0x0e, 0x6f, 0x7e, 0x33, 0x66, 0x67, 0xef, 0x47, 0x82, 0x39, 0x8c, 0x50, 0x3b, 0x03, - 0xdb, 0x97, 0xec, 0x32, 0x8a, 0x48, 0x05, 0x4a, 0x1d, 0x81, 0xa1, 0xe2, 0xa2, 0x62, 0x55, 0xad, - 0x7a, 0x39, 0x48, 0x9f, 0x64, 0x17, 0x6c, 0xd5, 0xeb, 0xf4, 0x51, 0x55, 0xf2, 0x5a, 0x48, 0x5e, - 0x35, 0x84, 0x0d, 0xc3, 0x06, 0x28, 0x63, 0x3e, 0x94, 0x48, 0x1c, 0xf8, 0x87, 0x42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proto.RegisterFile("sgenetwork/sge/market/tx.proto", fileDescriptor_cb37002f2abdafc2) } + +var fileDescriptor_cb37002f2abdafc2 = []byte{ + // 353 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, + 0x2d, 0xd1, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x45, 0xc8, 0xeb, 0x15, + 0xa7, 0xa7, 0xea, 0x41, 0xe4, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x2a, 0xf4, 0x41, 0x2c, + 0x88, 0x62, 0x29, 0x25, 0xec, 0x86, 0x41, 0x28, 0x88, 0x1a, 0x25, 0x2b, 0x2e, 0x36, 0xdf, 0xe2, + 0x74, 0xc7, 0x94, 0x14, 0x21, 0x09, 0x2e, 0xf6, 0xe4, 0xa2, 0xd4, 0xc4, 0x92, 0xfc, 0x22, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, 0x48, 0x8c, 0x8b, 0xad, 0x24, 0x33, 0x39, 0x3b, + 0xb5, 0x44, 0x82, 0x09, 0x2c, 0x01, 0xe5, 0x29, 0xa5, 0x72, 0xf1, 0x41, 0xf4, 0x06, 0xa5, 0x16, + 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x0a, 0x49, 0x71, 0xb1, 0xa6, 0x16, 0x15, 0xc1, 0x4c, 0x70, 0x62, + 0x39, 0x71, 0x4f, 0x9e, 0x31, 0x08, 0x22, 0x24, 0x64, 0xce, 0xc5, 0x92, 0x92, 0x58, 0x92, 0x08, + 0x36, 0x83, 0xdb, 0x48, 0x56, 0x0f, 0x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 0xb9, 0x03, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -552,7 +553,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/market/tx.proto", + Metadata: "sgenetwork/sge/market/tx.proto", } func (m *MsgAdd) Marshal() (dAtA []byte, err error) { diff --git a/x/mint/abci.go b/x/mint/abci.go index 44dfd389..7ff22cc8 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -5,6 +5,7 @@ import ( "github.com/spf13/cast" + sdkmath "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/mint/types" @@ -52,7 +53,7 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { } // if the inflation rate is zero, means that we have no minting, so the rest of the code should not be called - if minter.Inflation.Equal(sdk.ZeroDec()) { + if minter.Inflation.Equal(sdkmath.LegacyZeroDec()) { return } diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index cba36e0d..6f914615 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -3,8 +3,7 @@ package keeper import ( "fmt" - "github.com/tendermint/tendermint/libs/log" - + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/mint/keeper/minter.go b/x/mint/keeper/minter.go index c6bcc1af..a5e24f1b 100644 --- a/x/mint/keeper/minter.go +++ b/x/mint/keeper/minter.go @@ -40,7 +40,7 @@ func (k Keeper) TokenSupply(ctx sdk.Context, denom string) sdkmath.Int { // BondedRatio implements an alias call to the underlying staking keeper's // to be used in BeginBlocker. -func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec { +func (k Keeper) BondedRatio(ctx sdk.Context) sdkmath.LegacyDec { return k.stakingKeeper.BondedRatio(ctx) } diff --git a/x/mint/keeper/minter_test.go b/x/mint/keeper/minter_test.go index 20797dba..bf6808df 100644 --- a/x/mint/keeper/minter_test.go +++ b/x/mint/keeper/minter_test.go @@ -26,7 +26,7 @@ func TestStakingTokenSupply(t *testing.T) { func TestBondedRatio(t *testing.T) { k, ctx := setupKeeper(t) bondedRatio := k.BondedRatio(ctx) - expectedBondedRatio, _ := sdk.NewDecFromStr("0.000998003992015968") + expectedBondedRatio, _ := sdkmath.LegacyNewDecFromStr("0.000998003992015968") require.Equal(t, expectedBondedRatio, bondedRatio) } diff --git a/x/mint/module.go b/x/mint/module.go index b97439f0..3075ce3b 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -9,7 +9,7 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -121,15 +121,9 @@ func NewAppModule( // Name returns the module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the module's message routing key. -func (AppModule) Route() sdk.Route { return sdk.Route{} } - // QuerierRoute returns the module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the module's Querier. -func (AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { return nil } - // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/mint/module_simulation.go b/x/mint/module_simulation.go index eac6e281..c45b1963 100644 --- a/x/mint/module_simulation.go +++ b/x/mint/module_simulation.go @@ -2,10 +2,9 @@ package mint import ( //#nosec - "math/rand" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -20,7 +19,7 @@ import ( var ( _ = sample.AccAddress _ = mintsimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -31,15 +30,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return mintsimulation.ParamChanges(r) -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = mintsimulation.NewDecodeStore(am.cdc) diff --git a/x/mint/simulation/decoder_test.go b/x/mint/simulation/decoder_test.go index 72a1aa7c..813823dd 100644 --- a/x/mint/simulation/decoder_test.go +++ b/x/mint/simulation/decoder_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" + sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/kv" "github.com/sge-network/sge/app" @@ -18,7 +18,7 @@ func TestDecodeStore(t *testing.T) { cdc := app.MakeEncodingConfig().Marshaler dec := simulation.NewDecodeStore(cdc) - minter := types.NewMinter(sdk.OneDec(), sdk.NewDec(15), 1, sdk.NewDec(0)) + minter := types.NewMinter(sdkmath.LegacyOneDec(), sdkmath.LegacyNewDec(15), 1, sdkmath.LegacyNewDec(0)) kvPairs := kv.Pairs{ Pairs: []kv.Pair{ diff --git a/x/mint/simulation/genesis.go b/x/mint/simulation/genesis.go index 417a38fe..cb4cf51d 100644 --- a/x/mint/simulation/genesis.go +++ b/x/mint/simulation/genesis.go @@ -7,7 +7,7 @@ import ( //#nosec "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/types/module" "github.com/sge-network/sge/app/params" @@ -20,19 +20,19 @@ const ( ) // GenInflation randomized Inflation -func GenInflation(r *rand.Rand) sdk.Dec { - return sdk.NewDec(int64(r.Intn(99))).QuoInt64(100) +func GenInflation(r *rand.Rand) sdkmath.LegacyDec { + return sdkmath.LegacyNewDec(int64(r.Intn(99))).QuoInt64(100) } // GenBlocksPerYear randomized BlocksPerYear -func GenBlocksPerYear(_ *rand.Rand) sdk.Dec { - return sdk.NewDec(types.BlocksPerYear) +func GenBlocksPerYear(_ *rand.Rand) sdkmath.LegacyDec { + return sdkmath.LegacyNewDec(types.BlocksPerYear) } // RandomizedGenState generates a random GenesisState for mint func RandomizedGenState(simState *module.SimulationState) { // minter - var inflation sdk.Dec + var inflation sdkmath.LegacyDec simState.AppParams.GetOrGenerate( simState.Cdc, Inflation, &inflation, simState.Rand, func(r *rand.Rand) { inflation = GenInflation(r) }, diff --git a/x/mint/simulation/params.go b/x/mint/simulation/params.go index d54c342f..a06ba0f5 100644 --- a/x/mint/simulation/params.go +++ b/x/mint/simulation/params.go @@ -19,9 +19,9 @@ const ( // ParamChanges defines the parameters that can be modified by param change proposals // on the simulation -func ParamChanges(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{ - simulation.NewSimParamChange(types.ModuleName, keyBlocksPerYear, +func ParamChanges(_ *rand.Rand) []simtypes.LegacyParamChange { + return []simtypes.LegacyParamChange{ + simulation.NewSimLegacyParamChange(types.ModuleName, keyBlocksPerYear, func(r *rand.Rand) string { return fmt.Sprintf("\"%s\"", GenBlocksPerYear(r)) }, diff --git a/x/mint/types/codec.go b/x/mint/types/codec.go index e0313e08..c1dcfe68 100644 --- a/x/mint/types/codec.go +++ b/x/mint/types/codec.go @@ -3,7 +3,6 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) @@ -28,6 +27,6 @@ var ( func init() { RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) + // cryptocodec.RegisterCrypto(amino) sdk.RegisterLegacyAminoCodec(amino) } diff --git a/x/mint/types/expected_keepers.go b/x/mint/types/expected_keepers.go index c88a889a..dbd4f9c5 100644 --- a/x/mint/types/expected_keepers.go +++ b/x/mint/types/expected_keepers.go @@ -8,7 +8,7 @@ import ( // StakingKeeper defines the expected staking keeper type StakingKeeper interface { StakingTokenSupply(ctx sdk.Context) sdkmath.Int - BondedRatio(ctx sdk.Context) sdk.Dec + BondedRatio(ctx sdk.Context) sdkmath.LegacyDec } // AccountKeeper defines the contract required for account APIs. diff --git a/x/mint/types/genesis.pb.go b/x/mint/types/genesis.pb.go index d48ba8d1..b9548291 100644 --- a/x/mint/types/genesis.pb.go +++ b/x/mint/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/mint/genesis.proto +// source: sgenetwork/sge/mint/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -35,7 +35,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_5f482053ea27dcec, []int{0} + return fileDescriptor_77c6a42e62252e0d, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -82,24 +82,24 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.mint.GenesisState") } -func init() { proto.RegisterFile("sge/mint/genesis.proto", fileDescriptor_5f482053ea27dcec) } +func init() { proto.RegisterFile("sgenetwork/sge/mint/genesis.proto", fileDescriptor_77c6a42e62252e0d) } -var fileDescriptor_5f482053ea27dcec = []byte{ +var fileDescriptor_77c6a42e62252e0d = []byte{ // 217 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2b, 0x4e, 0x4f, 0xd5, - 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0x2e, 0x06, 0xf1, 0x4b, 0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x8a, 0xd3, 0x53, - 0xf5, 0x40, 0x4a, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xf2, 0xfa, 0x20, 0x16, 0x44, 0xa9, - 0x94, 0x28, 0xdc, 0x88, 0x82, 0xc4, 0xa2, 0xc4, 0xdc, 0x62, 0x0c, 0x61, 0x10, 0x91, 0x5a, 0x04, - 0x11, 0x56, 0x6a, 0x61, 0xe4, 0xe2, 0x71, 0x87, 0x58, 0x15, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, - 0xc9, 0xc5, 0x06, 0x51, 0x20, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xad, 0x87, 0xc5, 0x6a, - 0x3d, 0x5f, 0xb0, 0x12, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0x1a, 0x40, 0x5a, 0x21, - 0x56, 0x4a, 0x30, 0xe1, 0xd1, 0x1a, 0x00, 0x56, 0x02, 0xd3, 0x0a, 0xd1, 0xe0, 0xe4, 0x78, 0xe2, - 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, - 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xea, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, - 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc5, 0xe9, 0xa9, 0xba, 0x50, 0xf3, 0x40, 0x6c, 0xfd, 0x0a, 0x88, - 0x87, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x1e, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, - 0xff, 0x0f, 0x5a, 0xf5, 0x8f, 0x43, 0x01, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, + 0x07, 0x09, 0x15, 0x67, 0x16, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x23, 0x94, 0xe8, + 0x15, 0xa7, 0xa7, 0xea, 0x81, 0x94, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xe5, 0xf5, 0x41, + 0x2c, 0x88, 0x52, 0x29, 0x05, 0x6c, 0xa6, 0x15, 0x24, 0x16, 0x25, 0xe6, 0x16, 0xe3, 0x53, 0x01, + 0x22, 0x52, 0x8b, 0x20, 0x2a, 0x94, 0x5a, 0x18, 0xb9, 0x78, 0xdc, 0x21, 0x0e, 0x08, 0x2e, 0x49, + 0x2c, 0x49, 0x15, 0xb2, 0xe4, 0x62, 0x83, 0x28, 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x92, + 0xd6, 0xc3, 0xe2, 0x20, 0x3d, 0x5f, 0xb0, 0x12, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, + 0x1a, 0x40, 0x5a, 0x21, 0xb6, 0x4b, 0x30, 0xe1, 0xd1, 0x1a, 0x00, 0x56, 0x02, 0xd3, 0x0a, 0xd1, + 0xe0, 0xe4, 0x78, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, + 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xea, 0xe9, 0x99, + 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0x20, 0x2f, 0xe8, 0x22, 0x7b, 0xa7, 0x02, 0xe2, + 0xa1, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x87, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x94, 0x31, 0x50, 0x21, 0x64, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/mint/types/genesis_test.go b/x/mint/types/genesis_test.go index 5e02b62f..03059cba 100644 --- a/x/mint/types/genesis_test.go +++ b/x/mint/types/genesis_test.go @@ -6,7 +6,6 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/sge-network/sge/x/mint/types" ) @@ -75,7 +74,7 @@ func TestGenesisStateValidate(t *testing.T) { MintDenom: types.DefaultParams().MintDenom, BlocksPerYear: types.DefaultParams().BlocksPerYear, Phases: []types.Phase{ - {YearCoefficient: sdk.MustNewDecFromStr("0"), Inflation: sdk.MustNewDecFromStr("0")}, + {YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0"), Inflation: sdkmath.LegacyMustNewDecFromStr("0")}, }, ExcludeAmount: types.DefaultParams().ExcludeAmount, }, @@ -103,7 +102,7 @@ func TestGenesisStateValidate(t *testing.T) { MintDenom: types.DefaultParams().MintDenom, BlocksPerYear: types.DefaultParams().BlocksPerYear, Phases: []types.Phase{ - {YearCoefficient: sdk.MustNewDecFromStr("0"), Inflation: sdk.MustNewDecFromStr("0")}, + {YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0"), Inflation: sdkmath.LegacyMustNewDecFromStr("0")}, }, ExcludeAmount: types.DefaultParams().ExcludeAmount, }, @@ -127,7 +126,7 @@ func TestGenesisStateValidate(t *testing.T) { desc: "negative inflation", genState: types.NewGenesisState( types.Minter{ - Inflation: sdk.NewDec(-10), + Inflation: sdkmath.LegacyNewDec(-10), PhaseStep: types.DefaultInitialMinter().PhaseStep, PhaseProvisions: types.DefaultInitialMinter().PhaseProvisions, }, diff --git a/x/mint/types/minter.go b/x/mint/types/minter.go index 5376099d..859fa0a3 100644 --- a/x/mint/types/minter.go +++ b/x/mint/types/minter.go @@ -9,7 +9,7 @@ import ( // NewMinter returns a new Minter object with the given inflation and phase // provisions values. -func NewMinter(inflation, phaseProvisions sdk.Dec, phaseStep int32, truncatedTokens sdk.Dec) Minter { +func NewMinter(inflation, phaseProvisions sdkmath.LegacyDec, phaseStep int32, truncatedTokens sdkmath.LegacyDec) Minter { return Minter{ Inflation: inflation, PhaseProvisions: phaseProvisions, @@ -19,12 +19,12 @@ func NewMinter(inflation, phaseProvisions sdk.Dec, phaseStep int32, truncatedTok } // InitialMinter returns an initial Minter object with a given inflation value. -func InitialMinter(inflation sdk.Dec) Minter { +func InitialMinter(inflation sdkmath.LegacyDec) Minter { return NewMinter( inflation, - sdk.NewDec(initialPhaseProvision), + sdkmath.LegacyNewDec(initialPhaseProvision), initialPhaseStep, - sdk.NewDec(initialTruncatedTokens), + sdkmath.LegacyNewDec(initialTruncatedTokens), ) } @@ -32,7 +32,7 @@ func InitialMinter(inflation sdk.Dec) Minter { // which uses an inflation rate of 10%. func DefaultInitialMinter() Minter { return InitialMinter( - sdk.NewDec(initialInflation), + sdkmath.LegacyNewDec(initialInflation), ) } @@ -51,7 +51,7 @@ func (Minter) CurrentPhase(params Params, currentBlock int64) (Phase, int) { return params.GetPhaseAtStep(1), 1 } - cumulativeBlock := sdk.NewDec(0) + cumulativeBlock := sdkmath.LegacyNewDec(0) var currentStep int var found bool @@ -64,7 +64,7 @@ func (Minter) CurrentPhase(params Params, currentBlock int64) (Phase, int) { // if the current block is less than or equal to cumulative blocks // this means that we are in the i+1 step which is set in above line - if sdk.NewDec(currentBlock).LTE(cumulativeBlock) { + if sdkmath.LegacyNewDec(currentBlock).LTE(cumulativeBlock) { found = true // it is the current phase // so there is no need for further phase blocks check @@ -84,7 +84,7 @@ func (Minter) CurrentPhase(params Params, currentBlock int64) (Phase, int) { // NextPhaseProvisions returns the phase provisions based on current total // supply and inflation rate. -func (m Minter) NextPhaseProvisions(totalSupply, excludeAmount sdkmath.Int, phase Phase) sdk.Dec { +func (m Minter) NextPhaseProvisions(totalSupply, excludeAmount sdkmath.Int, phase Phase) sdkmath.LegacyDec { // calculate annual provisions as normal annualProvisions := m.Inflation.MulInt(totalSupply.Sub(excludeAmount)) @@ -98,7 +98,7 @@ func (m Minter) NextPhaseProvisions(totalSupply, excludeAmount sdkmath.Int, phas // BlockProvisions returns the provisions for a block based on the phase // provisions rate. -func (m Minter) BlockProvisions(params Params, phaseStep int) (sdk.Coin, sdk.Dec) { +func (m Minter) BlockProvisions(params Params, phaseStep int) (sdk.Coin, sdkmath.LegacyDec) { // get total blocks in this phase blocksPerPhase := params.getPhaseBlocks(phaseStep).TruncateDec() @@ -115,6 +115,6 @@ func (m Minter) BlockProvisions(params Params, phaseStep int) (sdk.Coin, sdk.Dec } // AnnualProvisions returns annual provisions for the phase. -func (m Minter) AnnualProvisions(phase Phase) sdk.Dec { +func (m Minter) AnnualProvisions(phase Phase) sdkmath.LegacyDec { return m.PhaseProvisions.Quo(phase.YearCoefficient) } diff --git a/x/mint/types/minter.pb.go b/x/mint/types/minter.pb.go index 96d27e8b..a4ce36f7 100644 --- a/x/mint/types/minter.pb.go +++ b/x/mint/types/minter.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/mint/minter.proto +// source: sgenetwork/sge/mint/minter.proto package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -27,21 +27,21 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Minter represents the minting state. type Minter struct { // inflation is the current annual inflation rate. - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation"` // phase_step is the index of phases slice + 1. PhaseStep int32 `protobuf:"varint,2,opt,name=phase_step,json=phaseStep,proto3" json:"phase_step,omitempty"` // phase_provisions is the current phase expected provisions. - PhaseProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=phase_provisions,json=phaseProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"phase_provisions" yaml:"phase_provisions"` + PhaseProvisions cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=phase_provisions,json=phaseProvisions,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"phase_provisions" yaml:"phase_provisions"` // truncated_tokens holds current truncated tokens because of Dec to Int // conversion in the minting. - TruncatedTokens github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=truncated_tokens,json=truncatedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"truncated_tokens"` + TruncatedTokens cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=truncated_tokens,json=truncatedTokens,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"truncated_tokens"` } func (m *Minter) Reset() { *m = Minter{} } func (m *Minter) String() string { return proto.CompactTextString(m) } func (*Minter) ProtoMessage() {} func (*Minter) Descriptor() ([]byte, []int) { - return fileDescriptor_d31ed0ee2430eeec, []int{0} + return fileDescriptor_a969bd1a18aad64f, []int{0} } func (m *Minter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,29 +81,30 @@ func init() { proto.RegisterType((*Minter)(nil), "sgenetwork.sge.mint.Minter") } -func init() { proto.RegisterFile("sge/mint/minter.proto", fileDescriptor_d31ed0ee2430eeec) } +func init() { proto.RegisterFile("sgenetwork/sge/mint/minter.proto", fileDescriptor_a969bd1a18aad64f) } -var fileDescriptor_d31ed0ee2430eeec = []byte{ - // 303 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x4e, 0x4f, 0xd5, - 0xcf, 0xcd, 0xcc, 0x2b, 0x01, 0x13, 0xa9, 0x45, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xc2, - 0xc5, 0xe9, 0xa9, 0x79, 0xa9, 0x25, 0xe5, 0xf9, 0x45, 0xd9, 0x7a, 0xc5, 0xe9, 0xa9, 0x7a, 0x20, - 0x49, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0xb0, 0xbc, 0x3e, 0x88, 0x05, 0x51, 0xaa, 0x74, 0x8c, - 0x89, 0x8b, 0xcd, 0x17, 0xac, 0x57, 0xc8, 0x87, 0x8b, 0x33, 0x33, 0x2f, 0x2d, 0x27, 0xb1, 0x24, - 0x33, 0x3f, 0x4f, 0x82, 0x51, 0x81, 0x51, 0x83, 0xd3, 0x49, 0xef, 0xc4, 0x3d, 0x79, 0x86, 0x5b, - 0xf7, 0xe4, 0xd5, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x93, 0xf3, - 0x8b, 0x73, 0xf3, 0x8b, 0xa1, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x49, 0x65, 0x41, 0x6a, 0xb1, - 0x9e, 0x4b, 0x6a, 0x72, 0x10, 0xc2, 0x00, 0x21, 0x59, 0x2e, 0xae, 0x82, 0x8c, 0xc4, 0xe2, 0xd4, - 0xf8, 0xe2, 0x92, 0xd4, 0x02, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x4e, 0xb0, 0x48, 0x70, - 0x49, 0x6a, 0x81, 0x50, 0x09, 0x97, 0x00, 0x44, 0xba, 0xa0, 0x28, 0xbf, 0x2c, 0xb3, 0x38, 0x33, - 0x3f, 0xaf, 0x58, 0x82, 0x19, 0x6c, 0xa7, 0x27, 0x69, 0x76, 0x7e, 0xba, 0x27, 0x2f, 0x5e, 0x99, - 0x98, 0x9b, 0x63, 0xa5, 0x84, 0x6e, 0x9e, 0x52, 0x10, 0x3f, 0x58, 0x28, 0x00, 0x2e, 0x22, 0x14, - 0xc9, 0x25, 0x50, 0x52, 0x54, 0x9a, 0x97, 0x9c, 0x58, 0x92, 0x9a, 0x12, 0x5f, 0x92, 0x9f, 0x9d, - 0x9a, 0x57, 0x2c, 0xc1, 0x42, 0x96, 0x4f, 0xf9, 0xe1, 0xe6, 0x84, 0x80, 0x8d, 0x71, 0x72, 0x3c, - 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, - 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x75, 0x24, 0x23, 0x8b, 0xd3, 0x53, - 0x75, 0xa1, 0x31, 0x03, 0x62, 0xeb, 0x57, 0x40, 0x62, 0x0f, 0x6c, 0x6e, 0x12, 0x1b, 0x38, 0x4a, - 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xc2, 0x1b, 0xc1, 0xd6, 0x01, 0x00, 0x00, +var fileDescriptor_a969bd1a18aad64f = []byte{ + // 307 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0x01, + 0x13, 0xa9, 0x45, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xc2, 0x08, 0x15, 0x7a, 0xc5, 0xe9, + 0xa9, 0x7a, 0x20, 0x49, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0xb0, 0xbc, 0x3e, 0x88, 0x05, 0x51, + 0xaa, 0xb4, 0x94, 0x89, 0x8b, 0xcd, 0x17, 0xac, 0x57, 0xc8, 0x91, 0x8b, 0x33, 0x33, 0x2f, 0x2d, + 0x27, 0xb1, 0x24, 0x33, 0x3f, 0x4f, 0x82, 0x51, 0x81, 0x51, 0x83, 0xd3, 0x49, 0xf9, 0xc4, 0x3d, + 0x79, 0x86, 0x5b, 0xf7, 0xe4, 0xa5, 0x93, 0xf3, 0x8b, 0x73, 0xf3, 0x8b, 0x8b, 0x53, 0xb2, 0xf5, + 0x32, 0xf3, 0xf5, 0x73, 0x13, 0x4b, 0x32, 0xf4, 0x7c, 0x52, 0xd3, 0x13, 0x93, 0x2b, 0x5d, 0x52, + 0x93, 0x83, 0x10, 0xba, 0x84, 0x64, 0xb9, 0xb8, 0x0a, 0x32, 0x12, 0x8b, 0x53, 0xe3, 0x8b, 0x4b, + 0x52, 0x0b, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x83, 0x38, 0xc1, 0x22, 0xc1, 0x25, 0xa9, 0x05, + 0x42, 0x99, 0x5c, 0x02, 0x10, 0xe9, 0x82, 0xa2, 0xfc, 0xb2, 0xcc, 0xe2, 0xcc, 0xfc, 0xbc, 0x62, + 0x09, 0x66, 0xb0, 0x45, 0x76, 0x44, 0x58, 0xf4, 0xe9, 0x9e, 0xbc, 0x78, 0x65, 0x62, 0x6e, 0x8e, + 0x95, 0x12, 0xba, 0x21, 0x4a, 0x41, 0xfc, 0x60, 0xa1, 0x00, 0xb8, 0x88, 0x90, 0x1f, 0x97, 0x40, + 0x49, 0x51, 0x69, 0x5e, 0x72, 0x62, 0x49, 0x6a, 0x4a, 0x7c, 0x49, 0x7e, 0x76, 0x6a, 0x5e, 0xb1, + 0x04, 0x0b, 0xf1, 0x7e, 0xe2, 0x87, 0x6b, 0x0e, 0x01, 0xeb, 0x75, 0x72, 0x3c, 0xf1, 0x48, 0x8e, + 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, + 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xf5, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, + 0xfc, 0x5c, 0x50, 0x74, 0xe8, 0x22, 0x47, 0x4d, 0x05, 0x24, 0x72, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, + 0x93, 0xd8, 0xc0, 0x21, 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x93, 0xe9, 0x58, 0x3d, 0xc0, + 0x01, 0x00, 0x00, } func (m *Minter) Marshal() (dAtA []byte, err error) { diff --git a/x/mint/types/minter_test.go b/x/mint/types/minter_test.go index 20d00a14..228332c9 100644 --- a/x/mint/types/minter_test.go +++ b/x/mint/types/minter_test.go @@ -21,36 +21,36 @@ func TestPhaseInflation(t *testing.T) { tests := []struct { phase int - expInflation sdk.Dec + expInflation sdkmath.LegacyDec }{ // phase 1 - {1, sdk.MustNewDecFromStr("0.229787234042553191")}, + {1, sdkmath.LegacyMustNewDecFromStr("0.229787234042553191")}, // phase 2 - {2, sdk.MustNewDecFromStr("0.286259541984732824")}, + {2, sdkmath.LegacyMustNewDecFromStr("0.286259541984732824")}, // phase 3 - {3, sdk.MustNewDecFromStr("0.150250417362270451")}, + {3, sdkmath.LegacyMustNewDecFromStr("0.150250417362270451")}, // phase 4 - {4, sdk.MustNewDecFromStr("0.116459627329192547")}, + {4, sdkmath.LegacyMustNewDecFromStr("0.116459627329192547")}, // phase 5 - {5, sdk.MustNewDecFromStr("0.088041085840058694")}, + {5, sdkmath.LegacyMustNewDecFromStr("0.088041085840058694")}, // phase 6 - {6, sdk.MustNewDecFromStr("0.063246661981728742")}, + {6, sdkmath.LegacyMustNewDecFromStr("0.063246661981728742")}, // phase 7 - {7, sdk.MustNewDecFromStr("0.040871934604904632")}, + {7, sdkmath.LegacyMustNewDecFromStr("0.040871934604904632")}, // phase 8 - {8, sdk.MustNewDecFromStr("0.032042723631508678")}, + {8, sdkmath.LegacyMustNewDecFromStr("0.032042723631508678")}, // phase 9 - {9, sdk.MustNewDecFromStr("0.019710906701708279")}, + {9, sdkmath.LegacyMustNewDecFromStr("0.019710906701708279")}, // phase 10 - {10, sdk.MustNewDecFromStr("0.003903708523096942")}, + {10, sdkmath.LegacyMustNewDecFromStr("0.003903708523096942")}, // end phase, inflation: 0% - {11, sdk.MustNewDecFromStr("0")}, + {11, sdkmath.LegacyMustNewDecFromStr("0")}, // end phase, inflation: 0% - {13, sdk.MustNewDecFromStr("0")}, + {13, sdkmath.LegacyMustNewDecFromStr("0")}, // end phase, inflation: 0% - {23, sdk.MustNewDecFromStr("0")}, + {23, sdkmath.LegacyMustNewDecFromStr("0")}, // end phase, inflation: 0% - {-1, sdk.MustNewDecFromStr("0")}, + {-1, sdkmath.LegacyMustNewDecFromStr("0")}, } for i, tc := range tests { inflation := params.GetPhaseAtStep(tc.phase).Inflation @@ -112,8 +112,8 @@ func TestNextPhaseAfterAppendToEndPhase(t *testing.T) { params.Phases = append( params.Phases, types.Phase{ - YearCoefficient: sdk.MustNewDecFromStr("1"), - Inflation: sdk.MustNewDecFromStr("0.032042723631508678"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("1"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.032042723631508678"), }, ) phase, _ := minter.CurrentPhase(params, 351) @@ -129,8 +129,8 @@ func TestNextPhaseAfterRelaceEndPhase(t *testing.T) { params.BlocksPerYear = 100 params.Phases = []types.Phase{ { - YearCoefficient: sdk.MustNewDecFromStr("1"), - Inflation: sdk.MustNewDecFromStr("0.00000000000000000"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("1"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.00000000000000000"), }, types.EndPhase(), } @@ -139,48 +139,48 @@ func TestNextPhaseAfterRelaceEndPhase(t *testing.T) { params.Phases = []types.Phase{ { - YearCoefficient: sdk.MustNewDecFromStr("2.5"), - Inflation: sdk.MustNewDecFromStr("0.00000000000000000"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("2.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.00000000000000000"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.229787234042553191"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.229787234042553191"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.286259541984732824"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.286259541984732824"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.150250417362270451"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.150250417362270451"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.116459627329192547"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.116459627329192547"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.088041085840058694"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.088041085840058694"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.063246661981728742"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.063246661981728742"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.040871934604904632"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.040871934604904632"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.032042723631508678"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.032042723631508678"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.019710906701708279"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.019710906701708279"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.003903708523096942"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.003903708523096942"), }, } phase, _ := minter.CurrentPhase(params, 250) @@ -189,7 +189,7 @@ func TestNextPhaseAfterRelaceEndPhase(t *testing.T) { } func TestBlockProvision(t *testing.T) { - minter := types.InitialMinter(sdk.NewDecWithPrec(1, 1)) + minter := types.InitialMinter(sdkmath.LegacyNewDecWithPrec(1, 1)) params := types.DefaultParams() tests := []struct { @@ -203,7 +203,7 @@ func TestBlockProvision(t *testing.T) { } for i, tc := range tests { - minter.PhaseProvisions = sdk.NewDec(tc.phaseProvisions) + minter.PhaseProvisions = sdkmath.LegacyNewDec(tc.phaseProvisions) provisions, _ := minter.BlockProvisions(params, 1) expProvisions := sdk.NewCoin(params.MintDenom, @@ -319,24 +319,24 @@ func TestAnnualProvisions(t *testing.T) { t.Log(minter.PhaseProvisions) annualProvisions := minter.AnnualProvisions(firstPhase) - require.Equal(t, firstPhase.Inflation.Mul(sdk.NewDec(totalSupply-excludeAmount)), annualProvisions) + require.Equal(t, firstPhase.Inflation.Mul(sdkmath.LegacyNewDec(totalSupply-excludeAmount)), annualProvisions) } // Benchmarking :) // previously using sdkmath.Int operations: // BenchmarkBlockProvision-4 5000000 220 ns/op // -// using sdk.Dec operations: (current implementation) +// using sdkmath.LegacyDec operations: (current implementation) // BenchmarkBlockProvision-4 3000000 429 ns/op func BenchmarkBlockProvision(b *testing.B) { b.ReportAllocs() - minter := types.InitialMinter(sdk.NewDecWithPrec(1, 1)) + minter := types.InitialMinter(sdkmath.LegacyNewDecWithPrec(1, 1)) params := types.DefaultParams() s1 := rand.NewSource(100) //#nosec r1 := rand.New(s1) - minter.PhaseProvisions = sdk.NewDec(r1.Int63n(1000000)) + minter.PhaseProvisions = sdkmath.LegacyNewDec(r1.Int63n(1000000)) // run the BlockProvision function b.N times for n := 0; n < b.N; n++ { @@ -361,7 +361,7 @@ func BenchmarkPhaseInflation(b *testing.B) { // BenchmarkNextPhaseProvisions-4 5000000 251 ns/op func BenchmarkNextPhaseProvisions(b *testing.B) { b.ReportAllocs() - minter := types.InitialMinter(sdk.NewDecWithPrec(1, 1)) + minter := types.InitialMinter(sdkmath.LegacyNewDecWithPrec(1, 1)) params := types.DefaultParams() totalSupply := sdkmath.NewInt(100000000000000) phase := params.GetPhaseAtStep(1) diff --git a/x/mint/types/msgs.go b/x/mint/types/msgs.go new file mode 100644 index 00000000..0e66bc57 --- /dev/null +++ b/x/mint/types/msgs.go @@ -0,0 +1,32 @@ +package types + +import ( + sdkerrors "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ sdk.Msg = &MsgUpdateParams{} + +// GetSignBytes implements the LegacyMsg interface. +func (m MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +// GetSigners returns the expected signers for a MsgUpdateParams message. +func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress { + addr, _ := sdk.AccAddressFromBech32(m.Authority) + return []sdk.AccAddress{addr} +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { + return sdkerrors.Wrap(err, "invalid authority address") + } + + if err := m.Params.Validate(); err != nil { + return err + } + + return nil +} diff --git a/x/mint/types/params.go b/x/mint/types/params.go index 2d0a546f..ce8d775f 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -59,44 +59,44 @@ var ( // DefaultPhases is the default value for inflation phases DefaultPhases = []Phase{ { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.229787234042553191"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.229787234042553191"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.286259541984732824"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.286259541984732824"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.150250417362270451"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.150250417362270451"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.116459627329192547"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.116459627329192547"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.088041085840058694"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.088041085840058694"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.063246661981728742"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.063246661981728742"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.040871934604904632"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.040871934604904632"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.032042723631508678"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.032042723631508678"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.019710906701708279"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.019710906701708279"), }, { - YearCoefficient: sdk.MustNewDecFromStr("0.5"), - Inflation: sdk.MustNewDecFromStr("0.003903708523096942"), + YearCoefficient: sdkmath.LegacyMustNewDecFromStr("0.5"), + Inflation: sdkmath.LegacyMustNewDecFromStr("0.003903708523096942"), }, } ) @@ -187,15 +187,15 @@ func (p Params) IsEndPhaseByStep(phaseStep int) bool { // NonePhase returns none phase object // none phase is the initial phase of inflation with height 1 func NonePhase() Phase { - return Phase{Inflation: sdk.MustNewDecFromStr("0"), YearCoefficient: sdk.ZeroDec()} + return Phase{Inflation: sdkmath.LegacyMustNewDecFromStr("0"), YearCoefficient: sdkmath.LegacyZeroDec()} } // EndPhase returns end phase which there is no phase item with remaining blocks func EndPhase() Phase { maxUInt64 := new(big.Int).SetUint64(math.MaxUint64) return Phase{ - Inflation: sdk.MustNewDecFromStr("0"), - YearCoefficient: sdk.NewDecFromBigInt(maxUInt64), + Inflation: sdkmath.LegacyMustNewDecFromStr("0"), + YearCoefficient: sdkmath.LegacyNewDecFromBigInt(maxUInt64), } } @@ -210,7 +210,7 @@ func IsEndPhase(phase Phase) bool { } // getPhaseBlocks returns the total blocks of a certain phase step -func (p Params) getPhaseBlocks(phaseStep int) sdk.Dec { +func (p Params) getPhaseBlocks(phaseStep int) sdkmath.LegacyDec { // get the phase year coefficient yearCoefficient := p.Phases[phaseStep-1].YearCoefficient @@ -222,7 +222,7 @@ func (p Params) getPhaseBlocks(phaseStep int) sdk.Dec { // current block = 50 // so the changing point of the phase is in block number 50.5 which is not applicable // the 0.5 provisions will be calculated in the BlockProvisions method of Minter - phaseBlocks := yearCoefficient.Mul(sdk.NewDec(p.BlocksPerYear)).TruncateDec() + phaseBlocks := yearCoefficient.Mul(sdkmath.LegacyNewDec(p.BlocksPerYear)).TruncateDec() return phaseBlocks } @@ -276,7 +276,7 @@ func validatePhases(i interface{}) error { } for _, p := range v { - if !p.YearCoefficient.GT(sdk.ZeroDec()) { + if !p.YearCoefficient.GT(sdkmath.LegacyZeroDec()) { return fmt.Errorf(ErrTextYearCoefficientMustBePositive) } if IsEndPhase(p) { diff --git a/x/mint/types/params.pb.go b/x/mint/types/params.pb.go index b2f10cda..0d20ebfb 100644 --- a/x/mint/types/params.pb.go +++ b/x/mint/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/mint/params.proto +// source: sgenetwork/sge/mint/params.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -39,7 +39,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_a4bb1a108a109550, []int{0} + return fileDescriptor_1a26370164e410ff, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -93,32 +93,32 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.mint.Params") } -func init() { proto.RegisterFile("sge/mint/params.proto", fileDescriptor_a4bb1a108a109550) } +func init() { proto.RegisterFile("sgenetwork/sge/mint/params.proto", fileDescriptor_1a26370164e410ff) } -var fileDescriptor_a4bb1a108a109550 = []byte{ - // 344 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc3, 0x40, - 0x10, 0x86, 0x93, 0xb6, 0x14, 0x1a, 0xa9, 0x42, 0x6c, 0x24, 0x04, 0x4c, 0x4a, 0x2e, 0xf6, 0xe2, - 0x06, 0x14, 0x3c, 0xf4, 0xd6, 0xe0, 0xa5, 0xb7, 0x92, 0x9b, 0x82, 0x84, 0x6d, 0x3a, 0x6c, 0x4b, - 0xbb, 0xd9, 0xb0, 0xbb, 0xc5, 0xf6, 0x2d, 0x3c, 0x0a, 0x5e, 0x7c, 0x9c, 0x1e, 0x7b, 0x14, 0x0f, - 0x41, 0xda, 0x37, 0xe8, 0x13, 0xc8, 0x66, 0x0b, 0xa2, 0x78, 0x9b, 0xfd, 0xe7, 0xff, 0xbf, 0x9d, - 0x19, 0xcb, 0x11, 0x04, 0x22, 0x3a, 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0xd2, 0x3e, - 0x0a, 0x83, 0xea, 0xdd, 0x6f, 0xbc, 0xbe, 0x07, 0x46, 0x3c, 0xd8, 0xec, 0x7c, 0x73, 0xbb, 0xf3, - 0xcd, 0xaf, 0x9d, 0x6f, 0xbe, 0xec, 0x7d, 0x63, 0xbb, 0xf7, 0x8d, 0x8f, 0xbd, 0x6f, 0x3c, 0x5e, - 0x91, 0x99, 0x9c, 0x2e, 0xc7, 0x28, 0x63, 0x34, 0x12, 0x04, 0xae, 0x8f, 0x4b, 0xa8, 0x3a, 0x5a, - 0xe9, 0x33, 0xcb, 0x75, 0x01, 0x62, 0xdc, 0xac, 0xee, 0x7c, 0xfb, 0x1d, 0x00, 0x00, 0xff, 0xff, - 0x6c, 0x98, 0x2f, 0x26, 0xc1, 0x01, 0x00, 0x00, +var fileDescriptor_1a26370164e410ff = []byte{ + // 346 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x6a, 0xf2, 0x40, + 0x14, 0xc5, 0x13, 0x15, 0xc1, 0x7c, 0xf8, 0x15, 0xd2, 0x5a, 0x42, 0xa0, 0x99, 0x90, 0x4d, 0xdd, + 0x74, 0x02, 0x2d, 0x74, 0xe1, 0xce, 0xd0, 0x8d, 0x3b, 0xc9, 0xae, 0x85, 0x12, 0xc6, 0x78, 0x89, + 0xa2, 0x93, 0x09, 0x33, 0x23, 0xd5, 0xb7, 0xe8, 0xb2, 0xd0, 0x4d, 0x1f, 0xc7, 0xa5, 0xcb, 0xd2, + 0x45, 0x28, 0xfa, 0x06, 0x3e, 0x41, 0x99, 0x8c, 0xd0, 0x3f, 0xb8, 0x9b, 0x39, 0xf7, 0x77, 0xce, + 0xcc, 0x3d, 0x96, 0x2f, 0x32, 0xc8, 0x41, 0x3e, 0x31, 0x3e, 0x0b, 0x45, 0x06, 0x21, 0x9d, 0xe6, + 0x32, 0x2c, 0x08, 0x27,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x43, 0x46, 0xd4, 0x5f, 0x6f, + 0x3d, 0x73, 0xb3, 0xf5, 0xcc, 0xcf, 0xad, 0x67, 0x3e, 0xef, 0x3c, 0x63, 0xb3, 0xf3, 0x8c, 0xf7, + 0x9d, 0x67, 0x3c, 0x5c, 0x66, 0x53, 0x39, 0x59, 0x8c, 0x70, 0xca, 0xa8, 0x2a, 0xf6, 0xea, 0x67, + 0xc9, 0x4b, 0x5d, 0xb3, 0x5c, 0x15, 0x20, 0x46, 0xcd, 0xaa, 0xe7, 0x9b, 0xaf, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x97, 0x32, 0xf7, 0x23, 0xd7, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/mint/types/params_test.go b/x/mint/types/params_test.go index 830d4e3b..4f1b40fb 100644 --- a/x/mint/types/params_test.go +++ b/x/mint/types/params_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/sge-network/sge/app/params" "github.com/sge-network/sge/x/mint/types" @@ -18,7 +17,7 @@ func TestParamsYML(t *testing.T) { MintDenom: params.DefaultBondDenom, BlocksPerYear: 10, Phases: []types.Phase{ - {Inflation: sdk.NewDec(10), YearCoefficient: sdk.NewDec(1)}, + {Inflation: sdkmath.LegacyNewDec(10), YearCoefficient: sdkmath.LegacyNewDec(1)}, }, ExcludeAmount: sdkmath.NewInt(100), } @@ -90,5 +89,5 @@ func TestNonPhase(t *testing.T) { params := types.DefaultParams() phase := params.GetPhaseAtStep(0) - require.Equal(t, sdk.NewDec(0), phase.YearCoefficient) + require.Equal(t, sdkmath.LegacyNewDec(0), phase.YearCoefficient) } diff --git a/x/mint/types/phase.pb.go b/x/mint/types/phase.pb.go index 151c38f3..132544c4 100644 --- a/x/mint/types/phase.pb.go +++ b/x/mint/types/phase.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/mint/phase.proto +// source: sgenetwork/sge/mint/phase.proto package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -27,15 +27,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Phase defines the phase parameters for the module. type Phase struct { // inflation is the current phase inflation rate. - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation" yaml:"inflation"` + Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation" yaml:"inflation"` // year_coefficient is the proportion of a complete year. - YearCoefficient github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=year_coefficient,json=yearCoefficient,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"year_coefficient" yaml:"year_coefficient"` + YearCoefficient cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=year_coefficient,json=yearCoefficient,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"year_coefficient" yaml:"year_coefficient"` } func (m *Phase) Reset() { *m = Phase{} } func (*Phase) ProtoMessage() {} func (*Phase) Descriptor() ([]byte, []int) { - return fileDescriptor_7fc2241b526dba74, []int{0} + return fileDescriptor_a4ef2371d48b7ae6, []int{0} } func (m *Phase) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -68,27 +68,27 @@ func init() { proto.RegisterType((*Phase)(nil), "sgenetwork.sge.mint.Phase") } -func init() { proto.RegisterFile("sge/mint/phase.proto", fileDescriptor_7fc2241b526dba74) } +func init() { proto.RegisterFile("sgenetwork/sge/mint/phase.proto", fileDescriptor_a4ef2371d48b7ae6) } -var fileDescriptor_7fc2241b526dba74 = []byte{ - // 263 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x29, 0x4e, 0x4f, 0xd5, - 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0xc8, 0x48, 0x2c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x12, 0x2e, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, - 0xd5, 0x03, 0x29, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, 0x83, 0x58, 0x10, 0xa5, - 0x4a, 0x4f, 0x19, 0xb9, 0x58, 0x03, 0x40, 0x5a, 0x85, 0x12, 0xb8, 0x38, 0x33, 0xf3, 0xd2, 0x72, - 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x9c, 0x4e, 0xdc, 0x93, - 0x67, 0xb8, 0x75, 0x4f, 0x5e, 0x2d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, - 0x3f, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0x18, 0x4a, 0xe9, 0x16, 0xa7, 0x64, 0xeb, 0x97, 0x54, 0x16, - 0xa4, 0x16, 0xeb, 0xb9, 0xa4, 0x26, 0x7f, 0xba, 0x27, 0x2f, 0x50, 0x99, 0x98, 0x9b, 0x63, 0xa5, - 0x04, 0x37, 0x48, 0x29, 0x08, 0x61, 0xa8, 0x50, 0x09, 0x97, 0x40, 0x65, 0x6a, 0x62, 0x51, 0x7c, - 0x72, 0x7e, 0x6a, 0x5a, 0x5a, 0x66, 0x72, 0x66, 0x6a, 0x5e, 0x89, 0x04, 0x13, 0xd8, 0x22, 0x4f, - 0x92, 0x2d, 0x12, 0x87, 0x58, 0x84, 0x6e, 0x9e, 0x52, 0x10, 0x3f, 0x48, 0xc8, 0x19, 0x21, 0x62, - 0xc5, 0x32, 0x63, 0x81, 0x3c, 0x83, 0x93, 0xe3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, - 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, - 0x31, 0x44, 0xa9, 0x23, 0xd9, 0x59, 0x9c, 0x9e, 0xaa, 0x0b, 0x0d, 0x38, 0x10, 0x5b, 0xbf, 0x02, - 0x12, 0xb6, 0x60, 0x8b, 0x93, 0xd8, 0xc0, 0x21, 0x66, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x78, - 0xe0, 0xa9, 0xf5, 0x74, 0x01, 0x00, 0x00, +var fileDescriptor_a4ef2371d48b7ae6 = []byte{ + // 268 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2f, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, + 0x2f, 0xc8, 0x48, 0x2c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x46, 0x28, 0xd0, + 0x2b, 0x4e, 0x4f, 0xd5, 0x03, 0x29, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, 0x83, + 0x58, 0x10, 0xa5, 0x4a, 0xe7, 0x19, 0xb9, 0x58, 0x03, 0x40, 0x5a, 0x85, 0x42, 0xb9, 0x38, 0x33, + 0xf3, 0xd2, 0x72, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0xcc, + 0x4f, 0xdc, 0x93, 0x67, 0xb8, 0x75, 0x4f, 0x5e, 0x3a, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0xb8, 0x38, + 0x25, 0x5b, 0x2f, 0x33, 0x5f, 0x3f, 0x37, 0xb1, 0x24, 0x43, 0xcf, 0x27, 0x35, 0x3d, 0x31, 0xb9, + 0xd2, 0x25, 0x35, 0xf9, 0xd3, 0x3d, 0x79, 0x81, 0xca, 0xc4, 0xdc, 0x1c, 0x2b, 0x25, 0xb8, 0x6e, + 0xa5, 0x20, 0x84, 0x49, 0x42, 0x99, 0x5c, 0x02, 0x95, 0xa9, 0x89, 0x45, 0xf1, 0xc9, 0xf9, 0xa9, + 0x69, 0x69, 0x99, 0xc9, 0x99, 0xa9, 0x79, 0x25, 0x12, 0x4c, 0x60, 0xd3, 0xed, 0x88, 0x33, 0x5d, + 0x1c, 0x62, 0x3a, 0xba, 0x21, 0x4a, 0x41, 0xfc, 0x20, 0x21, 0x67, 0x84, 0x88, 0x15, 0xcb, 0x8c, + 0x05, 0xf2, 0x0c, 0x4e, 0x8e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, + 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, + 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0x0b, 0x0a, 0x37, 0x5d, 0xe4, 0x30, + 0xac, 0x80, 0x84, 0x62, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x6c, 0x8c, 0x01, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x9e, 0x0e, 0xbc, 0xcd, 0x69, 0x01, 0x00, 0x00, } func (m *Phase) Marshal() (dAtA []byte, err error) { diff --git a/x/mint/types/phase_test.go b/x/mint/types/phase_test.go index d7aee158..9d3fcd49 100644 --- a/x/mint/types/phase_test.go +++ b/x/mint/types/phase_test.go @@ -3,17 +3,16 @@ package types_test import ( "testing" + sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sge-network/sge/x/mint/types" ) func TestPhaseYML(t *testing.T) { phase := types.Phase{ - Inflation: sdk.NewDec(10), - YearCoefficient: sdk.NewDec(1), + Inflation: sdkmath.LegacyNewDec(10), + YearCoefficient: sdkmath.LegacyNewDec(1), } ymlStr := phase.String() diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go index d5b8ca5e..bec0ca98 100644 --- a/x/mint/types/query.pb.go +++ b/x/mint/types/query.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/mint/query.proto +// source: sgenetwork/sge/mint/query.proto package types import ( context "context" + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -39,7 +39,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{0} + return fileDescriptor_ee35ae03c8ab12c8, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{1} + return fileDescriptor_ee35ae03c8ab12c8, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -124,7 +124,7 @@ func (m *QueryInflationRequest) Reset() { *m = QueryInflationRequest{} } func (m *QueryInflationRequest) String() string { return proto.CompactTextString(m) } func (*QueryInflationRequest) ProtoMessage() {} func (*QueryInflationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{2} + return fileDescriptor_ee35ae03c8ab12c8, []int{2} } func (m *QueryInflationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,14 +158,14 @@ var xxx_messageInfo_QueryInflationRequest proto.InternalMessageInfo // Query/Inflation RPC method. type QueryInflationResponse struct { // inflation is the current minting inflation value. - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation"` } func (m *QueryInflationResponse) Reset() { *m = QueryInflationResponse{} } func (m *QueryInflationResponse) String() string { return proto.CompactTextString(m) } func (*QueryInflationResponse) ProtoMessage() {} func (*QueryInflationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{3} + return fileDescriptor_ee35ae03c8ab12c8, []int{3} } func (m *QueryInflationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -203,7 +203,7 @@ func (m *QueryPhaseStepRequest) Reset() { *m = QueryPhaseStepRequest{} } func (m *QueryPhaseStepRequest) String() string { return proto.CompactTextString(m) } func (*QueryPhaseStepRequest) ProtoMessage() {} func (*QueryPhaseStepRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{4} + return fileDescriptor_ee35ae03c8ab12c8, []int{4} } func (m *QueryPhaseStepRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -244,7 +244,7 @@ func (m *QueryPhaseStepResponse) Reset() { *m = QueryPhaseStepResponse{} func (m *QueryPhaseStepResponse) String() string { return proto.CompactTextString(m) } func (*QueryPhaseStepResponse) ProtoMessage() {} func (*QueryPhaseStepResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{5} + return fileDescriptor_ee35ae03c8ab12c8, []int{5} } func (m *QueryPhaseStepResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -289,7 +289,7 @@ func (m *QueryPhaseProvisionsRequest) Reset() { *m = QueryPhaseProvision func (m *QueryPhaseProvisionsRequest) String() string { return proto.CompactTextString(m) } func (*QueryPhaseProvisionsRequest) ProtoMessage() {} func (*QueryPhaseProvisionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{6} + return fileDescriptor_ee35ae03c8ab12c8, []int{6} } func (m *QueryPhaseProvisionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -322,14 +322,14 @@ var xxx_messageInfo_QueryPhaseProvisionsRequest proto.InternalMessageInfo // Query/PhaseProvisions RPC method. type QueryPhaseProvisionsResponse struct { // phase_provisions is the current minting phase provisions value. - PhaseProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=phase_provisions,json=phaseProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"phase_provisions"` + PhaseProvisions cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=phase_provisions,json=phaseProvisions,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"phase_provisions"` } func (m *QueryPhaseProvisionsResponse) Reset() { *m = QueryPhaseProvisionsResponse{} } func (m *QueryPhaseProvisionsResponse) String() string { return proto.CompactTextString(m) } func (*QueryPhaseProvisionsResponse) ProtoMessage() {} func (*QueryPhaseProvisionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{7} + return fileDescriptor_ee35ae03c8ab12c8, []int{7} } func (m *QueryPhaseProvisionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -368,7 +368,7 @@ func (m *QueryEndPhaseStatusRequest) Reset() { *m = QueryEndPhaseStatusR func (m *QueryEndPhaseStatusRequest) String() string { return proto.CompactTextString(m) } func (*QueryEndPhaseStatusRequest) ProtoMessage() {} func (*QueryEndPhaseStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{8} + return fileDescriptor_ee35ae03c8ab12c8, []int{8} } func (m *QueryEndPhaseStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -410,7 +410,7 @@ func (m *QueryEndPhaseStatusResponse) Reset() { *m = QueryEndPhaseStatus func (m *QueryEndPhaseStatusResponse) String() string { return proto.CompactTextString(m) } func (*QueryEndPhaseStatusResponse) ProtoMessage() {} func (*QueryEndPhaseStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_448e6714a1bb8862, []int{9} + return fileDescriptor_ee35ae03c8ab12c8, []int{9} } func (m *QueryEndPhaseStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -459,47 +459,47 @@ func init() { proto.RegisterType((*QueryEndPhaseStatusResponse)(nil), "sgenetwork.sge.mint.QueryEndPhaseStatusResponse") } -func init() { proto.RegisterFile("sge/mint/query.proto", fileDescriptor_448e6714a1bb8862) } - -var fileDescriptor_448e6714a1bb8862 = []byte{ - // 579 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x6f, 0x12, 0x41, - 0x18, 0xc6, 0x59, 0x23, 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a, 0x1e, 0x66, 0xf3, 0x65, 0xee, 0x2c, 0x1e, 0x0c, 0x69, 0xec, 0xb5, 0x8f, 0xdf, 0x7f, - 0x7f, 0xb9, 0x85, 0xf1, 0x32, 0x49, 0xe4, 0x17, 0x7f, 0x32, 0x50, 0x3e, 0x0e, 0x0d, 0x7e, 0x34, - 0x5f, 0x31, 0x19, 0x39, 0xf3, 0xf1, 0x8d, 0x66, 0x35, 0x40, 0x19, 0x00, 0xb6, 0xb0, 0x15, 0x5d, - 0x01, 0x30, 0x9c, 0xd5, 0xda, 0x54, 0xb9, 0x35, 0x12, 0xe7, 0x0b, 0x70, 0xe2, 0x08, 0x5d, 0x87, - 0x93, 0x0c, 0xe0, 0x75, 0x38, 0x33, 0x99, 0x5c, 0x80, 0x03, 0xd7, 0x15, 0xa4, 0x15, 0x7f, 0x33, - 0x50, 0x21, 0x91, 0x3c, 0xbc, 0xbb, 0xc0, 0x68, 0x26, 0xc3, 0x66, 0xed, 0x1f, 0x36, 0x34, 0x60, - 0x15, 0x00, 0x2b, 0x78, 0x7b, 0x3e, 0xe0, 0x44, 0xe2, 0xf1, 0x57, 0x03, 0xdd, 0x9b, 0x0e, 0x22, - 0x26, 0xf3, 0x4d, 0x53, 0x03, 0x6d, 0xee, 0xde, 0x7c, 0x41, 0x43, 0x3e, 0x01, 0xc8, 0x32, 0x7e, - 0x98, 0x0a, 0x49, 0x59, 0x37, 0x7a, 0xf7, 0xc1, 0x56, 0xfd, 0xc5, 0xf9, 0xc8, 0x32, 0x2e, 0x46, - 0x96, 0xf1, 0x6b, 0x64, 0x19, 0x9f, 0xc7, 0x56, 0xe6, 0x62, 0x6c, 0x65, 0x7e, 0x8c, 0xad, 0xcc, - 0xbb, 0xca, 0xc4, 0x0b, 0x95, 0x1e, 0xad, 0x6a, 0x08, 0xc8, 0xea, 0x87, 0x50, 0x14, 0x9e, 0x69, - 0x3b, 0x07, 0xff, 0xb6, 0x4f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x1c, 0x23, 0x9a, 0xe5, - 0x05, 0x00, 0x00, +func init() { proto.RegisterFile("sgenetwork/sge/mint/query.proto", fileDescriptor_ee35ae03c8ab12c8) } + +var fileDescriptor_ee35ae03c8ab12c8 = []byte{ + // 585 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x41, 0x6f, 0x12, 0x4d, + 0x1c, 0xc6, 0xd9, 0x37, 0x2f, 0x44, 0xc6, 0x46, 0x9a, 0x69, 0xd5, 0x66, 0xa1, 0x0b, 0x59, 0x6d, + 0x69, 0xd4, 0xee, 0x96, 0x7a, 0x30, 0x1e, 0x4b, 0xea, 0xa1, 0x89, 0x31, 0x88, 0x37, 0x3d, 0x90, + 0x01, 0xc6, 0x65, 0xd2, 0x32, 0x33, 0x65, 0x66, 0xab, 0x5c, 0x3d, 0x7b, 0x30, 0xf1, 0x13, 0x78, + 0xf0, 0xbb, 0xf4, 0xd8, 0xc4, 0x8b, 0xf1, 0xd0, 0x18, 0xf0, 0xe0, 0xc7, 0x30, 0x3b, 0x3b, 0xbb, + 0xc0, 0xb2, 0x94, 0xf6, 0x46, 0xe6, 0xff, 0x7f, 0x9e, 0xe7, 0xb7, 0xcc, 0xb3, 0x0b, 0xca, 0xc2, + 0xc3, 0x14, 0xcb, 0x0f, 0x6c, 0x70, 0xec, 0x0a, 0x0f, 0xbb, 0x7d, 0x42, 0xa5, 0x7b, 0xea, 0xe3, + 0xc1, 0xd0, 0xe1, 0x03, 0x26, 0x19, 0x5c, 0x9b, 0x2c, 0x38, 0xc2, 0xc3, 0x4e, 0xb0, 0x60, 0xae, + 0x7b, 0xcc, 0x63, 0x6a, 0xee, 0x06, 0xbf, 0xc2, 0x55, 0xb3, 0xe4, 0x31, 0xe6, 0x9d, 0x60, 0x17, + 0x71, 0xe2, 0x22, 0x4a, 0x99, 0x44, 0x92, 0x30, 0x2a, 0xf4, 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0xcb, 0x1e, 0xa8, 0xea, 0x07, 0xe7, 0x23, 0xcb, 0xb8, 0x18, + 0x59, 0xc6, 0xef, 0x91, 0x65, 0x7c, 0x19, 0x5b, 0x99, 0x8b, 0xb1, 0x95, 0xf9, 0x39, 0xb6, 0x32, + 0x6f, 0xab, 0x1e, 0x91, 0x3d, 0xbf, 0xed, 0x74, 0x58, 0x3f, 0xe8, 0xe7, 0xee, 0xf4, 0x57, 0xf5, + 0x63, 0x68, 0x2a, 0x87, 0x1c, 0x8b, 0x76, 0x4e, 0x7d, 0x57, 0x9f, 0xfe, 0x0b, 0x00, 0x00, 0xff, + 0xff, 0xcd, 0x1b, 0xcf, 0xa5, 0xe5, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -733,7 +733,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/mint/query.proto", + Metadata: "sgenetwork/sge/mint/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/mint/types/query.pb.gw.go b/x/mint/types/query.pb.gw.go index ce3ff122..33bc62a8 100644 --- a/x/mint/types/query.pb.gw.go +++ b/x/mint/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/mint/query.proto +// source: sgenetwork/sge/mint/query.proto /* Package types is a reverse proxy. diff --git a/x/mint/types/tx.pb.go b/x/mint/types/tx.pb.go index b9a9d907..7e829349 100644 --- a/x/mint/types/tx.pb.go +++ b/x/mint/types/tx.pb.go @@ -1,24 +1,29 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/mint/tx.proto +// source: sgenetwork/sge/mint/tx.proto package types import ( context "context" fmt "fmt" - math "math" - - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -26,25 +31,142 @@ var ( // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -func init() { proto.RegisterFile("sge/mint/tx.proto", fileDescriptor_099d347a2b7c5fa8) } +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateParams struct { + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/mint parameters to update. + // + // NOTE: All parameters must be supplied. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_e427455b4e24bcf3, []int{0} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +func (m *MsgUpdateParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateParams) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e427455b4e24bcf3, []int{1} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo -var fileDescriptor_099d347a2b7c5fa8 = []byte{ - // 126 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x4e, 0x4c, 0x4c, - 0x4f, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x12, 0x01, 0x0b, 0x96, 0xa4, 0x26, 0x67, 0xe8, 0x81, 0x59, 0x7a, 0x20, 0x69, 0x23, 0x56, 0x2e, - 0x66, 0xdf, 0xe2, 0x74, 0x27, 0xa7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, - 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, - 0xd2, 0x48, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0xeb, 0xd3, 0x05, - 0x19, 0x01, 0x61, 0xea, 0x57, 0x40, 0xed, 0xa8, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xdb, 0x63, - 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x33, 0x8f, 0xe3, 0x7e, 0x00, 0x00, 0x00, +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "sgenetwork.sge.mint.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "sgenetwork.sge.mint.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("sgenetwork/sge/mint/tx.proto", fileDescriptor_e427455b4e24bcf3) } + +var fileDescriptor_e427455b4e24bcf3 = []byte{ + // 347 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, + 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x46, 0xc8, 0xea, 0x15, 0xa7, 0xa7, + 0xea, 0x81, 0x64, 0xa5, 0xc4, 0x93, 0xf3, 0x8b, 0x73, 0xf3, 0x8b, 0xf5, 0x73, 0x8b, 0xd3, 0xf5, + 0xcb, 0x0c, 0x41, 0x14, 0x44, 0xb5, 0x94, 0x60, 0x62, 0x6e, 0x66, 0x5e, 0xbe, 0x3e, 0x98, 0x84, + 0x0a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x54, 0x54, 0x12, 0x62, 0x42, + 0x3c, 0x44, 0x02, 0xc2, 0x81, 0x4a, 0x29, 0x60, 0x73, 0x4f, 0x41, 0x62, 0x51, 0x62, 0x2e, 0x54, + 0x85, 0xd2, 0x0e, 0x46, 0x2e, 0x7e, 0xdf, 0xe2, 0xf4, 0xd0, 0x82, 0x94, 0xc4, 0x92, 0xd4, 0x00, + 0xb0, 0x8c, 0x90, 0x19, 0x17, 0x67, 0x62, 0x69, 0x49, 0x46, 0x7e, 0x51, 0x66, 0x49, 0xa5, 0x04, + 0xa3, 0x02, 0xa3, 0x06, 0xa7, 0x93, 0xc4, 0xa5, 0x2d, 0xba, 0x22, 0x50, 0xa3, 0x1d, 0x53, 0x52, + 0x8a, 0x52, 0x8b, 0x8b, 0x83, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x83, 0x10, 0x4a, 0x85, 0xec, 0xb8, + 0xd8, 0x20, 0x66, 0x4b, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x1b, 0x49, 0xeb, 0x61, 0xf1, 0xb0, 0x1e, + 0xc4, 0x12, 0x27, 0xce, 0x13, 0xf7, 0xe4, 0x19, 0x56, 0x3c, 0xdf, 0xa0, 0xc5, 0x18, 0x04, 0xd5, + 0x65, 0xa5, 0xdb, 0xf4, 0x7c, 0x83, 0x16, 0xc2, 0xbc, 0xae, 0xe7, 0x1b, 0xb4, 0xa4, 0x40, 0xae, + 0xae, 0x80, 0xb8, 0x1b, 0xcd, 0x99, 0x4a, 0x92, 0x5c, 0xe2, 0x68, 0x42, 0x41, 0xa9, 0xc5, 0x05, + 0xf9, 0x79, 0xc5, 0xa9, 0x46, 0x05, 0x5c, 0xcc, 0xbe, 0xc5, 0xe9, 0x42, 0x49, 0x5c, 0x3c, 0x28, + 0x1e, 0x53, 0xc1, 0xea, 0x20, 0x34, 0x43, 0xa4, 0x74, 0x88, 0x51, 0x05, 0xb3, 0x4a, 0x8a, 0xb5, + 0x01, 0xe4, 0x07, 0x27, 0xc7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, + 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, + 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0x05, 0xc5, 0x81, 0x2e, 0x72, 0x7c, + 0x40, 0x7d, 0x56, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x8e, 0x11, 0x63, 0x40, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xfa, 0xbf, 0x3b, 0x92, 0x45, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ grpc.ClientConn -) +var _ context.Context +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. @@ -53,7 +175,13 @@ const _ = grpc.SupportPackageIsVersion4 // MsgClient is the client API for Msg service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface{} +type MsgClient interface { + // UpdateParams defines a governance operation for updating the x/mint module + // parameters. The authority is defaults to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} type msgClient struct { cc grpc1.ClientConn @@ -63,20 +191,417 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { return &msgClient{cc} } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/sgenetwork.sge.mint.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. -type MsgServer interface{} +type MsgServer interface { + // UpdateParams defines a governance operation for updating the x/mint module + // parameters. The authority is defaults to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) +} // UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct{} +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sgenetwork.sge.mint.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "sgetech.sge.mint.Msg", + ServiceName: "sgenetwork.sge.mint.Msg", HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "sge/mint/tx.proto", + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "sgenetwork/sge/mint/tx.proto", +} + +func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/orderbook/client/cli/query_bet_test.go b/x/orderbook/client/cli/query_bet_test.go index 13f835da..6bd4db73 100644 --- a/x/orderbook/client/cli/query_bet_test.go +++ b/x/orderbook/client/cli/query_bet_test.go @@ -8,8 +8,7 @@ import ( "github.com/spf13/cast" "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/sge-network/sge/testutil/network" diff --git a/x/orderbook/client/cli/query_exposure_odds_test.go b/x/orderbook/client/cli/query_exposure_odds_test.go index 911b750e..bba5b5ec 100644 --- a/x/orderbook/client/cli/query_exposure_odds_test.go +++ b/x/orderbook/client/cli/query_exposure_odds_test.go @@ -10,8 +10,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" diff --git a/x/orderbook/client/cli/query_exposure_participation_test.go b/x/orderbook/client/cli/query_exposure_participation_test.go index 4b9b9917..1e96d39b 100644 --- a/x/orderbook/client/cli/query_exposure_participation_test.go +++ b/x/orderbook/client/cli/query_exposure_participation_test.go @@ -8,9 +8,8 @@ import ( "github.com/spf13/cast" "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - sdkmath "cosmossdk.io/math" + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" diff --git a/x/orderbook/client/cli/query_orderbook_test.go b/x/orderbook/client/cli/query_orderbook_test.go index 44b2bc63..2095bd33 100644 --- a/x/orderbook/client/cli/query_orderbook_test.go +++ b/x/orderbook/client/cli/query_orderbook_test.go @@ -10,13 +10,12 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" + "github.com/sge-network/sge/testutil/network" "github.com/sge-network/sge/testutil/nullify" - "github.com/sge-network/sge/x/orderbook/client/cli" "github.com/sge-network/sge/x/orderbook/types" ) diff --git a/x/orderbook/client/cli/query_participation_test.go b/x/orderbook/client/cli/query_participation_test.go index 376f8f2d..a9fbfa20 100644 --- a/x/orderbook/client/cli/query_participation_test.go +++ b/x/orderbook/client/cli/query_participation_test.go @@ -9,9 +9,8 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - tmcli "github.com/tendermint/tendermint/libs/cli" - sdkmath "cosmossdk.io/math" + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" diff --git a/x/orderbook/keeper/bet_settle_test.go b/x/orderbook/keeper/bet_settle_test.go index 9f2efa3b..6bfefdae 100644 --- a/x/orderbook/keeper/bet_settle_test.go +++ b/x/orderbook/keeper/bet_settle_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "testing" + sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" @@ -19,7 +20,7 @@ func TestBetSettlement(t *testing.T) { func (ts *testBetSuite) settleBetsAndTest( bets []bettypes.Bet, - winner1PayoutProfit, winner2PayoutProfit sdk.Dec, + winner1PayoutProfit, winner2PayoutProfit sdkmath.LegacyDec, ) { winner1BalAfterWager := ts.tApp.BankKeeper.GetBalance( ts.ctx, diff --git a/x/orderbook/keeper/bet_wager.go b/x/orderbook/keeper/bet_wager.go index a287e83f..48c82a45 100644 --- a/x/orderbook/keeper/bet_wager.go +++ b/x/orderbook/keeper/bet_wager.go @@ -14,9 +14,9 @@ import ( func (k Keeper) ProcessWager( ctx sdk.Context, betUID, bookUID, oddsUID string, - maxLossMultiplier sdk.Dec, + maxLossMultiplier sdkmath.LegacyDec, betAmount sdkmath.Int, - payoutProfit sdk.Dec, + payoutProfit sdkmath.LegacyDec, bettorAddress sdk.AccAddress, betFee sdkmath.Int, oddsVal string, betID uint64, @@ -83,8 +83,8 @@ func (k Keeper) fulfillBetByParticipationQueue( fInfo.updatedfulfillmentQueue = fulfillmentQueue // the decimal amount that is being lost in the bet amount calculation from payout profit - truncatedBetAmount := sdk.NewDec(0) - requeThreshold := sdk.NewIntFromUint64(k.GetRequeueThreshold(ctx)) + truncatedBetAmount := sdkmath.LegacyNewDec(0) + requeThreshold := sdkmath.NewIntFromUint64(k.GetRequeueThreshold(ctx)) // continue until updatedFulfillmentQueue gets empty for fInfo.hasUnfulfilledQueueItem() { var err error @@ -102,7 +102,7 @@ func (k Keeper) fulfillBetByParticipationQueue( var betAmountToFulfill sdkmath.Int betAmountToFulfill, truncatedBetAmount, err = bettypes.CalculateBetAmountInt( fInfo.oddsVal, - sdk.NewDecFromInt(fInfo.inProcessItem.availableLiquidity), + sdkmath.LegacyNewDecFromInt(fInfo.inProcessItem.availableLiquidity), truncatedBetAmount, ) if err != nil { @@ -167,12 +167,12 @@ func (k Keeper) fulfillBetByParticipationQueue( func (k Keeper) initFulfillmentInfo( ctx sdk.Context, betAmount sdkmath.Int, - payoutProfit sdk.Dec, + payoutProfit sdkmath.LegacyDec, betUID string, betID uint64, oddsUID string, oddsVal string, - maxLossMultiplier sdk.Dec, + maxLossMultiplier sdkmath.LegacyDec, book *types.OrderBook, odds map[string]*bettypes.BetOddsCompact, oddUIDS []string, @@ -306,7 +306,7 @@ func (k Keeper) fulfill( // subtract the payout profit that is fulfilled from the initial payout profit // to prevent being calculated multiple times - fInfo.payoutProfit = fInfo.payoutProfit.Sub(sdk.NewDecFromInt(payoutProfitToFulfill)) + fInfo.payoutProfit = fInfo.payoutProfit.Sub(sdkmath.LegacyNewDecFromInt(payoutProfitToFulfill)) // store the bet pair in the state participationBetPair := types.NewParticipationBetPair( @@ -418,9 +418,9 @@ type fulfillmentInfo struct { betID uint64 oddsUID string oddsVal string - maxLossMultiplier sdk.Dec + maxLossMultiplier sdkmath.LegacyDec betAmount sdkmath.Int - payoutProfit sdk.Dec + payoutProfit sdkmath.LegacyDec fulfilledBetAmount sdkmath.Int fulfillmentQueue []uint64 @@ -488,12 +488,12 @@ func (fInfo *fulfillmentInfo) hasUnfulfilledQueueItem() bool { func (fInfo *fulfillmentInfo) IsFulfilled() bool { // if the remaining payout is less than 1.00, means that the decimal part will be ignored - return fInfo.payoutProfit.LT(sdk.OneDec()) || len(fInfo.fulfillmentQueue) == 0 + return fInfo.payoutProfit.LT(sdkmath.LegacyOneDec()) || len(fInfo.fulfillmentQueue) == 0 } func (fInfo *fulfillmentInfo) NoMoreLiquidityAvailable() bool { // if the remaining payout is less than 1.00, means that the decimal part will be ignored - return fInfo.payoutProfit.GTE(sdk.OneDec()) + return fInfo.payoutProfit.GTE(sdkmath.LegacyOneDec()) } func (fInfo *fulfillmentInfo) notEnoughLiquidityAvailable() bool { @@ -526,14 +526,14 @@ func (fItem *fulfillmentItem) setFulfilledSecondary(sItem *fulfillmentItem) { fItem.participation.ExposuresNotFilled-- } -func (fItem *fulfillmentItem) setAvailableLiquidity(maxLossMultiplier sdk.Dec) { +func (fItem *fulfillmentItem) setAvailableLiquidity(maxLossMultiplier sdkmath.LegacyDec) { fItem.availableLiquidity = fItem.calcAvailableLiquidity(maxLossMultiplier) } -func (fItem *fulfillmentItem) calcAvailableLiquidity(maxLossMultiplier sdk.Dec) sdkmath.Int { +func (fItem *fulfillmentItem) calcAvailableLiquidity(maxLossMultiplier sdkmath.LegacyDec) sdkmath.Int { return maxLossMultiplier. MulInt(fItem.participation.CurrentRoundLiquidity). - Sub(sdk.NewDecFromInt(fItem.participationExposure.Exposure)).TruncateInt() + Sub(sdkmath.LegacyNewDecFromInt(fItem.participationExposure.Exposure)).TruncateInt() } func (fItem *fulfillmentItem) allExposureFulfilled() bool { diff --git a/x/orderbook/keeper/bet_wager_test.go b/x/orderbook/keeper/bet_wager_test.go index 68b6d80d..d2c0bacc 100644 --- a/x/orderbook/keeper/bet_wager_test.go +++ b/x/orderbook/keeper/bet_wager_test.go @@ -77,7 +77,7 @@ func newTestBetSuite(t *testing.T) testBetSuite { return testBetSuite{t, k, ctx, *tApp, betFee, market, deposits, participations} } -func (ts *testBetSuite) placeBetsAndTest() ([]bettypes.Bet, sdk.Dec, sdk.Dec) { +func (ts *testBetSuite) placeBetsAndTest() ([]bettypes.Bet, sdkmath.LegacyDec, sdkmath.LegacyDec) { ts.tApp.MarketKeeper.SetMarket(ts.ctx, ts.market) err := ts.k.InitiateOrderBook(ts.ctx, ts.market.UID, []string{ @@ -167,7 +167,7 @@ func (ts *testBetSuite) placeBetsAndTest() ([]bettypes.Bet, sdk.Dec, sdk.Dec) { betOdds := make(map[string]*bettypes.BetOddsCompact) var oddUIDS []string for _, odd := range ts.market.Odds { - betOdds[odd.UID] = &bettypes.BetOddsCompact{UID: odd.UID, MaxLossMultiplier: sdk.MustNewDecFromStr("0.3")} + betOdds[odd.UID] = &bettypes.BetOddsCompact{UID: odd.UID, MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.3")} oddUIDS = append(oddUIDS, odd.UID) } @@ -309,7 +309,7 @@ func (ts *testBetSuite) placeTestBet( expErr error, odds map[string]*bettypes.BetOddsCompact, oddUIDS []string, -) (bettypes.Bet, sdk.Dec, []*bettypes.BetFulfillment) { +) (bettypes.Bet, sdkmath.LegacyDec, []*bettypes.BetFulfillment) { bet := bettypes.Bet{ UID: uuid.NewString(), MarketUID: marketUID, @@ -320,7 +320,7 @@ func (ts *testBetSuite) placeTestBet( Status: bettypes.Bet_STATUS_PENDING, Creator: bettorAddr.String(), CreatedAt: cast.ToInt64(ts.ctx.BlockTime().Unix()), - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), } payoutProfit, err := bettypes.CalculatePayoutProfit(bet.OddsValue, bet.Amount) @@ -371,7 +371,7 @@ func newTestBetSuiteForLargeNumbers(t *testing.T) testBetSuite { betFee := sdkmath.NewInt(10) params := tApp.HouseKeeper.GetParams(ctx) - params.HouseParticipationFee = sdk.NewDec(0) + params.HouseParticipationFee = sdkmath.LegacyNewDec(0) tApp.HouseKeeper.SetParams(ctx, params) marketUID := uuid.NewString() @@ -443,13 +443,13 @@ func (ts *testBetSuite) bulkDepositPlaceBetsAndTest() { require.True(ts.t, found) } - multipliers := []sdk.Dec{ - sdk.MustNewDecFromStr("0.8649932157"), - sdk.MustNewDecFromStr("0.8658575751"), - sdk.MustNewDecFromStr("0.9368906369"), - sdk.MustNewDecFromStr("0.81411403723"), - sdk.MustNewDecFromStr("1.00"), - sdk.MustNewDecFromStr("0.92010393313"), + multipliers := []sdkmath.LegacyDec{ + sdkmath.LegacyMustNewDecFromStr("0.8649932157"), + sdkmath.LegacyMustNewDecFromStr("0.8658575751"), + sdkmath.LegacyMustNewDecFromStr("0.9368906369"), + sdkmath.LegacyMustNewDecFromStr("0.81411403723"), + sdkmath.LegacyMustNewDecFromStr("1.00"), + sdkmath.LegacyMustNewDecFromStr("0.92010393313"), } betOdds := make(map[string]*bettypes.BetOddsCompact) var oddUIDS []string diff --git a/x/orderbook/keeper/keeper.go b/x/orderbook/keeper/keeper.go index 7139353f..f0072fb1 100644 --- a/x/orderbook/keeper/keeper.go +++ b/x/orderbook/keeper/keeper.go @@ -3,8 +3,7 @@ package keeper import ( "fmt" - "github.com/tendermint/tendermint/libs/log" - + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/orderbook/module.go b/x/orderbook/module.go index d13242bb..22f27183 100644 --- a/x/orderbook/module.go +++ b/x/orderbook/module.go @@ -5,28 +5,21 @@ import ( "encoding/json" "fmt" - "github.com/gorilla/mux" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - abci "github.com/tendermint/tendermint/abci/types" - + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/gorilla/mux" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" "github.com/sge-network/sge/x/orderbook/client/cli" "github.com/sge-network/sge/x/orderbook/keeper" "github.com/sge-network/sge/x/orderbook/types" ) -var ( - _ module.AppModule = AppModule{} - _ module.AppModuleBasic = AppModuleBasic{} -) - // ---------------------------------------------------------------------------- // AppModuleBasic // ---------------------------------------------------------------------------- @@ -105,17 +98,9 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { // RegisterInvariants registers the orderbook module invariants. func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} -// Route returns the message routing key for the orderbook module. -func (AppModule) Route() sdk.Route { return sdk.Route{} } - // QuerierRoute returns the orderbook module's querier route name. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the orderbook module sdk.Querier. -func (AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} - // RegisterServices registers a GRPC query service to respond to the module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterQueryServer(cfg.QueryServer(), am.keeper) diff --git a/x/orderbook/module_simulation.go b/x/orderbook/module_simulation.go index 259fa9f8..0089e5ee 100644 --- a/x/orderbook/module_simulation.go +++ b/x/orderbook/module_simulation.go @@ -5,7 +5,7 @@ import ( "math/rand" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -20,7 +20,7 @@ import ( var ( _ = sample.AccAddress _ = orderbooksimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -37,15 +37,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return orderbooksimulation.ParamChanges(r) -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = orderbooksimulation.NewDecodeStore(am.cdc) diff --git a/x/orderbook/simulation/params.go b/x/orderbook/simulation/params.go index d08bafba..3b4fa5ff 100644 --- a/x/orderbook/simulation/params.go +++ b/x/orderbook/simulation/params.go @@ -21,19 +21,19 @@ const ( // ParamChanges defines the parameters that can be modified by param change proposals // on the simulation -func ParamChanges(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{ - simulation.NewSimParamChange(types.ModuleName, keyBatchSettlementCount, +func ParamChanges(_ *rand.Rand) []simtypes.LegacyParamChange { + return []simtypes.LegacyParamChange{ + simulation.NewSimLegacyParamChange(types.ModuleName, keyBatchSettlementCount, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenBatchSettlementCount(r)) }, ), - simulation.NewSimParamChange(types.ModuleName, keyMaxOrderBookParticipations, + simulation.NewSimLegacyParamChange(types.ModuleName, keyMaxOrderBookParticipations, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenMaxOrderBookParticipations(r)) }, ), - simulation.NewSimParamChange(types.ModuleName, keyRequeueThreshold, + simulation.NewSimLegacyParamChange(types.ModuleName, keyRequeueThreshold, func(r *rand.Rand) string { return fmt.Sprintf("\"%d\"", GenRequeueThreshold(r)) }, diff --git a/x/orderbook/types/codec.go b/x/orderbook/types/codec.go index 5fb3ee9f..23721c39 100644 --- a/x/orderbook/types/codec.go +++ b/x/orderbook/types/codec.go @@ -3,7 +3,6 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -27,6 +26,6 @@ var ( func init() { RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) + // cryptocodec.RegisterCrypto(amino) sdk.RegisterLegacyAminoCodec(amino) } diff --git a/x/orderbook/types/exposure.pb.go b/x/orderbook/types/exposure.pb.go index 11d1594d..938e8b4a 100644 --- a/x/orderbook/types/exposure.pb.go +++ b/x/orderbook/types/exposure.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/exposure.proto +// source: sgenetwork/sge/orderbook/exposure.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -39,7 +39,7 @@ type OrderBookOddsExposure struct { func (m *OrderBookOddsExposure) Reset() { *m = OrderBookOddsExposure{} } func (*OrderBookOddsExposure) ProtoMessage() {} func (*OrderBookOddsExposure) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa5f8fec7488c62, []int{0} + return fileDescriptor_59a6191091f0874f, []int{0} } func (m *OrderBookOddsExposure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,7 +92,7 @@ type ParticipationExposure struct { func (m *ParticipationExposure) Reset() { *m = ParticipationExposure{} } func (*ParticipationExposure) ProtoMessage() {} func (*ParticipationExposure) Descriptor() ([]byte, []int) { - return fileDescriptor_3aa5f8fec7488c62, []int{1} + return fileDescriptor_59a6191091f0874f, []int{1} } func (m *ParticipationExposure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -126,41 +126,43 @@ func init() { proto.RegisterType((*ParticipationExposure)(nil), "sgenetwork.sge.orderbook.ParticipationExposure") } -func init() { proto.RegisterFile("sge/orderbook/exposure.proto", fileDescriptor_3aa5f8fec7488c62) } +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/exposure.proto", fileDescriptor_59a6191091f0874f) +} -var fileDescriptor_3aa5f8fec7488c62 = []byte{ +var fileDescriptor_59a6191091f0874f = []byte{ // 491 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0xb1, 0x6f, 0xd3, 0x40, - 0x14, 0xc6, 0x6d, 0x92, 0xb6, 0xe9, 0x11, 0x41, 0xeb, 0x12, 0xd5, 0xaa, 0x2a, 0x5f, 0x74, 0x03, - 0xca, 0x00, 0x36, 0xa2, 0x5b, 0x36, 0x2c, 0xa8, 0x14, 0x84, 0x14, 0x6a, 0x89, 0x85, 0xc5, 0xb2, - 0x73, 0x57, 0xf7, 0x94, 0xd8, 0x67, 0x7c, 0x67, 0x91, 0xfe, 0x07, 0x8c, 0x8c, 0x8c, 0xf9, 0x73, - 0x3a, 0x76, 0x44, 0x0c, 0x27, 0xe4, 0x2c, 0x88, 0x0d, 0xcf, 0x0c, 0xc8, 0xe7, 0xc4, 0xa4, 0x05, - 0x89, 0x95, 0xed, 0xdd, 0xf7, 0xbe, 0xef, 0x77, 0x77, 0x3e, 0x3f, 0x70, 0xcc, 0x23, 0xe2, 0xb0, - 0x0c, 0x93, 0x2c, 0x64, 0x6c, 0xea, 0x90, 0x79, 0xca, 0x78, 0x9e, 0x11, 0x3b, 0xcd, 0x98, 0x60, - 0x86, 0xc9, 0x23, 0x92, 0x10, 0xf1, 0x9e, 0x65, 0x53, 0x9b, 0x47, 0xc4, 0x6e, 0x8c, 0x47, 0x0f, - 0x22, 0x16, 0x31, 0x65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c6, 0x6d, 0x92, 0xb6, 0xe9, 0x11, 0x41, 0xeb, 0x12, 0xd5, 0xaa, 0x90, 0x2f, 0xba, 0x01, + 0x32, 0x80, 0x83, 0xe8, 0x96, 0x0d, 0x0b, 0x2a, 0x05, 0x21, 0x85, 0x5a, 0x62, 0x61, 0xb1, 0xec, + 0xdc, 0xd5, 0x3d, 0x25, 0xf6, 0x19, 0xdf, 0x59, 0xa4, 0xff, 0x01, 0x23, 0x23, 0x63, 0xfe, 0x9c, + 0x8e, 0x1d, 0x11, 0xc3, 0x09, 0x39, 0x0b, 0x62, 0xc3, 0x33, 0x03, 0xf2, 0xb9, 0x71, 0xdd, 0x82, + 0xc4, 0xda, 0xed, 0xdd, 0xf7, 0xbe, 0xef, 0x77, 0x77, 0x3e, 0x3f, 0xf0, 0x98, 0x87, 0x24, 0x26, + 0xe2, 0x23, 0x4b, 0x67, 0x43, 0x1e, 0x92, 0x21, 0x4b, 0x31, 0x49, 0x03, 0xc6, 0x66, 0x43, 0xb2, + 0x48, 0x18, 0xcf, 0x52, 0x62, 0x27, 0x29, 0x13, 0xcc, 0x30, 0xaf, 0x8c, 0x36, 0x0f, 0x89, 0x5d, + 0x1b, 0x0f, 0x1e, 0x84, 0x2c, 0x64, 0xca, 0x34, 0x2c, 0xab, 0xca, 0x8f, 0x7e, 0xe9, 0xa0, 0x37, + 0x29, 0x3d, 0x0e, 0x63, 0xb3, 0x09, 0xc6, 0xfc, 0xd5, 0x25, 0xcf, 0x78, 0x0d, 0xee, 0xa9, 0xb0, + 0x57, 0xa6, 0xbd, 0x8c, 0x62, 0x53, 0xef, 0xeb, 0x83, 0x6d, 0x07, 0xe5, 0x12, 0x76, 0xeb, 0xc8, + 0xbb, 0xf1, 0xcb, 0x9f, 0x12, 0xde, 0x70, 0xba, 0x37, 0xd6, 0xc6, 0x21, 0xe8, 0x30, 0x8c, 0xb9, + 0xa2, 0xdc, 0x51, 0x94, 0xfd, 0x5c, 0xc2, 0xad, 0x72, 0xbf, 0x0a, 0x50, 0xb7, 0xdd, 0xba, 0x32, + 0xc6, 0x60, 0xf7, 0x24, 0x9b, 0x9f, 0xd0, 0xf9, 0x3c, 0x22, 0xb1, 0xf0, 0x3e, 0x64, 0x24, 0x23, + 0x66, 0xab, 0xdf, 0x1a, 0xb4, 0x9d, 0x87, 0x85, 0x84, 0xe6, 0x99, 0x1f, 0xcd, 0x47, 0xe8, 0x2f, + 0x0b, 0x72, 0x77, 0x1a, 0xda, 0x71, 0x29, 0x8d, 0xba, 0x9f, 0x96, 0x50, 0xfb, 0xb2, 0x84, 0xda, + 0x8f, 0x25, 0xd4, 0xd0, 0xef, 0x16, 0xe8, 0xbd, 0xf5, 0x53, 0x41, 0xa7, 0x34, 0xf1, 0x05, 0x65, + 0xf1, 0xed, 0xb9, 0xf3, 0x04, 0xec, 0x25, 0xcd, 0x93, 0x79, 0x34, 0xc6, 0x64, 0x61, 0xb6, 0xfa, + 0xfa, 0xa0, 0xed, 0x58, 0x85, 0x84, 0x07, 0xd5, 0xad, 0xff, 0x61, 0x42, 0xae, 0x71, 0x4d, 0x1d, + 0x97, 0xa2, 0xf1, 0x06, 0x74, 0xd6, 0x7f, 0x88, 0xd9, 0x56, 0xa7, 0x78, 0x76, 0x2e, 0xa1, 0xf6, + 0x4d, 0xc2, 0xde, 0x94, 0xf1, 0x88, 0x71, 0x8e, 0x67, 0x36, 0x65, 0xc3, 0xc8, 0x17, 0xa7, 0xf6, + 0x38, 0x16, 0x85, 0x84, 0xf7, 0xab, 0x2d, 0xd6, 0x31, 0xe4, 0xd6, 0x04, 0xe3, 0x18, 0x80, 0x80, + 0x08, 0xcf, 0x8f, 0x58, 0x16, 0x0b, 0x73, 0x43, 0xf1, 0x9e, 0xff, 0x8f, 0xb7, 0x5b, 0xf1, 0xae, + 0x82, 0xc8, 0xdd, 0x0e, 0x88, 0x78, 0xa1, 0x6a, 0x63, 0x04, 0xba, 0x94, 0x7b, 0x97, 0x2f, 0x46, + 0xb0, 0xb9, 0xd9, 0xd7, 0x07, 0x1d, 0x67, 0xbf, 0x90, 0x70, 0xaf, 0xca, 0x35, 0xbb, 0xc8, 0xbd, + 0x4b, 0xf9, 0xd1, 0x7a, 0x65, 0x3c, 0x02, 0x1b, 0x29, 0xcb, 0x62, 0x6c, 0x6e, 0xa9, 0xef, 0xb3, + 0x53, 0x48, 0xd8, 0xad, 0x42, 0x4a, 0x46, 0x6e, 0xd5, 0xbe, 0xfe, 0xfc, 0xce, 0xd1, 0x79, 0x6e, + 0xe9, 0x17, 0xb9, 0xa5, 0x7f, 0xcf, 0x2d, 0xfd, 0xf3, 0xca, 0xd2, 0x2e, 0x56, 0x96, 0xf6, 0x75, + 0x65, 0x69, 0xef, 0x9f, 0x84, 0x54, 0x9c, 0x66, 0x81, 0x3d, 0x65, 0x51, 0x39, 0x65, 0x4f, 0x9b, + 0x13, 0xb7, 0x68, 0xcc, 0x9c, 0x38, 0x4b, 0x08, 0x0f, 0x36, 0xd5, 0x04, 0x1d, 0xfe, 0x09, 0x00, + 0x00, 0xff, 0xff, 0x9e, 0xb9, 0x7d, 0xe4, 0x9c, 0x03, 0x00, 0x00, } func (m *OrderBookOddsExposure) Marshal() (dAtA []byte, err error) { diff --git a/x/orderbook/types/genesis.pb.go b/x/orderbook/types/genesis.pb.go index 192e9abb..7c5dfe68 100644 --- a/x/orderbook/types/genesis.pb.go +++ b/x/orderbook/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/genesis.proto +// source: sgenetwork/sge/orderbook/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -55,7 +55,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_b54e9379cfb7d94d, []int{0} + return fileDescriptor_4a689324a065c0a7, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,40 +151,42 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.orderbook.GenesisState") } -func init() { proto.RegisterFile("sge/orderbook/genesis.proto", fileDescriptor_b54e9379cfb7d94d) } +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/genesis.proto", fileDescriptor_4a689324a065c0a7) +} -var fileDescriptor_b54e9379cfb7d94d = []byte{ - // 473 bytes of a gzipped FileDescriptorProto +var fileDescriptor_4a689324a065c0a7 = []byte{ + // 475 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcf, 0x6b, 0xd4, 0x40, - 0x14, 0xc7, 0x37, 0xb6, 0xdd, 0xea, 0x54, 0x11, 0x82, 0x42, 0x9a, 0xda, 0x18, 0xad, 0xc8, 0x1e, - 0x34, 0x91, 0x7a, 0xf7, 0x10, 0xfc, 0x81, 0x20, 0x34, 0xea, 0xcd, 0x4b, 0x98, 0x6c, 0x86, 0x74, - 0xd8, 0x36, 0x2f, 0xcc, 0xcc, 0xe2, 0xe6, 0xae, 0x17, 0x4f, 0xfe, 0x59, 0x3d, 0xf6, 0xe8, 0x49, - 0x64, 0x17, 0xff, 0x0f, 0xc9, 0xcc, 0x64, 0xcd, 0xb4, 0x89, 0x06, 0x7a, 0x9b, 0xdd, 0xf7, 0x7d, - 0xdf, 0xcf, 0xf7, 0x3d, 0x32, 0x83, 0xf6, 0x78, 0x4e, 0x42, 0x60, 0x19, 0x61, 0x29, 0xc0, 0x2c, - 0xcc, 0x49, 0x41, 0x38, 0xe5, 0x41, 0xc9, 0x40, 0x80, 0xed, 0xf0, 0xfa, 0xb7, 0xf8, 0x0c, 0x6c, - 0x16, 0xf0, 0x9c, 0x04, 0x6b, 0x9d,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 0x2d, 0x1b, 0xaf, 0xd1, 0x96, 0x9c, 0x6c, 0xfb, 0x96, 0x9c, + 0x47, 0xaf, 0xc7, 0xff, 0x56, 0x4d, 0x72, 0x3d, 0x97, 0xaa, 0x38, 0x7c, 0x7b, 0xb6, 0x70, 0xac, + 0xf3, 0x85, 0x63, 0xfd, 0x59, 0x38, 0xd6, 0xcf, 0xa5, 0x33, 0x38, 0x5f, 0x3a, 0x83, 0x5f, 0x4b, + 0x67, 0xf0, 0xe5, 0x20, 0xa3, 0xe2, 0x78, 0x96, 0xf8, 0x13, 0x38, 0xad, 0x56, 0xc5, 0xf3, 0xe6, + 0xda, 0x98, 0x37, 0x16, 0x87, 0x28, 0x0b, 0xc2, 0x93, 0xa1, 0x5c, 0x1b, 0x2f, 0xff, 0x05, 0x00, + 0x00, 0xff, 0xff, 0x7b, 0x59, 0x46, 0x26, 0x5e, 0x05, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/orderbook/types/orderbook.pb.go b/x/orderbook/types/orderbook.pb.go index 2915dc3a..bbdcf716 100644 --- a/x/orderbook/types/orderbook.pb.go +++ b/x/orderbook/types/orderbook.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/orderbook.proto +// source: sgenetwork/sge/orderbook/orderbook.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -56,7 +56,7 @@ func (x OrderBookStatus) String() string { } func (OrderBookStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7247ccc164993ca5, []int{0} + return fileDescriptor_99b9fb43f10754c7, []int{0} } // OrderBook represents the order book maintained against a market. @@ -74,7 +74,7 @@ type OrderBook struct { func (m *OrderBook) Reset() { *m = OrderBook{} } func (*OrderBook) ProtoMessage() {} func (*OrderBook) Descriptor() ([]byte, []int) { - return fileDescriptor_7247ccc164993ca5, []int{0} + return fileDescriptor_99b9fb43f10754c7, []int{0} } func (m *OrderBook) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -108,35 +108,37 @@ func init() { proto.RegisterType((*OrderBook)(nil), "sgenetwork.sge.orderbook.OrderBook") } -func init() { proto.RegisterFile("sge/orderbook/orderbook.proto", fileDescriptor_7247ccc164993ca5) } +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/orderbook.proto", fileDescriptor_99b9fb43f10754c7) +} -var fileDescriptor_7247ccc164993ca5 = []byte{ - // 399 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x4e, 0x4f, 0xd5, - 0xcf, 0x2f, 0x4a, 0x49, 0x2d, 0x4a, 0xca, 0xcf, 0xcf, 0x46, 0xb0, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, - 0xf2, 0x85, 0x24, 0x8a, 0xd3, 0x53, 0xf3, 0x52, 0x4b, 0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x8a, 0xd3, - 0x53, 0xf5, 0xe0, 0xf2, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0x45, 0xfa, 0x20, 0x16, 0x44, - 0xbd, 0x52, 0x2b, 0x13, 0x17, 0xa7, 0x3f, 0x48, 0x8d, 0x53, 0x7e, 0x7e, 0xb6, 0x90, 0x02, 0x17, - 0x73, 0x69, 0x66, 0x8a, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xa7, 0x13, 0xdf, 0xa3, 0x7b, 0xf2, 0xcc, - 0xa1, 0x9e, 0x2e, 0xaf, 0xee, 0xc9, 0x83, 0x44, 0x83, 0x40, 0x84, 0x90, 0x3f, 0x97, 0x70, 0x41, - 0x62, 0x51, 0x49, 0x66, 0x72, 0x66, 0x41, 0x62, 0x49, 0x66, 0x7e, 0x5e, 0x7c, 0x72, 0x7e, 0x69, - 0x5e, 0x89, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x8b, 0x93, 0xdc, 0xa7, 0x7b, 0xf2, 0x52, 0x95, 0x89, - 0xb9, 0x39, 0x56, 0x4a, 0x58, 0x14, 0x29, 0x05, 0x09, 0xa1, 0x88, 0x3a, 0x83, 0x04, 0x85, 0x4c, - 0xb8, 0xb8, 0xf2, 0x53, 0x52, 0x8a, 0xa1, 0xe6, 0x30, 0x83, 0xcd, 0x11, 0xfd, 0x74, 0x4f, 0x5e, - 0x10, 0x62, 0x0e, 0x42, 0x4e, 0x29, 0x88, 0x13, 0xc4, 0x81, 0xe8, 0x72, 0xe4, 0x62, 0x2b, 0x2e, - 0x49, 0x2c, 0x29, 0x2d, 0x96, 0x60, 0x51, 0x60, 0xd4, 0xe0, 0x33, 0xd2, 0xd4, 0xc3, 0xe5, 0x6f, - 0x3d, 0xb8, 0xef, 0x82, 0xc1, 0x1a, 0x82, 0xa0, 0x1a, 0xad, 0x78, 0x3a, 0x16, 0xc8, 0x33, 0xcc, - 0x58, 0x20, 0xcf, 0xf0, 0x62, 0x81, 0x3c, 0x83, 0xd6, 0x32, 0x46, 0x2e, 0x7e, 0x34, 0x95, 0x42, - 0x8a, 0x5c, 0xb2, 0xfe, 0x41, 0x2e, 0xae, 0x41, 0xf1, 0x4e, 0xfe, 0xfe, 0xde, 0xf1, 0xc1, 0x21, - 0x8e, 0x21, 0xa1, 0xc1, 0xf1, 0xa1, 0x7e, 0xc1, 0x01, 0xae, 0xce, 0x9e, 0x6e, 0x9e, 0xae, 0x2e, - 0x02, 0x0c, 0x42, 0xca, 0x5c, 0xf2, 0x98, 0x4a, 0xa0, 0x94, 0xa3, 0x73, 0x88, 0x67, 0x98, 0xab, - 0x00, 0xa3, 0x90, 0x2a, 0x97, 0x22, 0x4e, 0x45, 0x41, 0xae, 0xc1, 0xfe, 0x3e, 0x61, 0xae, 0x2e, - 0x02, 0x4c, 0x42, 0x2a, 0x5c, 0x0a, 0x38, 0x95, 0x05, 0xbb, 0x86, 0x84, 0xf8, 0xb8, 0xba, 0x08, - 0x30, 0x3b, 0xb9, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, - 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x4e, 0x7a, - 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x7a, 0xaa, 0x2e, 0x34, 0x38, - 0x40, 0x6c, 0xfd, 0x0a, 0xa4, 0x24, 0x53, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x8e, 0x7f, - 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x78, 0x55, 0x09, 0x50, 0x02, 0x00, 0x00, +var fileDescriptor_99b9fb43f10754c7 = []byte{ + // 398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x28, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x2f, 0x4a, 0x49, 0x2d, + 0x4a, 0xca, 0xcf, 0xcf, 0x46, 0xb0, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x24, 0x10, 0x2a, + 0xf5, 0x8a, 0xd3, 0x53, 0xf5, 0xe0, 0xf2, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0x45, 0xfa, + 0x20, 0x16, 0x44, 0xbd, 0x52, 0x2b, 0x13, 0x17, 0xa7, 0x3f, 0x48, 0x8d, 0x53, 0x7e, 0x7e, 0xb6, + 0x90, 0x02, 0x17, 0x73, 0x69, 0x66, 0x8a, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xa7, 0x13, 0xdf, 0xa3, + 0x7b, 0xf2, 0xcc, 0xa1, 0x9e, 0x2e, 0xaf, 0xee, 0xc9, 0x83, 0x44, 0x83, 0x40, 0x84, 0x90, 0x3f, + 0x97, 0x70, 0x41, 0x62, 0x51, 0x49, 0x66, 0x72, 0x66, 0x41, 0x62, 0x49, 0x66, 0x7e, 0x5e, 0x7c, + 0x72, 0x7e, 0x69, 0x5e, 0x89, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x8b, 0x93, 0xdc, 0xa7, 0x7b, 0xf2, + 0x52, 0x95, 0x89, 0xb9, 0x39, 0x56, 0x4a, 0x58, 0x14, 0x29, 0x05, 0x09, 0xa1, 0x88, 0x3a, 0x83, + 0x04, 0x85, 0x4c, 0xb8, 0xb8, 0xf2, 0x53, 0x52, 0x8a, 0xa1, 0xe6, 0x30, 0x83, 0xcd, 0x11, 0xfd, + 0x74, 0x4f, 0x5e, 0x10, 0x62, 0x0e, 0x42, 0x4e, 0x29, 0x88, 0x13, 0xc4, 0x81, 0xe8, 0x72, 0xe4, + 0x62, 0x2b, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0x96, 0x60, 0x51, 0x60, 0xd4, 0xe0, 0x33, 0xd2, 0xd4, + 0xc3, 0xe5, 0x6f, 0x3d, 0xb8, 0xef, 0x82, 0xc1, 0x1a, 0x82, 0xa0, 0x1a, 0xad, 0x78, 0x3a, 0x16, + 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf, 0xf0, 0x62, 0x81, 0x3c, 0x83, 0xd6, 0x32, 0x46, 0x2e, 0x7e, + 0x34, 0x95, 0x42, 0x8a, 0x5c, 0xb2, 0xfe, 0x41, 0x2e, 0xae, 0x41, 0xf1, 0x4e, 0xfe, 0xfe, 0xde, + 0xf1, 0xc1, 0x21, 0x8e, 0x21, 0xa1, 0xc1, 0xf1, 0xa1, 0x7e, 0xc1, 0x01, 0xae, 0xce, 0x9e, 0x6e, + 0x9e, 0xae, 0x2e, 0x02, 0x0c, 0x42, 0xca, 0x5c, 0xf2, 0x98, 0x4a, 0xa0, 0x94, 0xa3, 0x73, 0x88, + 0x67, 0x98, 0xab, 0x00, 0xa3, 0x90, 0x2a, 0x97, 0x22, 0x4e, 0x45, 0x41, 0xae, 0xc1, 0xfe, 0x3e, + 0x61, 0xae, 0x2e, 0x02, 0x4c, 0x42, 0x2a, 0x5c, 0x0a, 0x38, 0x95, 0x05, 0xbb, 0x86, 0x84, 0xf8, + 0xb8, 0xba, 0x08, 0x30, 0x3b, 0xb9, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, + 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, + 0x94, 0x4e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x28, 0x91, 0xe8, 0x22, + 0x27, 0x98, 0x0a, 0xa4, 0x24, 0x53, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x8e, 0x7f, 0x63, + 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x00, 0x56, 0x95, 0x5b, 0x02, 0x00, 0x00, } func (m *OrderBook) Marshal() (dAtA []byte, err error) { diff --git a/x/orderbook/types/params.pb.go b/x/orderbook/types/params.pb.go index e8d4d430..d49f9449 100644 --- a/x/orderbook/types/params.pb.go +++ b/x/orderbook/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/params.proto +// source: sgenetwork/sge/orderbook/params.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -38,7 +38,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3d2056747df0cc, []int{0} + return fileDescriptor_c4a36fa63136acd4, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,30 +92,32 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.orderbook.Params") } -func init() { proto.RegisterFile("sge/orderbook/params.proto", fileDescriptor_3c3d2056747df0cc) } +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/params.proto", fileDescriptor_c4a36fa63136acd4) +} -var fileDescriptor_3c3d2056747df0cc = []byte{ +var fileDescriptor_c4a36fa63136acd4 = []byte{ // 322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x31, 0x4b, 0xfb, 0x50, - 0x14, 0xc5, 0x93, 0xfe, 0xff, 0x14, 0xc9, 0xa4, 0xa1, 0x48, 0x28, 0x36, 0xd1, 0xe0, 0xd0, 0x41, - 0x93, 0xc1, 0xad, 0x63, 0x05, 0xc1, 0xc9, 0x52, 0x05, 0xc1, 0x25, 0xbc, 0xa4, 0x97, 0x97, 0x90, - 0x26, 0x37, 0xbe, 0x77, 0x83, 0xed, 0xb7, 0x70, 0x74, 0x2c, 0xf8, 0x65, 0x1c, 0x3b, 0x3a, 0x15, - 0x69, 0x17, 0xe7, 0x7e, 0x02, 0xc9, 0x4b, 0x2d, 0x8a, 0xe2, 0x76, 0x39, 0xe7, 0x77, 0xcf, 0x85, - 0x73, 0x8d, 0xb6, 0xe4, 0xe0, 0xa3, 0x18, 0x81, 0x08, 0x11, 0x53, 0xbf, 0x60, 0x82, 0x65, 0xd2, - 0x2b, 0x04, 0x12, 0x9a, 0x96, 0xe4, 0x90, 0x03, 0x3d, 0xa0, 0x48, 0x3d, 0xc9, 0xc1, 0xdb, 0x62, - 0xed, 0x16, 0x47, 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, + 0x4e, 0x6a, 0x6e, 0x6a, 0x5e, 0x49, 0x7c, 0x72, 0x7e, 0x69, 0x5e, 0x89, 0x04, 0x13, 0xd8, 0x16, + 0xc5, 0x4f, 0xf7, 0xe4, 0x65, 0x21, 0xb6, 0x60, 0x57, 0xa7, 0x14, 0x24, 0x02, 0x96, 0x08, 0x86, + 0x8b, 0x3b, 0x83, 0x84, 0x85, 0x3c, 0xb9, 0x04, 0x8b, 0x52, 0x0b, 0x4b, 0x53, 0x4b, 0x53, 0xe3, + 0x4b, 0x32, 0x8a, 0x52, 0x8b, 0x33, 0xf2, 0x73, 0x52, 0x24, 0x98, 0xc1, 0x66, 0xca, 0x7c, 0xba, + 0x27, 0x2f, 0x01, 0x31, 0x13, 0x43, 0x89, 0x52, 0x90, 0x00, 0x54, 0x2c, 0x04, 0x26, 0x64, 0xc5, + 0x31, 0x63, 0x81, 0x3c, 0xc3, 0x8b, 0x05, 0xf2, 0x8c, 0x4e, 0x6e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, + 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, + 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x93, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, + 0x0b, 0x8a, 0x16, 0x5d, 0xe4, 0x28, 0xaa, 0x40, 0x8a, 0xa4, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, + 0x36, 0x70, 0xa0, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x51, 0x34, 0x7e, 0xcd, 0x01, 0x00, 0x00, } diff --git a/x/orderbook/types/participation.pb.go b/x/orderbook/types/participation.pb.go index 5c3967f3..94a551d3 100644 --- a/x/orderbook/types/participation.pb.go +++ b/x/orderbook/types/participation.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/participation.proto +// source: sgenetwork/sge/orderbook/participation.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -57,16 +57,18 @@ type OrderBookParticipation struct { ActualProfit cosmossdk_io_math.Int `protobuf:"bytes,13,opt,name=actual_profit,json=actualProfit,proto3,customtype=cosmossdk.io/math.Int" json:"actual_profit" yaml:"actual_profit"` // is_settled represents if the participation is settled or not. IsSettled bool `protobuf:"varint,14,opt,name=is_settled,json=isSettled,proto3" json:"is_settled,omitempty" yaml:"is_settled"` - // returned_amount is the total returned amount to the user's account including reimbursed fees. + // returned_amount is the total returned amount to the user's account + // including reimbursed fees. ReturnedAmount cosmossdk_io_math.Int `protobuf:"bytes,15,opt,name=returned_amount,json=returnedAmount,proto3,customtype=cosmossdk.io/math.Int" json:"returned_amount" yaml:"returned_amount"` - // reimbursed_fee is the fee reimbursed because of reasons such as market calcellation. + // reimbursed_fee is the fee reimbursed because of reasons such as market + // calcellation. ReimbursedFee cosmossdk_io_math.Int `protobuf:"bytes,16,opt,name=reimbursed_fee,json=reimbursedFee,proto3,customtype=cosmossdk.io/math.Int" json:"reimbursed_fee" yaml:"reimbursed_fee"` } func (m *OrderBookParticipation) Reset() { *m = OrderBookParticipation{} } func (*OrderBookParticipation) ProtoMessage() {} func (*OrderBookParticipation) Descriptor() ([]byte, []int) { - return fileDescriptor_2962bcb47b63c36a, []int{0} + return fileDescriptor_325ee5284c02991d, []int{0} } func (m *OrderBookParticipation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -111,7 +113,7 @@ func (m *ParticipationBetPair) Reset() { *m = ParticipationBetPair{} } func (m *ParticipationBetPair) String() string { return proto.CompactTextString(m) } func (*ParticipationBetPair) ProtoMessage() {} func (*ParticipationBetPair) Descriptor() ([]byte, []int) { - return fileDescriptor_2962bcb47b63c36a, []int{1} + return fileDescriptor_325ee5284c02991d, []int{1} } func (m *ParticipationBetPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -166,60 +168,62 @@ func init() { proto.RegisterType((*ParticipationBetPair)(nil), "sgenetwork.sge.orderbook.ParticipationBetPair") } -func init() { proto.RegisterFile("sge/orderbook/participation.proto", fileDescriptor_2962bcb47b63c36a) } +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/participation.proto", fileDescriptor_325ee5284c02991d) +} -var fileDescriptor_2962bcb47b63c36a = []byte{ +var fileDescriptor_325ee5284c02991d = []byte{ // 802 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xf3, 0x44, - 0x14, 0x8d, 0xfb, 0x9f, 0x21, 0x4d, 0x83, 0x9b, 0xb4, 0x56, 0x10, 0x9e, 0x32, 0x12, 0x55, 0x25, - 0x20, 0x01, 0xf1, 0xab, 0x4a, 0x80, 0x6a, 0x50, 0xa4, 0x42, 0x21, 0x65, 0x80, 0x4d, 0x25, 0x64, - 0x9c, 0x78, 0x92, 0x8e, 0x12, 0x7b, 0xc2, 0xcc, 0x58, 0x4d, 0x1f, 0x00, 0x09, 0xb1, 0x62, 0xc9, - 0xb2, 0x2f, 0xc1, 0x3b, 0x74, 0xd9, 0x25, 0x62, 0x61, 0xa1, 0x94, 0x05, 0x62, 0x99, 0x27, 0x40, - 0x9e, 0x49, 0x9c, 0x9f, 0xe6, 0xfb, 0xbc, 0xf9, 0x76, 0x33, 0x67, 0xee, 0x3d, 0xe7, 0xdc, 0xb1, - 0xe7, 0x5e, 0xf0, 0x9a, 0xe8, 0x92, 0x3a, 0xe3, 0x3e, 0xe1, 0x2d, 0xc6, 0x7a, 0xf5, 0x81, 0xc7, - 0x25, 0x6d, 0xd3, 0x81, 0x27, 0x29, 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 0xfd, 0x7e, 0x07, 0x73, 0xff, 0xde, 0xc1, - 0x1c, 0xfa, 0xc7, 0x00, 0xe5, 0x85, 0xf6, 0xef, 0x10, 0x79, 0xe9, 0x51, 0xbe, 0xa2, 0xbb, 0x1b, - 0x2f, 0xa4, 0xbb, 0x27, 0x1a, 0xae, 0x9e, 0x2f, 0x6b, 0xaa, 0x05, 0xad, 0xea, 0xee, 0xb3, 0xa0, - 0xf9, 0xee, 0x9e, 0xa0, 0xe7, 0x6a, 0xf4, 0xd4, 0xc1, 0x76, 0xf2, 0x76, 0x13, 0x57, 0x7a, 0x44, - 0x54, 0x46, 0x31, 0xdc, 0x72, 0x88, 0xd4, 0x7e, 0xa6, 0x87, 0x78, 0xba, 0x70, 0x1a, 0xf7, 0x23, - 0xdb, 0x78, 0x18, 0xd9, 0xc6, 0xdf, 0x23, 0xdb, 0xf8, 0xed, 0xd1, 0xce, 0x3d, 0x3c, 0xda, 0xb9, - 0x3f, 0x1f, 0xed, 0xdc, 0xd5, 0x9b, 0x5d, 0x2a, 0xaf, 0xa3, 0x56, 0xad, 0xcd, 0x82, 0xba, 0xe8, - 0x92, 0xb7, 0x26, 0x43, 0x34, 0x59, 0xd7, 0x87, 0x73, 0x43, 0x57, 0xde, 0x0e, 0x88, 0x68, 0x6d, - 0xa9, 0xe9, 0xf9, 0xee, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x98, 0x1f, 0x22, 0x01, 0x92, 0x07, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x6f, 0xfb, 0x34, + 0x18, 0x6e, 0x7e, 0x7f, 0xb6, 0xd5, 0x74, 0x5d, 0xc9, 0xda, 0x2d, 0x2a, 0x22, 0x9e, 0x2c, 0x31, + 0x4d, 0x62, 0xb4, 0x20, 0xfe, 0x6a, 0x12, 0xa0, 0x05, 0x54, 0x69, 0x30, 0xe8, 0x30, 0x70, 0x99, + 0x84, 0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0xba, 0xf2, 0x66, 0x44, 0x44, 0x67, + 0x43, 0x4d, 0xcf, 0xb7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x3c, 0xbb, 0x1f, 0x9d, 0x07, 0x00, 0x00, } diff --git a/x/orderbook/types/query.pb.go b/x/orderbook/types/query.pb.go index 55bf6e8d..4888cafa 100644 --- a/x/orderbook/types/query.pb.go +++ b/x/orderbook/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/query.proto +// source: sgenetwork/sge/orderbook/query.proto package types @@ -8,8 +8,8 @@ import ( fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -39,7 +39,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{0} + return fileDescriptor_ed7e5b0ca5b647cb, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{1} + return fileDescriptor_ed7e5b0ca5b647cb, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -128,7 +128,7 @@ func (m *QueryOrderBooksRequest) Reset() { *m = QueryOrderBooksRequest{} func (m *QueryOrderBooksRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderBooksRequest) ProtoMessage() {} func (*QueryOrderBooksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{2} + return fileDescriptor_ed7e5b0ca5b647cb, []int{2} } func (m *QueryOrderBooksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -184,7 +184,7 @@ func (m *QueryOrderBooksResponse) Reset() { *m = QueryOrderBooksResponse func (m *QueryOrderBooksResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderBooksResponse) ProtoMessage() {} func (*QueryOrderBooksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{3} + return fileDescriptor_ed7e5b0ca5b647cb, []int{3} } func (m *QueryOrderBooksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -237,7 +237,7 @@ func (m *QueryOrderBookRequest) Reset() { *m = QueryOrderBookRequest{} } func (m *QueryOrderBookRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookRequest) ProtoMessage() {} func (*QueryOrderBookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{4} + return fileDescriptor_ed7e5b0ca5b647cb, []int{4} } func (m *QueryOrderBookRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -284,7 +284,7 @@ func (m *QueryOrderBookResponse) Reset() { *m = QueryOrderBookResponse{} func (m *QueryOrderBookResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookResponse) ProtoMessage() {} func (*QueryOrderBookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{5} + return fileDescriptor_ed7e5b0ca5b647cb, []int{5} } func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -334,7 +334,7 @@ func (m *QueryOrderBookParticipationsRequest) Reset() { *m = QueryOrderB func (m *QueryOrderBookParticipationsRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookParticipationsRequest) ProtoMessage() {} func (*QueryOrderBookParticipationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{6} + return fileDescriptor_ed7e5b0ca5b647cb, []int{6} } func (m *QueryOrderBookParticipationsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -389,7 +389,7 @@ func (m *QueryOrderBookParticipationsResponse) Reset() { *m = QueryOrder func (m *QueryOrderBookParticipationsResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookParticipationsResponse) ProtoMessage() {} func (*QueryOrderBookParticipationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{7} + return fileDescriptor_ed7e5b0ca5b647cb, []int{7} } func (m *QueryOrderBookParticipationsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -446,7 +446,7 @@ func (m *QueryOrderBookParticipationRequest) Reset() { *m = QueryOrderBo func (m *QueryOrderBookParticipationRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookParticipationRequest) ProtoMessage() {} func (*QueryOrderBookParticipationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{8} + return fileDescriptor_ed7e5b0ca5b647cb, []int{8} } func (m *QueryOrderBookParticipationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -500,7 +500,7 @@ func (m *QueryOrderBookParticipationResponse) Reset() { *m = QueryOrderB func (m *QueryOrderBookParticipationResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookParticipationResponse) ProtoMessage() {} func (*QueryOrderBookParticipationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{9} + return fileDescriptor_ed7e5b0ca5b647cb, []int{9} } func (m *QueryOrderBookParticipationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -549,7 +549,7 @@ func (m *QueryOrderBookExposuresRequest) Reset() { *m = QueryOrderBookEx func (m *QueryOrderBookExposuresRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookExposuresRequest) ProtoMessage() {} func (*QueryOrderBookExposuresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{10} + return fileDescriptor_ed7e5b0ca5b647cb, []int{10} } func (m *QueryOrderBookExposuresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -604,7 +604,7 @@ func (m *QueryOrderBookExposuresResponse) Reset() { *m = QueryOrderBookE func (m *QueryOrderBookExposuresResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookExposuresResponse) ProtoMessage() {} func (*QueryOrderBookExposuresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{11} + return fileDescriptor_ed7e5b0ca5b647cb, []int{11} } func (m *QueryOrderBookExposuresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -660,7 +660,7 @@ func (m *QueryOrderBookExposureRequest) Reset() { *m = QueryOrderBookExp func (m *QueryOrderBookExposureRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookExposureRequest) ProtoMessage() {} func (*QueryOrderBookExposureRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{12} + return fileDescriptor_ed7e5b0ca5b647cb, []int{12} } func (m *QueryOrderBookExposureRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -714,7 +714,7 @@ func (m *QueryOrderBookExposureResponse) Reset() { *m = QueryOrderBookEx func (m *QueryOrderBookExposureResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderBookExposureResponse) ProtoMessage() {} func (*QueryOrderBookExposureResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{13} + return fileDescriptor_ed7e5b0ca5b647cb, []int{13} } func (m *QueryOrderBookExposureResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -767,7 +767,7 @@ func (m *QueryOrderBookParticipationExposuresRequest) String() string { } func (*QueryOrderBookParticipationExposuresRequest) ProtoMessage() {} func (*QueryOrderBookParticipationExposuresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{14} + return fileDescriptor_ed7e5b0ca5b647cb, []int{14} } func (m *QueryOrderBookParticipationExposuresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -826,7 +826,7 @@ func (m *QueryOrderBookParticipationExposuresResponse) String() string { } func (*QueryOrderBookParticipationExposuresResponse) ProtoMessage() {} func (*QueryOrderBookParticipationExposuresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{15} + return fileDescriptor_ed7e5b0ca5b647cb, []int{15} } func (m *QueryOrderBookParticipationExposuresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -884,7 +884,7 @@ func (m *QueryParticipationExposuresRequest) Reset() { *m = QueryPartici func (m *QueryParticipationExposuresRequest) String() string { return proto.CompactTextString(m) } func (*QueryParticipationExposuresRequest) ProtoMessage() {} func (*QueryParticipationExposuresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{16} + return fileDescriptor_ed7e5b0ca5b647cb, []int{16} } func (m *QueryParticipationExposuresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -947,7 +947,7 @@ func (m *QueryParticipationExposuresResponse) Reset() { *m = QueryPartic func (m *QueryParticipationExposuresResponse) String() string { return proto.CompactTextString(m) } func (*QueryParticipationExposuresResponse) ProtoMessage() {} func (*QueryParticipationExposuresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{17} + return fileDescriptor_ed7e5b0ca5b647cb, []int{17} } func (m *QueryParticipationExposuresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1007,7 +1007,7 @@ func (m *QueryHistoricalParticipationExposuresRequest) String() string { } func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage() {} func (*QueryHistoricalParticipationExposuresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{18} + return fileDescriptor_ed7e5b0ca5b647cb, []int{18} } func (m *QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1066,7 +1066,7 @@ func (m *QueryHistoricalParticipationExposuresResponse) String() string { } func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage() {} func (*QueryHistoricalParticipationExposuresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{19} + return fileDescriptor_ed7e5b0ca5b647cb, []int{19} } func (m *QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1126,7 +1126,7 @@ func (m *QueryParticipationFulfilledBetsRequest) Reset() { func (m *QueryParticipationFulfilledBetsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParticipationFulfilledBetsRequest) ProtoMessage() {} func (*QueryParticipationFulfilledBetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{20} + return fileDescriptor_ed7e5b0ca5b647cb, []int{20} } func (m *QueryParticipationFulfilledBetsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1191,7 +1191,7 @@ func (m *QueryParticipationFulfilledBetsResponse) Reset() { func (m *QueryParticipationFulfilledBetsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParticipationFulfilledBetsResponse) ProtoMessage() {} func (*QueryParticipationFulfilledBetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8b016841afa49a45, []int{21} + return fileDescriptor_ed7e5b0ca5b647cb, []int{21} } func (m *QueryParticipationFulfilledBetsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1259,82 +1259,84 @@ func init() { proto.RegisterType((*QueryParticipationFulfilledBetsResponse)(nil), "sgenetwork.sge.orderbook.QueryParticipationFulfilledBetsResponse") } -func init() { proto.RegisterFile("sge/orderbook/query.proto", fileDescriptor_8b016841afa49a45) } - -var fileDescriptor_8b016841afa49a45 = []byte{ - // 1139 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x4f, 0x6f, 0xdc, 0x44, - 0x14, 0xcf, 0xa4, 0x25, 0x90, 0x57, 0x84, 0x94, 0x97, 0x34, 0x9b, 0x58, 0xcd, 0x26, 0x75, 0xab, - 0xa6, 0xd0, 0xc4, 0x4e, 0x02, 0xea, 0x1f, 0x29, 0x29, 0xb0, 0x6a, 0xd3, 0x16, 0x81, 0x12, 0x82, - 0x72, 0x81, 0x43, 0xf0, 0xee, 0x4e, 0x5d, 0x2b, 0x9b, 0x1d, 0xd7, 0xf6, 0x42, 0xaa, 0x28, 0x17, - 0x84, 0xc4, 0x0d, 0x21, 0x7a, 0xe8, 0x01, 0xbe, 0x02, 0xdf, 0x80, 0x1b, 0x48, 0xf4, 0x18, 0xa9, - 0x07, 0x38, 0x55, 0x28, 0x8b, 0x04, 0x07, 0x2e, 0x7c, 0x01, 0x40, 0x1e, 0x8f, 0x9d, 0xf5, 0xda, - 0x5e, 0xff, 0xc9, 0x4a, 0xa5, 0xdc, 0x76, 0xf7, 0xf9, 0xbd, 0xf7, 0xfb, 0xf3, 0x66, 0x3c, 0xb3, - 0x30, 0x69, 0xeb, 0x54, 0x65, 0x56, 0x9d, 0x5a, 0x55, 0xc6, 0xb6, 0xd5, 0xfb, 0x2d, 0x6a, 0x3d, - 0x50, 0x4c, 0x8b, 0x39, 0x0c, 0x27, 0x6c, 0x9d, 0x36, 0xa9, 0xf3, 0x29, 0xb3, 0xb6, 0x15, 0x5b, - 0xa7, 0x4a, 0xf0, 0x94, 0xf4, 0x5a, 0x8d, 0xd9, 0x3b, 0xcc, 0x56, 0xab, 0x9a, 0x4d, 0xbd, 0x14, - 0xf5, 0x93, 0xc5, 0x2a, 0x75, 0xb4, 0x45, 0xd5, 0xd4, 0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91, 0xd6, 0x82, 0xd5, - 0x1d, 0x80, 0x00, 0xb7, 0xdb, 0xff, 0xc4, 0xc5, 0x53, 0x4b, 0xe7, 0x92, 0x99, 0x05, 0x15, 0x04, - 0xb9, 0x8e, 0x64, 0xbc, 0x15, 0x03, 0x77, 0x36, 0x15, 0xae, 0x87, 0x23, 0x84, 0x77, 0x05, 0x4e, - 0x87, 0xe1, 0xfa, 0x42, 0x9d, 0x87, 0x57, 0x78, 0xbf, 0x2d, 0xb7, 0xe1, 0x56, 0xcb, 0xa8, 0x0b, - 0xc1, 0x5e, 0x66, 0xfe, 0x93, 0x9b, 0x46, 0x5d, 0xae, 0x76, 0x0b, 0x1d, 0x90, 0xbd, 0x2d, 0xc8, - 0xf2, 0x7c, 0x61, 0x63, 0x0e, 0xb2, 0xc3, 0x41, 0x1b, 0xf9, 0x21, 0x81, 0x73, 0xe1, 0x26, 0xeb, - 0x9d, 0xd3, 0x67, 0xe7, 0x42, 0xdc, 0x37, 0xa3, 0xdb, 0x04, 0xce, 0xf7, 0x46, 0x25, 0x84, 0xb0, - 0x60, 0xb2, 0x03, 0x56, 0x68, 0xe1, 0xf8, 0x43, 0xb0, 0x90, 0x41, 0x97, 0x50, 0x75, 0x21, 0x52, - 0x89, 0xc5, 0xf7, 0xee, 0xdf, 0x78, 0xec, 0x81, 0xdc, 0x83, 0x64, 0x3e, 0xe5, 0x55, 0x18, 0x0d, - 0xb1, 0xdf, 0x32, 0x9a, 0x75, 0xba, 0xcb, 0xd1, 0x9d, 0xdc, 0xc0, 0x50, 0xe8, 0x8e, 0x1b, 0x91, - 0x1f, 0xf5, 0x36, 0x3e, 0x50, 0xd8, 0x84, 0x89, 0x24, 0x85, 0xc5, 0xe0, 0x15, 0x15, 0x78, 0x3c, - 0x5e, 0x60, 0xf9, 0x4b, 0x02, 0xe5, 0x30, 0xb2, 0x9b, 0x62, 0xb7, 0x7b, 0x46, 0xd3, 0xf8, 0x84, - 0xc0, 0x74, 0x22, 0x20, 0x21,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f, 0x1e, 0x96, 0xc9, 0x57, 0xed, 0xf2, 0xc0, 0x41, - 0xbb, 0x3c, 0xf0, 0x4b, 0xbb, 0x3c, 0xf0, 0xe1, 0x9c, 0x6e, 0x38, 0xf7, 0x5a, 0x55, 0xa5, 0xc6, - 0x76, 0xdc, 0xc6, 0xf3, 0x82, 0x04, 0x07, 0xb1, 0xdb, 0x01, 0xc3, 0x79, 0x60, 0x52, 0xbb, 0x3a, - 0xc4, 0xff, 0xb0, 0x7e, 0xfd, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x89, 0x3e, 0x08, 0xc3, - 0x17, 0x00, 0x00, +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/query.proto", fileDescriptor_ed7e5b0ca5b647cb) +} + +var fileDescriptor_ed7e5b0ca5b647cb = []byte{ + // 1144 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xcf, 0xa4, 0xfd, 0xe6, 0x4b, 0x5e, 0x11, 0x52, 0x5e, 0xd2, 0x38, 0xb1, 0xa8, 0x1d, 0xb6, + 0xa1, 0x09, 0x34, 0xde, 0x4d, 0x02, 0xea, 0x0f, 0x29, 0x29, 0x60, 0xb5, 0x6e, 0x8b, 0x40, 0x09, + 0x46, 0xb9, 0xc0, 0x21, 0xac, 0xed, 0xe9, 0x76, 0x15, 0xc7, 0xb3, 0xdd, 0x5d, 0x43, 0xaa, 0x28, + 0x17, 0x84, 0xc4, 0x0d, 0x21, 0x7a, 0xe8, 0x01, 0xfe, 0x05, 0xfe, 0x03, 0x6e, 0x20, 0xd1, 0x63, + 0xa4, 0x1e, 0xe0, 0x54, 0xa1, 0x18, 0x09, 0x0e, 0x5c, 0xf8, 0x07, 0x00, 0xed, 0xec, 0xec, 0xc6, + 0x6b, 0xef, 0x7a, 0x7f, 0xc4, 0x52, 0x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x6f, 0x02, 0x73, 0x71, 0x67, 0x2d, 0x8c, 0x33, 0x27, 0xe1, 0x59, 0x32, 0x7f, 0xf3, 0xc4, + 0x79, 0x84, 0x18, 0x6f, 0x73, 0x31, 0xae, 0x63, 0x39, 0x4e, 0x8c, 0xbb, 0x7e, 0xc6, 0x52, 0x94, + 0xe1, 0x7f, 0x11, 0xc8, 0x47, 0x1f, 0x5c, 0xf0, 0xcd, 0x34, 0xb6, 0x85, 0x9d, 0xde, 0xf2, 0x6f, + 0x9d, 0x20, 0x83, 0xe0, 0xfb, 0x21, 0xe7, 0xbb, 0x85, 0xef, 0x0f, 0x63, 0x73, 0x55, 0xee, 0x78, + 0x35, 0xf8, 0xe1, 0xab, 0x5c, 0x79, 0x74, 0x54, 0x20, 0x87, 0x47, 0x05, 0xf2, 0xcb, 0x51, 0x81, + 0x7c, 0xd9, 0x29, 0x8c, 0x1c, 0x76, 0x0a, 0x23, 0x3f, 0x77, 0x0a, 0x23, 0x1f, 0x2c, 0x69, 0xba, + 0x7d, 0xb7, 0x5d, 0x93, 0xeb, 0x6c, 0xd7, 0x29, 0x5c, 0xea, 0xfe, 0x60, 0xbd, 0xd7, 0x05, 0xc3, + 0xbe, 0x6f, 0x50, 0xab, 0x36, 0xc6, 0x3f, 0x58, 0xbf, 0xf6, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x33, 0x15, 0x56, 0x97, 0xfa, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1810,7 +1812,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/orderbook/query.proto", + Metadata: "sgenetwork/sge/orderbook/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/orderbook/types/query.pb.gw.go b/x/orderbook/types/query.pb.gw.go index b3472daf..8de744ce 100644 --- a/x/orderbook/types/query.pb.gw.go +++ b/x/orderbook/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/orderbook/query.proto +// source: sgenetwork/sge/orderbook/query.proto /* Package types is a reverse proxy. diff --git a/x/orderbook/types/stats.pb.go b/x/orderbook/types/stats.pb.go index b7e756d0..ca757d8f 100644 --- a/x/orderbook/types/stats.pb.go +++ b/x/orderbook/types/stats.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/orderbook/stats.proto +// source: sgenetwork/sge/orderbook/stats.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -33,7 +33,7 @@ func (m *OrderBookStats) Reset() { *m = OrderBookStats{} } func (m *OrderBookStats) String() string { return proto.CompactTextString(m) } func (*OrderBookStats) ProtoMessage() {} func (*OrderBookStats) Descriptor() ([]byte, []int) { - return fileDescriptor_bbf84578c9c8bd09, []int{0} + return fileDescriptor_3f23c49f1ff7e427, []int{0} } func (m *OrderBookStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,22 +73,24 @@ func init() { proto.RegisterType((*OrderBookStats)(nil), "sgenetwork.sge.orderbook.OrderBookStats") } -func init() { proto.RegisterFile("sge/orderbook/stats.proto", fileDescriptor_bbf84578c9c8bd09) } +func init() { + proto.RegisterFile("sgenetwork/sge/orderbook/stats.proto", fileDescriptor_3f23c49f1ff7e427) +} -var fileDescriptor_bbf84578c9c8bd09 = []byte{ - // 182 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x4e, 0x4f, 0xd5, - 0xcf, 0x2f, 0x4a, 0x49, 0x2d, 0x4a, 0xca, 0xcf, 0xcf, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6, - 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x28, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, - 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xab, 0x52, 0xb2, 0xe7, 0xe2, 0xf3, 0x07, 0x71, 0x9c, - 0xf2, 0xf3, 0xb3, 0x83, 0x41, 0x3a, 0x84, 0x74, 0xb9, 0x84, 0x8a, 0x52, 0x8b, 0xf3, 0x73, 0xca, - 0x52, 0x53, 0xe2, 0x4b, 0xf3, 0x8a, 0x53, 0x4b, 0x4a, 0x72, 0x52, 0x53, 0x24, 0x18, 0x15, 0x98, - 0x35, 0x38, 0x83, 0x04, 0x61, 0x32, 0xa1, 0x30, 0x09, 0x27, 0xb7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, - 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, - 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, - 0xd5, 0x2f, 0x4e, 0x4f, 0xd5, 0x85, 0x3a, 0x00, 0xc4, 0xd6, 0xaf, 0x40, 0x72, 0x68, 0x49, 0x65, - 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xa5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x5a, - 0x75, 0x21, 0xc6, 0x00, 0x00, 0x00, +var fileDescriptor_3f23c49f1ff7e427 = []byte{ + // 180 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x2f, 0x4a, 0x49, 0x2d, + 0x4a, 0xca, 0xcf, 0xcf, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x92, 0x40, 0xa8, 0xd2, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xab, 0x52, 0xb2, 0xe7, 0xe2, 0xf3, + 0x07, 0x71, 0x9c, 0xf2, 0xf3, 0xb3, 0x83, 0x41, 0x3a, 0x84, 0x74, 0xb9, 0x84, 0x8a, 0x52, 0x8b, + 0xf3, 0x73, 0xca, 0x52, 0x53, 0xe2, 0x4b, 0xf3, 0x8a, 0x53, 0x4b, 0x4a, 0x72, 0x52, 0x53, 0x24, + 0x18, 0x15, 0x98, 0x35, 0x38, 0x83, 0x04, 0x61, 0x32, 0xa1, 0x30, 0x09, 0x27, 0xb7, 0x13, 0x8f, + 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, + 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, + 0x4b, 0xce, 0xcf, 0x05, 0x39, 0x4d, 0x17, 0xd9, 0x99, 0x15, 0x48, 0x0e, 0x2d, 0xa9, 0x2c, 0x48, + 0x2d, 0x4e, 0x62, 0x03, 0xbb, 0xd4, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xf6, 0xfd, 0x77, + 0xd1, 0x00, 0x00, 0x00, } func (m *OrderBookStats) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/client/cli/query_proposal_test.go b/x/ovm/client/cli/query_proposal_test.go index d2c1f551..57a84065 100644 --- a/x/ovm/client/cli/query_proposal_test.go +++ b/x/ovm/client/cli/query_proposal_test.go @@ -6,19 +6,17 @@ import ( "testing" "time" - "github.com/spf13/cast" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/sge-network/sge/testutil/network" "github.com/sge-network/sge/testutil/nullify" "github.com/sge-network/sge/x/ovm/client/cli" "github.com/sge-network/sge/x/ovm/types" + "github.com/spf13/cast" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" ) // Prevent strconv unused error diff --git a/x/ovm/client/cli/query_pub_keys_test.go b/x/ovm/client/cli/query_pub_keys_test.go index 3b1b5b1e..366b4429 100644 --- a/x/ovm/client/cli/query_pub_keys_test.go +++ b/x/ovm/client/cli/query_pub_keys_test.go @@ -4,17 +4,15 @@ import ( "fmt" "testing" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/status" - - tmcli "github.com/tendermint/tendermint/libs/cli" - + tmcli "github.com/cometbft/cometbft/libs/cli" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/sge-network/sge/testutil/network" "github.com/sge-network/sge/testutil/simapp" "github.com/sge-network/sge/x/ovm/client/cli" "github.com/sge-network/sge/x/ovm/types" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/status" ) func networkWithPublicKeys(t *testing.T) (*network.Network, *types.KeyVault) { diff --git a/x/ovm/client/cli/tx_pubkeys_proposal_test.go b/x/ovm/client/cli/tx_pubkeys_proposal_test.go index ce7bb8c0..8754538c 100644 --- a/x/ovm/client/cli/tx_pubkeys_proposal_test.go +++ b/x/ovm/client/cli/tx_pubkeys_proposal_test.go @@ -30,7 +30,7 @@ func TestCmdChangePubkeysListProposal(t *testing.T) { commonArgs := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock), + fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), fmt.Sprintf( "--%s=%s", flags.FlagFees, diff --git a/x/ovm/keeper/keeper.go b/x/ovm/keeper/keeper.go index 2c7b32b6..b53a044a 100644 --- a/x/ovm/keeper/keeper.go +++ b/x/ovm/keeper/keeper.go @@ -3,13 +3,13 @@ package keeper import ( "fmt" - "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/cometbft/cometbft/libs/log" + "github.com/sge-network/sge/x/ovm/types" ) diff --git a/x/ovm/module.go b/x/ovm/module.go index 8a750fd2..a8ac95d5 100644 --- a/x/ovm/module.go +++ b/x/ovm/module.go @@ -9,7 +9,7 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -115,15 +115,9 @@ func NewAppModule( // Name returns the module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the module's message routing key. -func (am AppModule) Route() sdk.Route { return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) } - // QuerierRoute returns the module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the module's Querier. -func (AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { return nil } - // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/ovm/module_simulation.go b/x/ovm/module_simulation.go index 8dd719ab..a198605f 100644 --- a/x/ovm/module_simulation.go +++ b/x/ovm/module_simulation.go @@ -5,7 +5,7 @@ import ( "math/rand" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -20,7 +20,7 @@ import ( var ( _ = sample.AccAddress _ = ovmsimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -38,15 +38,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{} -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { sdr[types.StoreKey] = ovmsimulation.NewDecodeStore(am.cdc) diff --git a/x/ovm/types/codec.go b/x/ovm/types/codec.go index f7578b24..a954cca2 100644 --- a/x/ovm/types/codec.go +++ b/x/ovm/types/codec.go @@ -4,7 +4,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) @@ -34,6 +33,6 @@ var ( func init() { RegisterLegacyAminoCodec(amino) - cryptocodec.RegisterCrypto(amino) + // cryptocodec.RegisterCrypto(amino) sdk.RegisterLegacyAminoCodec(amino) } diff --git a/x/ovm/types/consts.go b/x/ovm/types/consts.go index b6f03afa..3123a8aa 100644 --- a/x/ovm/types/consts.go +++ b/x/ovm/types/consts.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/cosmos/cosmos-sdk/types" +import sdkmath "cosmossdk.io/math" // JWT constants const ( @@ -34,4 +34,4 @@ const ( // minVoteMajorityForDecisionPercentage is the minimum majority percentage of votes for // a proposal to be valid for making decision. -var minVoteMajorityForDecisionPercentage = sdk.NewDecWithPrec(6667, 4) // 66.67% +var minVoteMajorityForDecisionPercentage = sdkmath.LegacyNewDecWithPrec(6667, 4) // 66.67% diff --git a/x/ovm/types/genesis.pb.go b/x/ovm/types/genesis.pb.go index 7d6585ce..968933e4 100644 --- a/x/ovm/types/genesis.pb.go +++ b/x/ovm/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/genesis.proto +// source: sgenetwork/sge/ovm/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -40,7 +40,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_89d2511229f4bb0b, []int{0} + return fileDescriptor_38b9a617643a053f, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -101,31 +101,32 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.ovm.GenesisState") } -func init() { proto.RegisterFile("sge/ovm/genesis.proto", fileDescriptor_89d2511229f4bb0b) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/genesis.proto", fileDescriptor_38b9a617643a053f) } -var fileDescriptor_89d2511229f4bb0b = []byte{ - // 335 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0xc1, 0x4a, 0xc3, 0x40, - 0x10, 0x4d, 0xda, 0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x87, 0xe4, 0x3b, 0x21, 0xfd, 0xcd, 0xc8, - 0xb0, 0x92, 0x2c, 0x08, 0x21, 0x47, 0x7f, 0x34, 0x66, 0x53, 0x0e, 0x7e, 0x39, 0x01, 0x5a, 0xf5, - 0x6e, 0xbd, 0xd7, 0xea, 0x5f, 0x56, 0x86, 0xc9, 0x82, 0x68, 0x32, 0x1a, 0x40, 0x8e, 0x0f, 0x4a, - 0x35, 0x24, 0x11, 0xf9, 0x77, 0xc8, 0x73, 0xbb, 0x88, 0xe6, 0x93, 0x71, 0x50, 0xda, 0xfb, 0x6a, - 0x23, 0x56, 0x43, 0x65, 0x3e, 0xab, 0xec, 0x41, 0xcc, 0x62, 0x47, 0xe5, 0xdc, 0xfb, 0xc9, 0x16, - 0x78, 0x37, 0x5f, 0x3a, 0xfa, 0x62, 0xe9, 0xe8, 0xbf, 0x4b, 0x47, 0xff, 0x5c, 0x39, 0xda, 0x62, - 0xe5, 0x68, 0xdf, 0x2b, 0x47, 0x7b, 0xbb, 0xe0, 0x13, 0x39, 0xce, 0x02, 0x77, 0x24, 0x62, 0x0f, - 0x39, 0x5c, 0x91, 0x79, 0xf1, 0xf6, 0x3e, 0xd4, 0x45, 0x64, 0x9e, 0x00, 0x06, 0x4d, 0x75, 0x92, - 0xeb, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x9e, 0xd5, 0xa7, 0x31, 0x02, 0x00, 0x00, +var fileDescriptor_38b9a617643a053f = []byte{ + // 338 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0x93, 0xb6, 0xaa, 0xbe, 0x2f, 0x05, 0x06, 0x0b, 0xa1, 0x28, 0x42, 0xee, 0x9f, 0x01, + 0x75, 0x00, 0x47, 0x2a, 0x0b, 0x1b, 0x08, 0x06, 0x86, 0x4a, 0xa8, 0x02, 0x89, 0x81, 0x25, 0x72, + 0x2a, 0xcb, 0xad, 0x92, 0xd4, 0x56, 0xae, 0x53, 0xc8, 0x5b, 0xf0, 0x56, 0x74, 0xec, 0xc8, 0x84, + 0x50, 0xfb, 0x22, 0x28, 0xae, 0x0b, 0x54, 0x78, 0x4b, 0xec, 0xdf, 0x39, 0xbe, 0xe7, 0x1e, 0xaf, + 0x03, 0x9c, 0xcd, 0x98, 0x7a, 0x16, 0x79, 0x12, 0x02, 0x67, 0xa1, 0x98, 0x67, 0x61, 0x75, 0x02, + 0x53, 0x20, 0x32, 0x17, 0x4a, 0x20, 0xf4, 0x43, 0x10, 0xe0, 0x8c, 0x88, 0x79, 0x16, 0x1c, 0x72, + 0xc1, 0x85, 0xbe, 0x0e, 0xab, 0xaf, 0x0d, 0x19, 0xb4, 0x2d, 0x5e, 0x92, 0xe6, 0x34, 0x33, 0x56, + 0x41, 0xcf, 0x02, 0x24, 0xac, 0x8c, 0xe6, 0xb4, 0x48, 0x95, 0x61, 0xba, 0x36, 0x93, 0x5c, 0x48, + 0x01, 0x34, 0x35, 0x08, 0xb6, 0x20, 0xa0, 0xa8, 0x32, 0xcf, 0xf4, 0xde, 0x6a, 0xde, 0xde, 0xed, + 0x26, 0xc3, 0x83, 0xa2, 0x8a, 0xa1, 0x0b, 0xaf, 0xb9, 0x99, 0xc3, 0x77, 0x3b, 0x6e, 0xbf, 0x35, + 0x08, 0xc8, 0xdf, 0x4c, 0x64, 0xa4, 0x89, 0xeb, 0xc6, 0xe2, 0xa3, 0xed, 0xdc, 0x1b, 0x1e, 0x5d, + 0x7a, 0xff, 0xbf, 0x07, 0xf4, 0x6b, 0x5a, 0x7c, 0x6c, 0x13, 0x0f, 0x59, 0xf9, 0x58, 0x31, 0x46, + 0xfe, 0x2f, 0x31, 0xff, 0x28, 0xf5, 0x7c, 0x59, 0xc4, 0x09, 0x2b, 0x21, 0x1a, 0x4f, 0xe8, 0x8c, + 0xb3, 0x68, 0x1b, 0x06, 0xfc, 0x7a, 0xa7, 0xde, 0x6f, 0x0d, 0x4e, 0xad, 0xc3, 0x14, 0x71, 0x3a, + 0x1d, 0x0f, 0x59, 0x09, 0x37, 0x5a, 0x35, 0x32, 0x22, 0xe3, 0x7f, 0x64, 0x3c, 0x77, 0x2f, 0x01, + 0xdd, 0x79, 0x07, 0x5b, 0xfb, 0x48, 0x6f, 0xc4, 0x6f, 0xe8, 0x99, 0xbb, 0xd6, 0x37, 0x0c, 0x59, + 0xed, 0x68, 0x9b, 0x7b, 0x5f, 0xee, 0x1c, 0x5e, 0x2d, 0x56, 0xd8, 0x5d, 0xae, 0xb0, 0xfb, 0xb9, + 0xc2, 0xee, 0xeb, 0x1a, 0x3b, 0xcb, 0x35, 0x76, 0xde, 0xd7, 0xd8, 0x79, 0x3a, 0xe1, 0x53, 0x35, + 0x29, 0x62, 0x32, 0x16, 0x59, 0xd5, 0xc1, 0xd9, 0xef, 0x3e, 0x5e, 0x74, 0x23, 0xaa, 0x94, 0x0c, + 0xe2, 0xa6, 0xae, 0xe4, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x01, 0x1f, 0xc4, 0xc4, 0x68, 0x02, + 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/key_vault.go b/x/ovm/types/key_vault.go index 36f2c9fc..1f3f9f50 100644 --- a/x/ovm/types/key_vault.go +++ b/x/ovm/types/key_vault.go @@ -5,7 +5,7 @@ import ( "github.com/golang-jwt/jwt/v4" - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" "github.com/sge-network/sge/utils" ) @@ -57,7 +57,7 @@ func (k *KeyVault) validatePubKeys() error { func (k *KeyVault) MajorityCount() int64 { count := len(k.PublicKeys) - majorityVoteCount := sdk.NewDec(int64(count)). + majorityVoteCount := sdkmath.LegacyNewDec(int64(count)). Mul(minVoteMajorityForDecisionPercentage). Ceil().TruncateInt64() diff --git a/x/ovm/types/key_vault.pb.go b/x/ovm/types/key_vault.pb.go index 422ba09f..fd9d4b98 100644 --- a/x/ovm/types/key_vault.pb.go +++ b/x/ovm/types/key_vault.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/key_vault.proto +// source: sgenetwork/sge/ovm/key_vault.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -32,7 +32,7 @@ func (m *KeyVault) Reset() { *m = KeyVault{} } func (m *KeyVault) String() string { return proto.CompactTextString(m) } func (*KeyVault) ProtoMessage() {} func (*KeyVault) Descriptor() ([]byte, []int) { - return fileDescriptor_58deae9100d60c6b, []int{0} + return fileDescriptor_c57e8bf69362e3d7, []int{0} } func (m *KeyVault) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,21 +72,23 @@ func init() { proto.RegisterType((*KeyVault)(nil), "sgenetwork.sge.ovm.KeyVault") } -func init() { proto.RegisterFile("sge/ovm/key_vault.proto", fileDescriptor_58deae9100d60c6b) } +func init() { + proto.RegisterFile("sgenetwork/sge/ovm/key_vault.proto", fileDescriptor_c57e8bf69362e3d7) +} -var fileDescriptor_58deae9100d60c6b = []byte{ - // 171 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x4e, 0x4f, 0xd5, - 0xcf, 0x2f, 0xcb, 0xd5, 0xcf, 0x4e, 0xad, 0x8c, 0x2f, 0x4b, 0x2c, 0xcd, 0x29, 0xd1, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2a, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x2b, 0x4e, 0x4f, 0xd5, 0xcb, 0x2f, 0xcb, 0x55, 0xd2, 0xe6, 0xe2, 0xf0, 0x4e, 0xad, 0x0c, 0x03, - 0xa9, 0x12, 0x92, 0xe7, 0xe2, 0x2e, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0x8e, 0xcf, 0x4e, 0xad, 0x2c, - 0x96, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x0c, 0xe2, 0x82, 0x08, 0x79, 0xa7, 0x56, 0x16, 0x3b, 0x39, - 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, - 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5a, 0x7a, 0x66, 0x49, 0x46, - 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x7a, 0xaa, 0x2e, 0xd4, 0x1a, 0x10, 0x5b, 0xbf, - 0x02, 0xec, 0x98, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x4b, 0x8c, 0x01, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x8f, 0x9b, 0xca, 0x0f, 0xa4, 0x00, 0x00, 0x00, +var fileDescriptor_c57e8bf69362e3d7 = []byte{ + // 169 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x2f, 0xcb, 0xd5, 0xcf, + 0x4e, 0xad, 0x8c, 0x2f, 0x4b, 0x2c, 0xcd, 0x29, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x42, 0xa8, 0xd1, 0x2b, 0x4e, 0x4f, 0xd5, 0xcb, 0x2f, 0xcb, 0x55, 0xd2, 0xe6, 0xe2, 0xf0, 0x4e, + 0xad, 0x0c, 0x03, 0xa9, 0x12, 0x92, 0xe7, 0xe2, 0x2e, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0x8e, 0xcf, + 0x4e, 0xad, 0x2c, 0x96, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x0c, 0xe2, 0x82, 0x08, 0x79, 0xa7, 0x56, + 0x16, 0x3b, 0x39, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, + 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5a, 0x7a, + 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0xc8, 0x7a, 0x5d, 0x64, 0xa7, 0x54, 0x80, + 0x1d, 0x53, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0x89, 0x31, 0x20, 0x00, 0x00, 0xff, + 0xff, 0x51, 0xe3, 0x8a, 0x8c, 0xaf, 0x00, 0x00, 0x00, } func (m *KeyVault) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/params.pb.go b/x/ovm/types/params.pb.go index b1147ddd..91b5d56d 100644 --- a/x/ovm/types/params.pb.go +++ b/x/ovm/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/params.proto +// source: sgenetwork/sge/ovm/params.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -30,7 +30,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_65fb97c596bcf99f, []int{0} + return fileDescriptor_169f97f56fec979a, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,20 +63,20 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.ovm.Params") } -func init() { proto.RegisterFile("sge/ovm/params.proto", fileDescriptor_65fb97c596bcf99f) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/params.proto", fileDescriptor_169f97f56fec979a) } -var fileDescriptor_65fb97c596bcf99f = []byte{ - // 155 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x29, 0x4e, 0x4f, 0xd5, - 0xcf, 0x2f, 0xcb, 0xd5, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x12, 0x2a, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, - 0xd5, 0xcb, 0x2f, 0xcb, 0x95, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, - 0x95, 0x4a, 0x7c, 0x5c, 0x6c, 0x01, 0x60, 0x9d, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0x39, - 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, - 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5a, 0x7a, 0x66, 0x49, 0x46, - 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x7a, 0xaa, 0x2e, 0xd4, 0x7c, 0x10, 0x5b, 0xbf, - 0x02, 0xec, 0x84, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xc1, 0xc6, 0x80, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x63, 0xe2, 0x33, 0xd8, 0x9a, 0x00, 0x00, 0x00, +var fileDescriptor_169f97f56fec979a = []byte{ + // 153 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2f, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x2f, 0xcb, 0xd5, 0x2f, + 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0x28, 0xd0, + 0x2b, 0x4e, 0x4f, 0xd5, 0xcb, 0x2f, 0xcb, 0x95, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, + 0x83, 0x58, 0x10, 0x95, 0x4a, 0x7c, 0x5c, 0x6c, 0x01, 0x60, 0x9d, 0x56, 0x2c, 0x33, 0x16, 0xc8, + 0x33, 0x38, 0x39, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, + 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5a, 0x7a, + 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0xc8, 0x52, 0x5d, 0x64, 0x07, 0x54, 0x80, + 0x9d, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x36, 0xd8, 0x18, 0x10, 0x00, 0x00, 0xff, + 0xff, 0x0a, 0x76, 0x8b, 0x3f, 0xa5, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/proposal.pb.go b/x/ovm/types/proposal.pb.go index 495f57da..51b7bf6b 100644 --- a/x/ovm/types/proposal.pb.go +++ b/x/ovm/types/proposal.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/proposal.proto +// source: sgenetwork/sge/ovm/proposal.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -56,7 +56,7 @@ func (x ProposalResult) String() string { } func (ProposalResult) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e792f74ac2c59557, []int{0} + return fileDescriptor_68d5b3dc34bd8d1b, []int{0} } // ProposalStatus is the enum type for the proposal status. @@ -88,7 +88,7 @@ func (x ProposalStatus) String() string { } func (ProposalStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e792f74ac2c59557, []int{1} + return fileDescriptor_68d5b3dc34bd8d1b, []int{1} } // PublicKeysChangeProposal is the type for the proposal for additions and @@ -118,7 +118,7 @@ func (m *PublicKeysChangeProposal) Reset() { *m = PublicKeysChangePropos func (m *PublicKeysChangeProposal) String() string { return proto.CompactTextString(m) } func (*PublicKeysChangeProposal) ProtoMessage() {} func (*PublicKeysChangeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_e792f74ac2c59557, []int{0} + return fileDescriptor_68d5b3dc34bd8d1b, []int{0} } func (m *PublicKeysChangeProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -216,44 +216,44 @@ func init() { proto.RegisterType((*PublicKeysChangeProposal)(nil), "sgenetwork.sge.ovm.PublicKeysChangeProposal") } -func init() { proto.RegisterFile("sge/ovm/proposal.proto", fileDescriptor_e792f74ac2c59557) } - -var fileDescriptor_e792f74ac2c59557 = []byte{ - // 532 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 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 0xab, 0x72, 0xd3, 0x21, 0xba, 0xd5, 0xba, 0xb1, - 0x3b, 0xad, 0x5b, 0xcb, 0xd4, 0x6b, 0x46, 0xc3, 0xd0, 0xeb, 0x85, 0x04, 0x7a, 0x01, 0xf1, 0x7e, - 0xa1, 0x62, 0x9a, 0xa4, 0xd9, 0xd6, 0xeb, 0x05, 0x70, 0x28, 0x25, 0xfa, 0x07, 0xbd, 0x66, 0xeb, - 0xf5, 0x42, 0x12, 0x5d, 0xc0, 0xf3, 0xfd, 0x54, 0xff, 0x6c, 0x1a, 0x44, 0xaf, 0x17, 0x52, 0x57, - 0xc3, 0x2d, 0x4b, 0x84, 0xb9, 0xc3, 0x62, 0xd9, 0x15, 0xbb, 0x65, 0xed, 0xb1, 0x14, 0xe1, 0xd9, - 0x7e, 0xa1, 0x52, 0xb3, 0x8d, 0xb6, 0xbe, 0x47, 0x12, 0x67, 0x0d, 0xe3, 0xd6, 0xb0, 0xde, 0x07, - 0x24, 0xd5, 0x77, 0xf7, 0x2b, 0x09, 0x3c, 0xac, 0x24, 0xf0, 0x67, 0x25, 0x81, 0x9f, 0x6b, 0x29, - 0xf1, 0xb0, 0x96, 0x12, 0xbf, 0xd6, 0x52, 0xe2, 0xcb, 0x4b, 0xd7, 0x13, 0x83, 0x59, 0x57, 0xeb, - 0xb1, 0x71, 0x89, 0xbb, 0xf4, 0x55, 0xfc, 0x95, 0x81, 0x2e, 0x7d, 0x8f, 0x56, 0x66, 0x31, 0xa5, - 0xbc, 0x7b, 0x12, 0xae, 0xc7, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xb8, 0x1e, 0x88, - 0x8c, 0x03, 0x00, 0x00, +func init() { proto.RegisterFile("sgenetwork/sge/ovm/proposal.proto", fileDescriptor_68d5b3dc34bd8d1b) } + +var fileDescriptor_68d5b3dc34bd8d1b = []byte{ + // 533 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x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 0x23, 0x19, 0x9e, 0x9a, 0xa4, 0x65, 0xb6, 0xac, 0xea, 0x65, 0x97, + 0xe8, 0x56, 0xfb, 0xd2, 0xee, 0xb6, 0xaf, 0x2c, 0x53, 0xaf, 0x1b, 0x4d, 0x43, 0x6f, 0x14, 0x13, + 0xe8, 0x09, 0xc4, 0xfb, 0x40, 0xd5, 0x34, 0x49, 0xab, 0xa3, 0x37, 0x8a, 0xe0, 0x50, 0x4a, 0xf4, + 0x77, 0x7a, 0xdd, 0xd6, 0x1b, 0xc5, 0x24, 0x3a, 0x85, 0x27, 0xfb, 0xa9, 0xfe, 0xd1, 0x34, 0x88, + 0xde, 0x28, 0xa6, 0xce, 0x47, 0x5b, 0x97, 0x48, 0x73, 0xc7, 0xc5, 0xb2, 0xab, 0x76, 0xdb, 0xda, + 0x73, 0x29, 0xc1, 0x47, 0xfb, 0x40, 0xb5, 0x6e, 0x1b, 0x1d, 0x7d, 0xcf, 0x24, 0xce, 0x9a, 0xc6, + 0x95, 0x61, 0xbd, 0x0d, 0x4c, 0x6a, 0x6f, 0x6e, 0xd6, 0x12, 0xb8, 0x5d, 0x4b, 0xe0, 0xd7, 0x5a, + 0x02, 0xdf, 0x37, 0x52, 0xe2, 0x76, 0x23, 0x25, 0x7e, 0x6c, 0xa4, 0xc4, 0xa7, 0xe7, 0xae, 0x27, + 0x86, 0xf3, 0x9e, 0xd6, 0x67, 0x93, 0xe0, 0x1c, 0x5e, 0xfc, 0x7b, 0x1a, 0x5f, 0xa3, 0xeb, 0x59, + 0xce, 0x28, 0xef, 0xa5, 0xc3, 0xf3, 0xb8, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x9a, 0x7b, + 0x01, 0xad, 0x03, 0x00, 0x00, } func (m *PublicKeysChangeProposal) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/query.pb.go b/x/ovm/types/query.pb.go index 2fb8cd60..f741f14e 100644 --- a/x/ovm/types/query.pb.go +++ b/x/ovm/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/query.proto +// source: sgenetwork/sge/ovm/query.proto package types @@ -8,8 +8,8 @@ import ( fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -39,7 +39,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{0} + return fileDescriptor_a7cac1d680082419, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{1} + return fileDescriptor_a7cac1d680082419, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -124,7 +124,7 @@ func (m *QueryPubKeysRequest) Reset() { *m = QueryPubKeysRequest{} } func (m *QueryPubKeysRequest) String() string { return proto.CompactTextString(m) } func (*QueryPubKeysRequest) ProtoMessage() {} func (*QueryPubKeysRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{2} + return fileDescriptor_a7cac1d680082419, []int{2} } func (m *QueryPubKeysRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -164,7 +164,7 @@ func (m *QueryPubKeysResponse) Reset() { *m = QueryPubKeysResponse{} } func (m *QueryPubKeysResponse) String() string { return proto.CompactTextString(m) } func (*QueryPubKeysResponse) ProtoMessage() {} func (*QueryPubKeysResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{3} + return fileDescriptor_a7cac1d680082419, []int{3} } func (m *QueryPubKeysResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -211,7 +211,7 @@ func (m *QueryPublicKeysChangeProposalRequest) Reset() { *m = QueryPubli func (m *QueryPublicKeysChangeProposalRequest) String() string { return proto.CompactTextString(m) } func (*QueryPublicKeysChangeProposalRequest) ProtoMessage() {} func (*QueryPublicKeysChangeProposalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{4} + return fileDescriptor_a7cac1d680082419, []int{4} } func (m *QueryPublicKeysChangeProposalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -265,7 +265,7 @@ func (m *QueryPublicKeysChangeProposalResponse) Reset() { *m = QueryPubl func (m *QueryPublicKeysChangeProposalResponse) String() string { return proto.CompactTextString(m) } func (*QueryPublicKeysChangeProposalResponse) ProtoMessage() {} func (*QueryPublicKeysChangeProposalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{5} + return fileDescriptor_a7cac1d680082419, []int{5} } func (m *QueryPublicKeysChangeProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -312,7 +312,7 @@ func (m *QueryPublicKeysChangeProposalsRequest) Reset() { *m = QueryPubl func (m *QueryPublicKeysChangeProposalsRequest) String() string { return proto.CompactTextString(m) } func (*QueryPublicKeysChangeProposalsRequest) ProtoMessage() {} func (*QueryPublicKeysChangeProposalsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{6} + return fileDescriptor_a7cac1d680082419, []int{6} } func (m *QueryPublicKeysChangeProposalsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -369,7 +369,7 @@ func (m *QueryPublicKeysChangeProposalsResponse) Reset() { func (m *QueryPublicKeysChangeProposalsResponse) String() string { return proto.CompactTextString(m) } func (*QueryPublicKeysChangeProposalsResponse) ProtoMessage() {} func (*QueryPublicKeysChangeProposalsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_40d67ba9adaeca00, []int{7} + return fileDescriptor_a7cac1d680082419, []int{7} } func (m *QueryPublicKeysChangeProposalsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -423,49 +423,49 @@ func init() { proto.RegisterType((*QueryPublicKeysChangeProposalsResponse)(nil), "sgenetwork.sge.ovm.QueryPublicKeysChangeProposalsResponse") } -func init() { proto.RegisterFile("sge/ovm/query.proto", fileDescriptor_40d67ba9adaeca00) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/query.proto", fileDescriptor_a7cac1d680082419) } -var fileDescriptor_40d67ba9adaeca00 = []byte{ - // 609 bytes of a gzipped FileDescriptorProto +var fileDescriptor_a7cac1d680082419 = []byte{ + // 611 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0x8d, 0x43, 0x08, 0x74, 0x91, 0x8a, 0xba, 0x0d, 0x90, 0x5a, 0xc8, 0x54, 0x86, 0x26, 0xa1, - 0x80, 0x57, 0x0d, 0x97, 0xd2, 0x13, 0x2a, 0x12, 0x1c, 0x90, 0x20, 0x98, 0x1b, 0x97, 0x6a, 0x9d, - 0xac, 0xb6, 0x56, 0x13, 0xaf, 0xeb, 0x5d, 0x27, 0x44, 0x55, 0x2f, 0xfc, 0x02, 0x24, 0x7e, 0x06, - 0x3f, 0x02, 0x24, 0x2e, 0x3d, 0x56, 0xe2, 0xc2, 0x09, 0xa1, 0x84, 0x3f, 0xc1, 0x0d, 0x79, 0x77, - 0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, 0xa5, 0x27, 0x54, 0x24, 0x38, 0x20, 0x41, 0x30, 0x37, 0x2e, 0xd5, 0x3a, + 0x59, 0x6d, 0xad, 0x26, 0x5e, 0xd7, 0xbb, 0x4e, 0x88, 0xaa, 0x5e, 0xf8, 0x05, 0x48, 0xfc, 0x0c, + 0x7e, 0x04, 0x48, 0x5c, 0x7a, 0xac, 0xc4, 0x85, 0x13, 0x42, 0x09, 0x7f, 0x82, 0x1b, 0xf2, 0xee, + 0x3a, 0x1f, 0x34, 0x89, 0x45, 0xb8, 0x59, 0x9e, 0x37, 0xef, 0xbd, 0x79, 0x9e, 0x31, 0xb0, 0x38, + 0x25, 0x01, 0x11, 0x5d, 0x16, 0x1d, 0x21, 0x4e, 0x09, 0x62, 0x9d, 0x36, 0x3a, 0x8e, 0x49, 0xd4, + 0x73, 0xc2, 0x88, 0x09, 0x06, 0xe1, 0xa8, 0xee, 0x70, 0x4a, 0x1c, 0xd6, 0x69, 0x9b, 0x6b, 0x94, + 0x51, 0x26, 0xcb, 0x28, 0x79, 0x52, 0x48, 0x73, 0xbb, 0xc1, 0x78, 0x9b, 0x71, 0xe4, 0x61, 0x4e, + 0x14, 0x05, 0xea, 0xec, 0x78, 0x44, 0xe0, 0x1d, 0x14, 0x62, 0xea, 0x07, 0x58, 0xf8, 0x2c, 0xd0, + 0xd8, 0x5b, 0x94, 0x31, 0xda, 0x22, 0x08, 0x87, 0x3e, 0xc2, 0x41, 0xc0, 0x84, 0x2c, 0x72, 0x5d, + 0xdd, 0x98, 0xe2, 0x29, 0xc4, 0x11, 0x6e, 0xa7, 0x80, 0xdb, 0xd3, 0x00, 0x11, 0x0b, 0x19, 0xc7, + 0x2d, 0x05, 0xb1, 0xd7, 0x00, 0x7c, 0x9d, 0x78, 0xa8, 0xcb, 0x3e, 0x97, 0x1c, 0xc7, 0x84, 0x0b, + 0xfb, 0x15, 0x58, 0x9d, 0x78, 0xcb, 0x43, 0x16, 0x70, 0x02, 0x77, 0x41, 0x51, 0xf1, 0x97, 0x8c, + 0x4d, 0xa3, 0x7a, 0xad, 0x66, 0x3a, 0x17, 0xa7, 0x76, 0x54, 0xcf, 0x7e, 0xe1, 0xec, 0xc7, 0x46, + 0xce, 0xd5, 0x78, 0xfb, 0x46, 0x4a, 0x18, 0x7b, 0x2f, 0x48, 0x6f, 0xa8, 0xb3, 0x0d, 0xd6, 0x26, + 0x5f, 0x6b, 0x21, 0x08, 0x0a, 0x2d, 0x9f, 0x8b, 0x92, 0xb1, 0x79, 0xa9, 0xba, 0xe4, 0xca, 0x67, + 0x3b, 0x02, 0x77, 0x53, 0x6c, 0xcb, 0x6f, 0x24, 0xf0, 0xa7, 0x87, 0x38, 0xa0, 0xa4, 0xae, 0x07, + 0xd2, 0x9c, 0x70, 0x19, 0xe4, 0xfd, 0xa6, 0x34, 0x58, 0x70, 0xf3, 0x7e, 0x13, 0xee, 0x81, 0x22, + 0x17, 0x58, 0xc4, 0xbc, 0x94, 0xdf, 0x34, 0xaa, 0xcb, 0x35, 0x7b, 0xaa, 0x69, 0x4d, 0xf2, 0x46, + 0x22, 0x5d, 0xdd, 0x61, 0x77, 0xc1, 0x56, 0x86, 0xa6, 0x36, 0xfc, 0x12, 0x5c, 0x4d, 0x83, 0xd5, + 0xd9, 0x3c, 0x98, 0x2a, 0x33, 0x83, 0x47, 0xa7, 0x35, 0xe4, 0xb0, 0x3f, 0x19, 0x19, 0xca, 0x69, + 0x84, 0xf0, 0x19, 0x00, 0xa3, 0xb5, 0xd1, 0xda, 0x65, 0x47, 0xed, 0x98, 0x93, 0xec, 0x98, 0xa3, + 0xd6, 0x54, 0xef, 0x98, 0x53, 0xc7, 0x94, 0xe8, 0x5e, 0x77, 0xac, 0xf3, 0xbf, 0x62, 0xfa, 0x6a, + 0x80, 0x72, 0x96, 0x5b, 0x1d, 0x54, 0x1d, 0x2c, 0xa5, 0x43, 0x72, 0xf9, 0x79, 0x17, 0x4b, 0x6a, + 0x44, 0x02, 0x9f, 0x4f, 0x04, 0x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 0xa2, 0x17, 0x12, 0xee, + 0x15, 0xe5, 0xff, 0xfc, 0xd1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, 0x22, 0xb0, 0x10, 0xa9, + 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -661,7 +661,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/ovm/query.proto", + Metadata: "sgenetwork/sge/ovm/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/query.pb.gw.go b/x/ovm/types/query.pb.gw.go index 376dcd1b..7559c9a5 100644 --- a/x/ovm/types/query.pb.gw.go +++ b/x/ovm/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/ovm/query.proto +// source: sgenetwork/sge/ovm/query.proto /* Package types is a reverse proxy. diff --git a/x/ovm/types/stats.pb.go b/x/ovm/types/stats.pb.go index 5b9c357d..52cbb048 100644 --- a/x/ovm/types/stats.pb.go +++ b/x/ovm/types/stats.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/stats.proto +// source: sgenetwork/sge/ovm/stats.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -32,7 +32,7 @@ func (m *ProposalStats) Reset() { *m = ProposalStats{} } func (m *ProposalStats) String() string { return proto.CompactTextString(m) } func (*ProposalStats) ProtoMessage() {} func (*ProposalStats) Descriptor() ([]byte, []int) { - return fileDescriptor_2e241b25311754a9, []int{0} + return fileDescriptor_194a174fcf0c1b0d, []int{0} } func (m *ProposalStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,22 +72,22 @@ func init() { proto.RegisterType((*ProposalStats)(nil), "sgenetwork.sge.ovm.ProposalStats") } -func init() { proto.RegisterFile("sge/ovm/stats.proto", fileDescriptor_2e241b25311754a9) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/stats.proto", fileDescriptor_194a174fcf0c1b0d) } -var fileDescriptor_2e241b25311754a9 = []byte{ - // 183 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x4e, 0x4f, 0xd5, - 0xcf, 0x2f, 0xcb, 0xd5, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x12, 0x2a, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, - 0xcb, 0x2f, 0xcb, 0x55, 0x72, 0xe4, 0xe2, 0x0d, 0x28, 0xca, 0x2f, 0xc8, 0x2f, 0x4e, 0xcc, 0x09, - 0x06, 0x29, 0x15, 0x32, 0xe0, 0x12, 0x29, 0x28, 0x4d, 0xca, 0x4e, 0xad, 0x2c, 0x8e, 0x4f, 0xce, - 0x48, 0xcc, 0x4b, 0x4f, 0x8d, 0x4f, 0xce, 0x2f, 0xcd, 0x2b, 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, - 0x09, 0x12, 0x82, 0xca, 0x39, 0x83, 0xa5, 0x9c, 0x41, 0x32, 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, - 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, - 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, - 0x9f, 0xab, 0x5f, 0x9c, 0x9e, 0xaa, 0x0b, 0xb5, 0x1c, 0xc4, 0xd6, 0xaf, 0x00, 0x3b, 0xaf, 0xa4, - 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x3e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x67, - 0x44, 0xfa, 0x02, 0xb6, 0x00, 0x00, 0x00, +var fileDescriptor_194a174fcf0c1b0d = []byte{ + // 181 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x2f, 0xcb, 0xd5, 0x2f, + 0x2e, 0x49, 0x2c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0xc8, 0xeb, 0x15, + 0xa7, 0xa7, 0xea, 0xe5, 0x97, 0xe5, 0x2a, 0x39, 0x72, 0xf1, 0x06, 0x14, 0xe5, 0x17, 0xe4, 0x17, + 0x27, 0xe6, 0x04, 0x83, 0x94, 0x0a, 0x19, 0x70, 0x89, 0x14, 0x94, 0x26, 0x65, 0xa7, 0x56, 0x16, + 0xc7, 0x27, 0x67, 0x24, 0xe6, 0xa5, 0xa7, 0xc6, 0x27, 0xe7, 0x97, 0xe6, 0x95, 0x48, 0x30, 0x2a, + 0x30, 0x6a, 0xb0, 0x04, 0x09, 0x41, 0xe5, 0x9c, 0xc1, 0x52, 0xce, 0x20, 0x19, 0x27, 0x87, 0x13, + 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, + 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0x05, 0x39, 0x48, 0x17, 0xd9, 0x71, 0x15, 0x60, 0xe7, 0x95, 0x54, 0x16, + 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xdd, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x85, 0x9e, + 0xf0, 0xc1, 0x00, 0x00, 0x00, } func (m *ProposalStats) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/ticket.pb.go b/x/ovm/types/ticket.pb.go index 745fbcff..36661ab7 100644 --- a/x/ovm/types/ticket.pb.go +++ b/x/ovm/types/ticket.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/ticket.proto +// source: sgenetwork/sge/ovm/ticket.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -35,7 +35,7 @@ func (m *PubkeysChangeProposalPayload) Reset() { *m = PubkeysChangePropo func (m *PubkeysChangeProposalPayload) String() string { return proto.CompactTextString(m) } func (*PubkeysChangeProposalPayload) ProtoMessage() {} func (*PubkeysChangeProposalPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_d64e3af56c76dec2, []int{0} + return fileDescriptor_927c5f9e79be7a2e, []int{0} } func (m *PubkeysChangeProposalPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -90,7 +90,7 @@ func (m *ProposalVotePayload) Reset() { *m = ProposalVotePayload{} } func (m *ProposalVotePayload) String() string { return proto.CompactTextString(m) } func (*ProposalVotePayload) ProtoMessage() {} func (*ProposalVotePayload) Descriptor() ([]byte, []int) { - return fileDescriptor_d64e3af56c76dec2, []int{1} + return fileDescriptor_927c5f9e79be7a2e, []int{1} } func (m *ProposalVotePayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -138,28 +138,28 @@ func init() { proto.RegisterType((*ProposalVotePayload)(nil), "sgenetwork.sge.ovm.ProposalVotePayload") } -func init() { proto.RegisterFile("sge/ovm/ticket.proto", fileDescriptor_d64e3af56c76dec2) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/ticket.proto", fileDescriptor_927c5f9e79be7a2e) } -var fileDescriptor_d64e3af56c76dec2 = []byte{ - // 274 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xbd, 0x4a, 0xfc, 0x40, - 0x14, 0x47, 0x33, 0xff, 0xff, 0x22, 0x38, 0xab, 0x16, 0xa3, 0x45, 0x10, 0x19, 0xe3, 0x16, 0x92, - 0xc6, 0x09, 0xa8, 0x0f, 0x20, 0x5a, 0x2d, 0x36, 0x21, 0x85, 0x85, 0x4d, 0xc8, 0xc7, 0x65, 0x36, - 0xe4, 0xe3, 0x86, 0xcc, 0x24, 0x6e, 0xde, 0xc2, 0xc7, 0xb2, 0xdc, 0xd2, 0x52, 0x92, 0x17, 0x91, - 0x24, 0x1b, 0x58, 0xb0, 0x1b, 0x0e, 0x87, 0xc3, 0xdc, 0x1f, 0xbd, 0x50, 0x12, 0x1c, 0x6c, 0x72, - 0x47, 0x27, 0x51, 0x0a, 0x5a, 0x94, 0x15, 0x6a, 0x64, 0x4c, 0x49, 0x28, 0x40, 0x7f, 0x60, 0x95, - 0x0a, 0x25, 0x41, 0x60, 0x93, 0x5f, 0xb2, 0xd9, 0x6c, 0x50, 0xc3, 0xe4, 0xad, 0x42, 0x7a, 0xe5, - 0xd6, 0x61, 0x0a, 0xad, 0x7a, 0xd9, 0x04, 0x85, 0x04, 0xb7, 0xc2, 0x12, 0x55, 0x90, 0xb9, 0x41, - 0x9b, 0x61, 0x10, 0xb3, 0x6b, 0xba, 0x2c, 0xeb, 0x30, 0x4b, 0x22, 0x7f, 0x70, 0x4c, 0x62, 0xfd, - 0xb7, 0x8f, 0x3d, 0x3a, 0xa1, 0x57, 0x68, 0x15, 0xbb, 0xa1, 0x27, 0x19, 0x04, 0x31, 0x54, 0x7e, - 0x52, 0xc4, 0xb0, 0x35, 0xff, 0x59, 0xc4, 0x3e, 0xf5, 0x96, 0x13, 0x5b, 0x0f, 0x68, 0x95, 0xd1, - 0xf3, 0x39, 0xfb, 0x86, 0x1a, 0x0e, 0xd3, 0x7b, 0xec, 0x27, 0xb1, 0x49, 0x2c, 0x62, 0x2f, 0x3c, - 0x3a, 0xa3, 0x75, 0xcc, 0x1e, 0xe9, 0x62, 0xf8, 0xe9, 0x98, 0x3c, 0xbb, 0xb7, 0xc4, 0xdf, 0x93, - 0xc4, 0x61, 0xd7, 0x1b, 0xed, 0xe7, 0xa7, 0xaf, 0x8e, 0x93, 0x5d, 0xc7, 0xc9, 0x4f, 0xc7, 0xc9, - 0x67, 0xcf, 0x8d, 0x5d, 0xcf, 0x8d, 0xef, 0x9e, 0x1b, 0xef, 0xb7, 0x32, 0xd1, 0x9b, 0x3a, 0x14, - 0x11, 0xe6, 0x8e, 0x92, 0x70, 0xb7, 0x8f, 0x0d, 0x6f, 0x67, 0x3b, 0x4d, 0xd8, 0x96, 0xa0, 0xc2, - 0xa3, 0x71, 0x9a, 0x87, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x3c, 0xf1, 0x66, 0x5a, 0x01, - 0x00, 0x00, +var fileDescriptor_927c5f9e79be7a2e = []byte{ + // 273 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xbd, 0x4e, 0x84, 0x40, + 0x14, 0x46, 0x19, 0xdd, 0x98, 0x38, 0xab, 0x16, 0xd8, 0x10, 0xa3, 0xb3, 0xb8, 0x85, 0xa1, 0x71, + 0x48, 0xd4, 0x07, 0x30, 0x5a, 0x6d, 0x6c, 0x08, 0x85, 0x85, 0x0d, 0xe1, 0xe7, 0x86, 0x25, 0x0c, + 0x5c, 0xc2, 0x0c, 0xb8, 0xbc, 0x85, 0x8f, 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xc4, 0x89, 0x5a, + 0x57, 0x01, 0x0f, 0x31, 0xeb, 0x53, 0xdc, 0x4e, 0xb3, 0x6c, 0xc6, 0x9a, 0x4d, 0x01, 0x32, 0x38, + 0x1a, 0xd2, 0xdc, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x9b, 0xd6, 0x02, 0x4e, 0x70, 0x01, 0x00, + 0x00, } func (m *PubkeysChangeProposalPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/ticket_jwt.go b/x/ovm/types/ticket_jwt.go index 365e92df..705c14b6 100644 --- a/x/ovm/types/ticket_jwt.go +++ b/x/ovm/types/ticket_jwt.go @@ -7,11 +7,9 @@ import ( "strings" gtime "time" - "github.com/golang-jwt/jwt/v4" - - "github.com/tendermint/tendermint/types/time" - + "github.com/cometbft/cometbft/types/time" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/golang-jwt/jwt/v4" ) // jwtTicket is the Ticket implementer. diff --git a/x/ovm/types/tx.pb.go b/x/ovm/types/tx.pb.go index fd933b36..87c2aa0f 100644 --- a/x/ovm/types/tx.pb.go +++ b/x/ovm/types/tx.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/tx.proto +// source: sgenetwork/sge/ovm/tx.proto package types import ( context "context" fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -40,7 +40,7 @@ func (m *MsgSubmitPubkeysChangeProposalRequest) Reset() { *m = MsgSubmit func (m *MsgSubmitPubkeysChangeProposalRequest) String() string { return proto.CompactTextString(m) } func (*MsgSubmitPubkeysChangeProposalRequest) ProtoMessage() {} func (*MsgSubmitPubkeysChangeProposalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a52019debc2dbb94, []int{0} + return fileDescriptor_f051013778245841, []int{0} } func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -95,7 +95,7 @@ func (m *MsgSubmitPubkeysChangeProposalResponse) Reset() { func (m *MsgSubmitPubkeysChangeProposalResponse) String() string { return proto.CompactTextString(m) } func (*MsgSubmitPubkeysChangeProposalResponse) ProtoMessage() {} func (*MsgSubmitPubkeysChangeProposalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a52019debc2dbb94, []int{1} + return fileDescriptor_f051013778245841, []int{1} } func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,7 +147,7 @@ func (m *MsgVotePubkeysChangeRequest) Reset() { *m = MsgVotePubkeysChang func (m *MsgVotePubkeysChangeRequest) String() string { return proto.CompactTextString(m) } func (*MsgVotePubkeysChangeRequest) ProtoMessage() {} func (*MsgVotePubkeysChangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a52019debc2dbb94, []int{2} + return fileDescriptor_f051013778245841, []int{2} } func (m *MsgVotePubkeysChangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -207,7 +207,7 @@ func (m *MsgVotePubkeysChangeResponse) Reset() { *m = MsgVotePubkeysChan func (m *MsgVotePubkeysChangeResponse) String() string { return proto.CompactTextString(m) } func (*MsgVotePubkeysChangeResponse) ProtoMessage() {} func (*MsgVotePubkeysChangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a52019debc2dbb94, []int{3} + return fileDescriptor_f051013778245841, []int{3} } func (m *MsgVotePubkeysChangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -250,31 +250,31 @@ func init() { proto.RegisterType((*MsgVotePubkeysChangeResponse)(nil), "sgenetwork.sge.ovm.MsgVotePubkeysChangeResponse") } -func init() { proto.RegisterFile("sge/ovm/tx.proto", fileDescriptor_a52019debc2dbb94) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/tx.proto", fileDescriptor_f051013778245841) } -var fileDescriptor_a52019debc2dbb94 = []byte{ - // 335 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x4f, 0x4b, 0xf3, 0x40, - 0x10, 0xc6, 0xbb, 0x2d, 0xf4, 0x7d, 0x5d, 0x28, 0xea, 0x1e, 0x24, 0xb4, 0x12, 0x4a, 0xc0, 0xd2, - 0x8b, 0x89, 0xe8, 0x45, 0x3d, 0x49, 0x3d, 0x89, 0x14, 0x4a, 0x04, 0x41, 0x2f, 0xa5, 0x89, 0xc3, - 0x36, 0xc4, 0x64, 0x62, 0x66, 0x93, 0x36, 0xdf, 0xc2, 0x43, 0x3f, 0x94, 0xc7, 0x1e, 0x3d, 0x4a, - 0xfb, 0x45, 0xa4, 0x69, 0x7b, 0x90, 0x5a, 0x5b, 0x7a, 0xdb, 0x67, 0x96, 0xf9, 0xcd, 0x33, 0x7f, - 0xf8, 0x01, 0x49, 0xb0, 0x30, 0x0d, 0x2c, 0x35, 0x34, 0xa3, 0x18, 0x15, 0x0a, 0x41, 0x12, 0x42, - 0x50, 0x03, 0x8c, 0x7d, 0x93, 0x24, 0x98, 0x98, 0x06, 0xc6, 0x13, 0x3f, 0x69, 0x93, 0x7c, 0x48, - 0x9c, 0xc0, 0x53, 0x9d, 0xc4, 0xf1, 0x21, 0xa3, 0xdb, 0x7e, 0x2f, 0x94, 0xd0, 0x89, 0x31, 0x42, - 0xea, 0xbd, 0xda, 0xf0, 0x96, 0x00, 0x29, 0xa1, 0xf1, 0x7f, 0x6e, 0x0c, 0x3d, 0x85, 0xb1, 0xc6, - 0xea, 0xac, 0xb9, 0x67, 0x2f, 0xa5, 0x38, 0xe2, 0x65, 0xe5, 0xb9, 0x3e, 0x28, 0xad, 0x98, 0x7f, - 0x2c, 0x94, 0xd1, 0xe2, 0x8d, 0x4d, 0x68, 0x8a, 0x30, 0x24, 0x98, 0xb1, 0x29, 0x71, 0x5d, 0x20, - 0xca, 0xd9, 0xff, 0xed, 0xa5, 0x34, 0x06, 0xbc, 0xd6, 0x26, 0xf9, 0x88, 0x0a, 0x7e, 0x10, 0x76, - 0x36, 0x25, 0x1a, 0x7c, 0x3f, 0x45, 0x05, 0x71, 0xd7, 0x87, 0xac, 0xeb, 0x85, 0x2f, 0x30, 0xd4, - 0x4a, 0x75, 0xd6, 0xac, 0xd8, 0x95, 0x3c, 0x7c, 0x0f, 0xd9, 0xdd, 0x2c, 0x68, 0x5c, 0xf2, 0xe3, - 0xdf, 0x0b, 0x6f, 0xb2, 0x7c, 0x3e, 0x2a, 0xf2, 0x52, 0x9b, 0xa4, 0x18, 0x31, 0x5e, 0xfb, 0xa3, - 0x79, 0x71, 0x65, 0xae, 0xae, 0xc3, 0xdc, 0x6a, 0x17, 0xd5, 0xeb, 0x5d, 0x52, 0x17, 0xc6, 0x53, - 0x7e, 0xb8, 0xd2, 0x95, 0xb0, 0xd6, 0x00, 0xd7, 0x0d, 0xbe, 0x7a, 0xb6, 0x7d, 0xc2, 0xbc, 0x6e, - 0xeb, 0xe6, 0x63, 0xa2, 0xb3, 0xf1, 0x44, 0x67, 0x5f, 0x13, 0x9d, 0xbd, 0x4f, 0xf5, 0xc2, 0x78, - 0xaa, 0x17, 0x3e, 0xa7, 0x7a, 0xe1, 0xb9, 0x21, 0x3d, 0xd5, 0x4f, 0x1c, 0xd3, 0xc5, 0xc0, 0x22, - 0x09, 0xa7, 0x0b, 0xec, 0xec, 0x6d, 0x0d, 0xe7, 0x17, 0x9c, 0x45, 0x40, 0x4e, 0x39, 0xbf, 0xe2, - 0x8b, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x56, 0x90, 0x2a, 0xbf, 0xd9, 0x02, 0x00, 0x00, +var fileDescriptor_f051013778245841 = []byte{ + // 334 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00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28, 0xf8, 0x45, + 0xd8, 0xda, 0x14, 0x6b, 0xd0, 0xfd, 0x44, 0x28, 0x90, 0x5d, 0x1f, 0xd2, 0xae, 0x17, 0x3e, 0xc3, + 0x50, 0x2b, 0xd5, 0x49, 0xb3, 0x62, 0x57, 0xf2, 0xe7, 0x3b, 0x48, 0x6f, 0xb3, 0x47, 0xe3, 0x82, + 0x1e, 0xfd, 0x3d, 0x78, 0x9d, 0xe5, 0xb3, 0x51, 0x91, 0x96, 0xda, 0xc8, 0xd9, 0x88, 0xd0, 0xda, + 0x3f, 0xcb, 0xb3, 0x4b, 0x73, 0xf9, 0x1c, 0xe6, 0x46, 0xb7, 0xa8, 0x5e, 0x6d, 0xd3, 0x3a, 0x37, + 0x9e, 0xd0, 0x83, 0xa5, 0xad, 0x98, 0xb5, 0x02, 0xb8, 0xea, 0xe3, 0xab, 0xa7, 0x9b, 0x37, 0xcc, + 0xe6, 0xb6, 0xae, 0xdf, 0x27, 0x3a, 0x19, 0x4f, 0x74, 0xf2, 0x39, 0xd1, 0xc9, 0xdb, 0x54, 0x2f, + 0x8c, 0xa7, 0x7a, 0xe1, 0x63, 0xaa, 0x17, 0x9e, 0x1a, 0xdc, 0x53, 0xfd, 0xd8, 0x31, 0x5d, 0x11, + 0x64, 0x99, 0x3d, 0xf9, 0x99, 0xdf, 0xe1, 0x2c, 0xc1, 0x69, 0x04, 0xe8, 0x94, 0xf3, 0x14, 0x9f, + 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x13, 0x33, 0xc7, 0x36, 0xe4, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -398,7 +398,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/ovm/tx.proto", + Metadata: "sgenetwork/sge/ovm/tx.proto", } func (m *MsgSubmitPubkeysChangeProposalRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/ovm/types/vote.pb.go b/x/ovm/types/vote.pb.go index 96892946..7bb5f782 100644 --- a/x/ovm/types/vote.pb.go +++ b/x/ovm/types/vote.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/ovm/vote.proto +// source: sgenetwork/sge/ovm/vote.proto package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -51,7 +51,7 @@ func (x ProposalVote) String() string { } func (ProposalVote) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bbd1cf24e657c25c, []int{0} + return fileDescriptor_f9405d800fb1f522, []int{0} } // Vote is the type for the proposal vote. @@ -66,7 +66,7 @@ func (m *Vote) Reset() { *m = Vote{} } func (m *Vote) String() string { return proto.CompactTextString(m) } func (*Vote) ProtoMessage() {} func (*Vote) Descriptor() ([]byte, []int) { - return fileDescriptor_bbd1cf24e657c25c, []int{0} + return fileDescriptor_f9405d800fb1f522, []int{0} } func (m *Vote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,26 +114,26 @@ func init() { proto.RegisterType((*Vote)(nil), "sgenetwork.sge.ovm.Vote") } -func init() { proto.RegisterFile("sge/ovm/vote.proto", fileDescriptor_bbd1cf24e657c25c) } +func init() { proto.RegisterFile("sgenetwork/sge/ovm/vote.proto", fileDescriptor_f9405d800fb1f522) } -var fileDescriptor_bbd1cf24e657c25c = []byte{ +var fileDescriptor_f9405d800fb1f522 = []byte{ // 250 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0x4e, 0x4f, 0xd5, - 0xcf, 0x2f, 0xcb, 0xd5, 0x2f, 0xcb, 0x2f, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x02, - 0x89, 0xe5, 0xa5, 0x96, 0x94, 0xe7, 0x17, 0x65, 0xeb, 0x15, 0xa7, 0xa7, 0xea, 0xe5, 0x97, 0xe5, - 0x2a, 0x45, 0x73, 0xb1, 0x84, 0xe5, 0x97, 0xa4, 0x0a, 0xc9, 0x72, 0x71, 0x15, 0x94, 0x26, 0xe5, - 0x64, 0x26, 0xc7, 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x71, 0x42, 0x44, - 0xbc, 0x53, 0x2b, 0x85, 0x4c, 0xb8, 0x58, 0x40, 0x06, 0x49, 0x30, 0x29, 0x30, 0x6a, 0xf0, 0x19, - 0x29, 0xe8, 0x61, 0x9a, 0xa4, 0x17, 0x50, 0x94, 0x5f, 0x90, 0x5f, 0x9c, 0x98, 0x03, 0x32, 0x2e, - 0x08, 0xac, 0x5a, 0x2b, 0x8a, 0x8b, 0x07, 0x59, 0x54, 0x48, 0x96, 0x4b, 0x32, 0x20, 0xc8, 0x3f, - 0xc0, 0x3f, 0xd8, 0xd1, 0x27, 0x3e, 0xcc, 0x3f, 0xc4, 0x35, 0x3e, 0xd4, 0x2f, 0x38, 0xc0, 0xd5, - 0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x48, 0x84, 0x4b, 0x00, 0x55, 0xda, 0xcf, 0x5f, - 0x80, 0x51, 0x48, 0x94, 0x4b, 0x10, 0x55, 0x34, 0xd2, 0x35, 0x58, 0x80, 0xc9, 0xc9, 0xe1, 0xc4, - 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, - 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xd4, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, - 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xd3, 0x53, 0x75, 0xa1, 0x0e, 0x05, 0xb1, 0xf5, 0x2b, 0xc0, - 0x61, 0x52, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x15, 0x63, 0x40, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xa0, 0xd0, 0x72, 0x8c, 0x2b, 0x01, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0xcf, 0x2f, 0xcb, 0xd5, 0x2f, + 0xcb, 0x2f, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0x48, 0xeb, 0x15, 0xa7, + 0xa7, 0xea, 0xe5, 0x97, 0xe5, 0x2a, 0x45, 0x73, 0xb1, 0x84, 0xe5, 0x97, 0xa4, 0x0a, 0xc9, 0x72, + 0x71, 0x15, 0x94, 0x26, 0xe5, 0x64, 0x26, 0xc7, 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, + 0x70, 0x06, 0x71, 0x42, 0x44, 0xbc, 0x53, 0x2b, 0x85, 0x4c, 0xb8, 0x58, 0x40, 0x06, 0x49, 0x30, + 0x29, 0x30, 0x6a, 0xf0, 0x19, 0x29, 0xe8, 0x61, 0x9a, 0xa4, 0x17, 0x50, 0x94, 0x5f, 0x90, 0x5f, + 0x9c, 0x98, 0x03, 0x32, 0x2e, 0x08, 0xac, 0x5a, 0x2b, 0x8a, 0x8b, 0x07, 0x59, 0x54, 0x48, 0x96, + 0x4b, 0x32, 0x20, 0xc8, 0x3f, 0xc0, 0x3f, 0xd8, 0xd1, 0x27, 0x3e, 0xcc, 0x3f, 0xc4, 0x35, 0x3e, + 0xd4, 0x2f, 0x38, 0xc0, 0xd5, 0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x48, 0x84, 0x4b, + 0x00, 0x55, 0xda, 0xcf, 0x5f, 0x80, 0x51, 0x48, 0x94, 0x4b, 0x10, 0x55, 0x34, 0xd2, 0x35, 0x58, + 0x80, 0xc9, 0xc9, 0xe1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, + 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xd4, 0xd2, + 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0x41, 0xa1, 0xa0, 0x8b, 0x1c, 0x22, 0x15, + 0xe0, 0x30, 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x8a, 0x31, 0x20, 0x00, 0x00, + 0xff, 0xff, 0x27, 0xa6, 0x07, 0x11, 0x36, 0x01, 0x00, 0x00, } func (m *Vote) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/keeper/keeper.go b/x/reward/keeper/keeper.go index 48bd1646..ea47108c 100644 --- a/x/reward/keeper/keeper.go +++ b/x/reward/keeper/keeper.go @@ -3,13 +3,13 @@ package keeper import ( "fmt" - "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/cometbft/cometbft/libs/log" + "github.com/sge-network/sge/utils" "github.com/sge-network/sge/x/reward/types" ) diff --git a/x/reward/module.go b/x/reward/module.go index 58aaf585..17347bad 100644 --- a/x/reward/module.go +++ b/x/reward/module.go @@ -8,7 +8,7 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -112,17 +112,9 @@ func NewAppModule( } } -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) } - // Deprecated: use RegisterServices func (AppModule) QuerierRoute() string { return types.RouterKey } -// Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} - // RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) diff --git a/x/reward/module_simulation.go b/x/reward/module_simulation.go index 9666b8d9..78f9c61c 100644 --- a/x/reward/module_simulation.go +++ b/x/reward/module_simulation.go @@ -7,7 +7,7 @@ import ( "github.com/google/uuid" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" @@ -22,7 +22,7 @@ import ( var ( _ = sample.AccAddress _ = rewardsimulation.FindAccount - _ = simappparams.StakePerAccount + _ = simtestutil.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -68,15 +68,10 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } -// RandomizedParams creates randomized param changes for the simulator -func (am AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange { - return []simtypes.ParamChange{} -} - // RegisterStoreDecoder registers a decoder func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} diff --git a/x/reward/simulation/campaign.go b/x/reward/simulation/campaign.go index fcad693f..f3407ac5 100644 --- a/x/reward/simulation/campaign.go +++ b/x/reward/simulation/campaign.go @@ -7,8 +7,8 @@ import ( "github.com/google/uuid" + simappparams "cosmossdk.io/simapp/params" "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" diff --git a/x/reward/types/authz.pb.go b/x/reward/types/authz.pb.go index a81ee0ba..fd69ee28 100644 --- a/x/reward/types/authz.pb.go +++ b/x/reward/types/authz.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/authz.proto +// source: sgenetwork/sge/reward/authz.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -34,7 +34,7 @@ func (m *CreateCampaignAuthorization) Reset() { *m = CreateCampaignAutho func (m *CreateCampaignAuthorization) String() string { return proto.CompactTextString(m) } func (*CreateCampaignAuthorization) ProtoMessage() {} func (*CreateCampaignAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_4c01411aa0c16fcd, []int{0} + return fileDescriptor_bb308e8b318ee96e, []int{0} } func (m *CreateCampaignAuthorization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,7 +73,7 @@ func (m *UpdateCampaignAuthorization) Reset() { *m = UpdateCampaignAutho func (m *UpdateCampaignAuthorization) String() string { return proto.CompactTextString(m) } func (*UpdateCampaignAuthorization) ProtoMessage() {} func (*UpdateCampaignAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_4c01411aa0c16fcd, []int{1} + return fileDescriptor_bb308e8b318ee96e, []int{1} } func (m *UpdateCampaignAuthorization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -107,26 +107,25 @@ func init() { proto.RegisterType((*UpdateCampaignAuthorization)(nil), "sgenetwork.sge.reward.UpdateCampaignAuthorization") } -func init() { proto.RegisterFile("sge/reward/authz.proto", fileDescriptor_4c01411aa0c16fcd) } +func init() { proto.RegisterFile("sgenetwork/sge/reward/authz.proto", fileDescriptor_bb308e8b318ee96e) } -var fileDescriptor_4c01411aa0c16fcd = []byte{ - // 241 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x90, 0xb1, 0x4a, 0x03, 0x41, - 0x14, 0x45, 0x77, 0x1a, 0xc1, 0xb5, 0x0b, 0x46, 0x44, 0x71, 0x22, 0x56, 0x5a, 0x38, 0x53, 0xd8, - 0x0b, 0x66, 0x2b, 0xc1, 0x4a, 0xb0, 0x11, 0x44, 0x26, 0xd9, 0xc7, 0xec, 0x10, 0x67, 0xde, 0x30, - 0xef, 0x2d, 0xd1, 0x7c, 0x85, 0x9f, 0x95, 0x32, 0xa5, 0x58, 0x04, 0xd9, 0xfd, 0x11, 0xd9, 0x5d, - 0xfd, 0x84, 0x74, 0xb7, 0x38, 0xf7, 0x14, 0x27, 0x3f, 0x22, 0x0b, 0x3a, 0xc1, 0xd2, 0xa4, 0x52, - 0x9b, 0x9a, 0xab, 0x95, 0x8a, 0x09, 0x19, 0x47, 0x63, 0xb2, 0x10, 0x80, 0x97, 0x98, 0x16, 0x8a, - 0x2c, 0xa8, 0x01, 0x39, 0x39, 0xb4, 0x68, 0xb1, 0x27, 0x74, 0xb7, 0x06, 0xf8, 0xe2, 0x25, 0x3f, - 0x2d, 0x12, 0x18, 0x86, 0xc2, 0xf8, 0x68, 0x9c, 0x0d, 0x77, 0x35, 0x57, 0x98, 0xdc, 0xca, 0xb0, - 0xc3, 0x30, 0xba, 0xcd, 0x0f, 0x28, 0x42, 0x28, 0x5f, 0xdf, 0x9c, 0x77, 0x7c, 0x2c, 0xce, 0xc5, - 0xe5, 0xfe, 0xf4, 0x6c, 0xbd, 0x9d, 0x64, 0xdf, 0xdb, 0xc9, 0x78, 0x8e, 0xe4, 0x91, 0xa8, 0x5c, - 0x28, 0x87, 0xda, 0x1b, 0xae, 0xd4, 0x7d, 0xe0, 0xc7, 0xbc, 0x7f, 0x3c, 0x74, 0x87, 0x4e, 0xff, - 0x14, 0xcb, 0x5d, 0xe9, 0xa7, 0xc5, 0xba, 0x91, 0x62, 0xd3, 0x48, 0xf1, 0xd3, 0x48, 0xf1, 0xd9, - 0xca, 0x6c, 0xd3, 0xca, 0xec, 0xab, 0x95, 0xd9, 0xf3, 0x95, 0x75, 0x5c, 0xd5, 0x33, 0x35, 0x47, - 0xaf, 0xc9, 0xc2, 0xf5, 0x5f, 0x90, 0x6e, 0xeb, 0xf7, 0xff, 0x6a, 0xfc, 0x11, 0x81, 0x66, 0x7b, - 0x7d, 0x89, 0x9b, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x74, 0xf1, 0xbf, 0x92, 0x50, 0x01, 0x00, - 0x00, +var fileDescriptor_bb308e8b318ee96e = []byte{ + // 240 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x2f, 0x4a, 0x2d, 0x4f, 0x2c, + 0x4a, 0xd1, 0x4f, 0x2c, 0x2d, 0xc9, 0xa8, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x45, + 0x28, 0xd1, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0x28, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, + 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0x95, 0x62, 0xb9, 0xa4, 0x9d, 0x8b, 0x52, 0x13, 0x4b, 0x52, 0x9d, + 0x13, 0x73, 0x0b, 0x12, 0x33, 0xd3, 0xf3, 0x1c, 0x4b, 0x4b, 0x32, 0xf2, 0x8b, 0x32, 0xab, 0x12, + 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0xec, 0xb8, 0xb8, 0x8b, 0x0b, 0x52, 0xf3, 0x52, 0xe2, 0x73, 0x32, + 0x73, 0x33, 0x4b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x64, 0x4f, 0xdc, 0x93, 0x67, 0xb8, + 0x75, 0x4f, 0x5e, 0x34, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0xb8, 0x38, 0x25, 0x5b, 0x2f, 0x33, 0x5f, + 0x3f, 0x37, 0xb1, 0x24, 0x43, 0xcf, 0x33, 0xaf, 0x24, 0x88, 0x0b, 0xac, 0xc3, 0x07, 0xa4, 0x01, + 0x64, 0x7c, 0x68, 0x41, 0x0a, 0xad, 0x8c, 0x77, 0x72, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, + 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, + 0x63, 0x39, 0x86, 0x28, 0xcd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x50, + 0x38, 0xe9, 0x22, 0x87, 0x59, 0x05, 0x2c, 0xd4, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, + 0x21, 0x61, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x98, 0xbf, 0x6f, 0x90, 0x5b, 0x01, 0x00, 0x00, } func (m *CreateCampaignAuthorization) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/types/campaign.pb.go b/x/reward/types/campaign.pb.go index b1249d6a..eb3ac9d3 100644 --- a/x/reward/types/campaign.pb.go +++ b/x/reward/types/campaign.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/campaign.proto +// source: sgenetwork/sge/reward/campaign.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -61,7 +61,7 @@ func (m *Campaign) Reset() { *m = Campaign{} } func (m *Campaign) String() string { return proto.CompactTextString(m) } func (*Campaign) ProtoMessage() {} func (*Campaign) Descriptor() ([]byte, []int) { - return fileDescriptor_6d1d1b3139567e36, []int{0} + return fileDescriptor_e2342810052fed89, []int{0} } func (m *Campaign) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -191,7 +191,7 @@ func (m *Pool) Reset() { *m = Pool{} } func (m *Pool) String() string { return proto.CompactTextString(m) } func (*Pool) ProtoMessage() {} func (*Pool) Descriptor() ([]byte, []int) { - return fileDescriptor_6d1d1b3139567e36, []int{1} + return fileDescriptor_e2342810052fed89, []int{1} } func (m *Pool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -225,44 +225,46 @@ func init() { proto.RegisterType((*Pool)(nil), "sgenetwork.sge.reward.Pool") } -func init() { proto.RegisterFile("sge/reward/campaign.proto", fileDescriptor_6d1d1b3139567e36) } +func init() { + proto.RegisterFile("sgenetwork/sge/reward/campaign.proto", fileDescriptor_e2342810052fed89) +} -var fileDescriptor_6d1d1b3139567e36 = []byte{ +var fileDescriptor_e2342810052fed89 = []byte{ // 545 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x3c, - 0x1c, 0xc7, 0x9b, 0xa7, 0x69, 0x9b, 0xba, 0x5d, 0x1f, 0xf0, 0x98, 0x66, 0x3a, 0x29, 0x09, 0x45, - 0x88, 0x22, 0xb4, 0x44, 0xda, 0xc4, 0x85, 0xdb, 0x52, 0x90, 0xd8, 0x05, 0x4d, 0xde, 0x76, 0xe1, - 0x52, 0x79, 0xa9, 0x95, 0x45, 0x6b, 0xe2, 0xc8, 0x76, 0x19, 0x7d, 0x17, 0xe3, 0x5d, 0xed, 0xb8, - 0x23, 0xe2, 0x10, 0xa1, 0xf4, 0xb6, 0x23, 0xaf, 0x00, 0xd9, 0xc9, 0xc2, 0x86, 0x60, 0xda, 0x25, - 0xfe, 0xfd, 0xf9, 0x7e, 0x3f, 0x49, 0xec, 0x9f, 0xc1, 0x53, 0x11, 0x51, 0x9f, 0xd3, 0x73, 0xc2, - 0x67, 0x7e, 0x48, 0x92, 0x8c, 0xc4, 0x51, 0xea, 0x65, 0x9c, 0x49, 0x06, 0x37, 0x44, 0x44, 0x53, - 0x2a, 0xcf, 0x19, 0x3f, 0xf3, 0x44, 0x44, 0xbd, 0x52, 0x35, 0x7c, 0x12, 0xb1, 0x88, 0x69, 0x85, - 0xaf, 0xa2, 0x52, 0x3c, 0xdc, 0xbc, 0xc5, 0x29, 0x97, 0xb2, 0x31, 0xfa, 0xda, 0x02, 0xd6, 0xa4, - 0x02, 0x43, 0x04, 0x3a, 0x21, 0xa7, 0x44, 0x32, 0x8e, 0x0c, 0xd7, 0x18, 0x77, 0xf1, 0x4d, 0x0a, - 0x5d, 0xd0, 0x5c, 0xc4, 0x33, 0xf4, 0x9f, 0xaa, 0x06, 0x83, 0x22, 0x77, 0x9a, 0xc7, 0xfb, 0xef, - 0xae, 0x73, 0x47, 0x55, 0xb1, 0x7a, 0xc0, 0x21, 0xb0, 0x32, 0xce, 0x12, 0x26, 0x29, 0x47, 0x4d, - 0x6d, 0xae, 0x73, 0xb8, 0x0b, 0x2c, 0x21, 0x09, 0x97, 0x53, 0x29, 0x90, 0xe9, 0x1a, 0x63, 0x33, - 0xd8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69, 0x46, 0xf9, 0xef, 0xc3, 0xe8, 0xab, 0x23, 0xc4, 0x8f, 0xcb, 0xd6, - 0x01, 0xe5, 0xf5, 0x46, 0x43, 0x60, 0x26, 0x54, 0x12, 0xb4, 0xa6, 0x47, 0x46, 0xc7, 0xa3, 0x0b, - 0x03, 0x98, 0xea, 0xad, 0x70, 0x02, 0x5a, 0x92, 0x49, 0x32, 0x2f, 0xa7, 0x31, 0xd8, 0x56, 0x1f, - 0xf1, 0x3d, 0x77, 0x36, 0x42, 0x26, 0x12, 0x26, 0xc4, 0xec, 0xcc, 0x8b, 0x99, 0x9f, 0x10, 0x79, - 0xea, 0xed, 0xa7, 0xf2, 0x67, 0xee, 0xf4, 0x97, 0x24, 0x99, 0xbf, 0x1d, 0x69, 0xcf, 0x08, 0x97, - 0x5e, 0x05, 0x11, 0x19, 0x4d, 0x65, 0x35, 0xbc, 0x0f, 0x85, 0x68, 0xcf, 0x08, 0x97, 0xde, 0x60, - 0x72, 0x59, 0xd8, 0xc6, 0x55, 0x61, 0x1b, 0x3f, 0x0a, 0xdb, 0xb8, 0x58, 0xd9, 0x8d, 0xab, 0x95, - 0xdd, 0xf8, 0xb6, 0xb2, 0x1b, 0x9f, 0x5e, 0x45, 0xb1, 0x3c, 0x5d, 0x9c, 0x78, 0x21, 0x4b, 0x7c, - 0x11, 0xd1, 0xed, 0x6a, 0x07, 0x55, 0xec, 0x7f, 0xb9, 0xb9, 0x72, 0xea, 0xe4, 0xc5, 0x49, 0x5b, - 0x5f, 0xb9, 0xdd, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x08, 0x2a, 0x3e, 0xd5, 0x03, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x41, 0x6f, 0xd3, 0x30, + 0x14, 0xc7, 0x1b, 0x96, 0xb6, 0xa9, 0xdb, 0x15, 0xf0, 0x98, 0xb0, 0x3a, 0x29, 0x09, 0x01, 0x44, + 0x11, 0x5a, 0x2a, 0x6d, 0xe2, 0xc2, 0x6d, 0x29, 0x48, 0xec, 0x82, 0x26, 0x6f, 0xbb, 0x70, 0xa9, + 0xbc, 0xd4, 0xca, 0xa2, 0x35, 0x71, 0x64, 0xbb, 0x8c, 0x7e, 0x8b, 0xf1, 0xad, 0x76, 0xdc, 0x11, + 0x71, 0x88, 0x50, 0x7a, 0xdb, 0x91, 0x4f, 0x80, 0xec, 0x64, 0xd9, 0x86, 0xc6, 0xb4, 0x4b, 0xfd, + 0xde, 0xf3, 0xff, 0xff, 0x73, 0x63, 0xbf, 0x07, 0x5e, 0x89, 0x88, 0xa6, 0x54, 0x9e, 0x32, 0x7e, + 0x32, 0x12, 0x11, 0x1d, 0x71, 0x7a, 0x4a, 0xf8, 0x74, 0x14, 0x92, 0x24, 0x23, 0x71, 0x94, 0xfa, + 0x19, 0x67, 0x92, 0xc1, 0xf5, 0x6b, 0x95, 0x2f, 0x22, 0xea, 0x97, 0xaa, 0xc1, 0xb3, 0x88, 0x45, + 0x4c, 0x2b, 0x46, 0x2a, 0x2a, 0xc5, 0x03, 0xef, 0x6e, 0x64, 0xb9, 0x94, 0x1a, 0xef, 0x47, 0x13, + 0x58, 0xe3, 0xea, 0x0c, 0x88, 0x40, 0x3b, 0xe4, 0x94, 0x48, 0xc6, 0x91, 0xe1, 0x1a, 0xc3, 0x0e, + 0xbe, 0x4a, 0xa1, 0x0b, 0x56, 0xe6, 0xf1, 0x14, 0x3d, 0x52, 0xd5, 0xa0, 0x5f, 0xe4, 0xce, 0xca, + 0xe1, 0xee, 0xc7, 0xcb, 0xdc, 0x51, 0x55, 0xac, 0x7e, 0xe0, 0x00, 0x58, 0x19, 0x67, 0x09, 0x93, + 0x94, 0xa3, 0x15, 0x6d, 0xae, 0x73, 0xb8, 0x0d, 0x2c, 0x21, 0x09, 0x97, 0x13, 0x29, 0x90, 0xe9, + 0x1a, 0x43, 0x33, 0x78, 0x5e, 0xe4, 0x4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xe8, 0xa9, 0x27, 0xc4, + 0x4f, 0xcb, 0xad, 0x3d, 0xca, 0xeb, 0x8b, 0x86, 0xc0, 0x4c, 0xa8, 0x24, 0x68, 0x55, 0xb7, 0x8c, + 0x8e, 0xbd, 0x33, 0x03, 0x98, 0xea, 0x54, 0x38, 0x06, 0x4d, 0xc9, 0x24, 0x99, 0x95, 0xdd, 0x18, + 0x6c, 0xaa, 0x3f, 0xf1, 0x2b, 0x77, 0xd6, 0x43, 0x26, 0x12, 0x26, 0xc4, 0xf4, 0xc4, 0x8f, 0xd9, + 0x28, 0x21, 0xf2, 0xd8, 0xdf, 0x4d, 0xe5, 0x9f, 0xdc, 0xe9, 0x2d, 0x48, 0x32, 0xfb, 0xe0, 0x69, + 0x8f, 0x87, 0x4b, 0xaf, 0x82, 0x88, 0x8c, 0xa6, 0xb2, 0x6a, 0xde, 0x87, 0x42, 0xb4, 0xc7, 0xc3, + 0xa5, 0x37, 0x18, 0x9f, 0x17, 0xb6, 0x71, 0x51, 0xd8, 0xc6, 0xef, 0xc2, 0x36, 0xce, 0x96, 0x76, + 0xe3, 0x62, 0x69, 0x37, 0x7e, 0x2e, 0xed, 0xc6, 0xd7, 0xb7, 0x51, 0x2c, 0x8f, 0xe7, 0x47, 0x7e, + 0xc8, 0x12, 0x35, 0x64, 0x9b, 0x37, 0x07, 0xee, 0xfb, 0xd5, 0xc8, 0xa9, 0x97, 0x17, 0x47, 0x2d, + 0x3d, 0x72, 0xdb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x16, 0x1a, 0x01, 0xab, 0xeb, 0x03, 0x00, 0x00, } diff --git a/x/reward/types/genesis.pb.go b/x/reward/types/genesis.pb.go index c3bdca04..0730f389 100644 --- a/x/reward/types/genesis.pb.go +++ b/x/reward/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/genesis.proto +// source: sgenetwork/sge/reward/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -36,7 +36,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_cf3f52dafc32b537, []int{0} + return fileDescriptor_3ffb36204eb6ffc8, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -104,31 +104,33 @@ func init() { proto.RegisterType((*GenesisState)(nil), "sgenetwork.sge.reward.GenesisState") } -func init() { proto.RegisterFile("sge/reward/genesis.proto", fileDescriptor_cf3f52dafc32b537) } +func init() { + proto.RegisterFile("sgenetwork/sge/reward/genesis.proto", fileDescriptor_3ffb36204eb6ffc8) +} -var fileDescriptor_cf3f52dafc32b537 = []byte{ - // 324 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x4e, 0x4f, 0xd5, - 0x2f, 0x4a, 0x2d, 0x4f, 0x2c, 0x4a, 0xd1, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2d, 0x06, 0xf1, 0x4b, 0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x8a, - 0xd3, 0x53, 0xf5, 0x20, 0x8a, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x2a, 0xf4, 0x41, 0x2c, - 0x88, 0x62, 0x29, 0x71, 0x24, 0x63, 0x0a, 0x12, 0x8b, 0x12, 0x73, 0xa1, 0xa6, 0x48, 0x49, 0x22, - 0x49, 0x24, 0x27, 0xe6, 0x16, 0x24, 0x66, 0xa6, 0xe7, 0x61, 0xd1, 0x03, 0xa1, 0x20, 0x12, 0x4a, - 0x2b, 0x99, 0xb9, 0x78, 0xdc, 0x21, 0x6e, 0x09, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0xb2, 0xe6, 0x62, - 0x83, 0x18, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xab, 0x87, 0xd5, 0x6d, 0x7a, 0x01, - 0x60, 0x45, 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0xb5, 0x08, 0x79, 0x71, 0xf1, 0xc2, - 0x2c, 0x8e, 0xcf, 0xc9, 0x2c, 0x2e, 0x91, 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x36, 0x92, 0xc7, 0x61, - 0x86, 0x33, 0x54, 0x2d, 0xd4, 0x14, 0x1e, 0x98, 0x5e, 0x9f, 0xcc, 0xe2, 0x12, 0x21, 0x17, 0x2e, - 0x6e, 0x88, 0x32, 0x88, 0x49, 0xcc, 0x60, 0x93, 0x70, 0xb9, 0x26, 0x08, 0x4c, 0x41, 0xcd, 0xe1, - 0x82, 0x08, 0x82, 0x4d, 0x49, 0xe1, 0x12, 0x87, 0x9a, 0x92, 0x54, 0x19, 0x9f, 0x9c, 0x58, 0x92, - 0x9a, 0x9e, 0x5f, 0x54, 0x09, 0x31, 0x91, 0x05, 0x6c, 0xa2, 0x3a, 0x7e, 0x13, 0x2b, 0x9d, 0xa1, - 0x7a, 0xa0, 0x66, 0x8b, 0x14, 0xa1, 0x89, 0x63, 0xb3, 0x05, 0x39, 0x04, 0x58, 0x89, 0xb4, 0x05, - 0x25, 0x24, 0x90, 0x6c, 0x41, 0x84, 0x88, 0x93, 0xf3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, - 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, - 0xcb, 0x31, 0x44, 0x69, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x17, - 0xa7, 0xa7, 0xea, 0x42, 0x6d, 0x02, 0xb1, 0xf5, 0x2b, 0x60, 0xf1, 0x5e, 0x52, 0x59, 0x90, 0x5a, - 0x9c, 0xc4, 0x06, 0x8e, 0x77, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x9d, 0xa4, 0xe3, - 0x8d, 0x02, 0x00, 0x00, +var fileDescriptor_3ffb36204eb6ffc8 = []byte{ + // 323 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x2f, 0x4a, 0x2d, 0x4f, 0x2c, + 0x4a, 0xd1, 0x07, 0x09, 0x16, 0x67, 0x16, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0x22, + 0x14, 0xe9, 0x15, 0xa7, 0xa7, 0xea, 0x41, 0x14, 0x49, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x55, + 0xe8, 0x83, 0x58, 0x10, 0xc5, 0x52, 0x4a, 0xd8, 0x4d, 0x2c, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x1a, + 0x28, 0xa5, 0x82, 0x5d, 0x4d, 0x72, 0x62, 0x6e, 0x41, 0x62, 0x66, 0x7a, 0x1e, 0x7e, 0x93, 0x20, + 0x14, 0x44, 0x8d, 0xd2, 0x4a, 0x66, 0x2e, 0x1e, 0x77, 0x88, 0x63, 0x83, 0x4b, 0x12, 0x4b, 0x52, + 0x85, 0xac, 0xb9, 0xd8, 0x20, 0x56, 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0xc9, 0xea, 0x61, + 0x75, 0xbc, 0x5e, 0x00, 0x58, 0x91, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x2d, 0x42, + 0x5e, 0x5c, 0xbc, 0x30, 0x37, 0xc4, 0xe7, 0x64, 0x16, 0x97, 0x48, 0x30, 0x29, 0x30, 0x6b, 0x70, + 0x1b, 0xc9, 0xe3, 0x30, 0xc3, 0x19, 0xaa, 0x16, 0x6a, 0x0a, 0x0f, 0x4c, 0xaf, 0x4f, 0x66, 0x71, + 0x89, 0x90, 0x0b, 0x17, 0x37, 0x44, 0x19, 0xc4, 0x24, 0x66, 0xb0, 0x49, 0xb8, 0x5c, 0x13, 0x04, + 0xa6, 0xa0, 0xe6, 0x70, 0x41, 0x04, 0xc1, 0xa6, 0xa4, 0x70, 0x89, 0x43, 0x4d, 0x49, 0xaa, 0x8c, + 0x4f, 0x4e, 0x2c, 0x49, 0x4d, 0xcf, 0x2f, 0xaa, 0x84, 0x98, 0xc8, 0x02, 0x36, 0x51, 0x1d, 0xbf, + 0x89, 0x95, 0xce, 0x50, 0x3d, 0x50, 0xb3, 0x45, 0x8a, 0xd0, 0xc4, 0xb1, 0xd9, 0x82, 0x1c, 0x02, + 0xac, 0x44, 0xda, 0x82, 0x12, 0x12, 0x48, 0xb6, 0x20, 0x42, 0xc4, 0xc9, 0xf9, 0xc4, 0x23, 0x39, + 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, + 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x34, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, + 0xf3, 0x73, 0x41, 0x31, 0xad, 0x8b, 0x1c, 0xeb, 0x15, 0xb0, 0x78, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, + 0x4e, 0x62, 0x03, 0xc7, 0xbb, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x10, 0x3d, 0x4a, 0xb9, + 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/types/params.pb.go b/x/reward/types/params.pb.go index f8fbfd28..7eeb0a25 100644 --- a/x/reward/types/params.pb.go +++ b/x/reward/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/params.proto +// source: sgenetwork/sge/reward/params.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -30,7 +30,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_13b61197a30d8929, []int{0} + return fileDescriptor_8a1741b7d6117690, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,20 +63,22 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.reward.Params") } -func init() { proto.RegisterFile("sge/reward/params.proto", fileDescriptor_13b61197a30d8929) } +func init() { + proto.RegisterFile("sgenetwork/sge/reward/params.proto", fileDescriptor_8a1741b7d6117690) +} -var fileDescriptor_13b61197a30d8929 = []byte{ - // 157 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x4e, 0x4f, 0xd5, - 0x2f, 0x4a, 0x2d, 0x4f, 0x2c, 0x4a, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2d, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xa8, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd0, 0x07, - 0xb1, 0x20, 0x8a, 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x9a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, - 0x70, 0x72, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, - 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xcd, 0xf4, 0xcc, - 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0xf4, 0x54, 0x5d, 0xa8, 0x15, 0x20, - 0xb6, 0x7e, 0x05, 0xcc, 0x21, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xb3, 0x8d, 0x01, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x57, 0xc4, 0x87, 0xa3, 0x00, 0x00, 0x00, +var fileDescriptor_8a1741b7d6117690 = []byte{ + // 155 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x2f, 0x4a, 0x2d, 0x4f, 0x2c, + 0x4a, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x45, 0xa8, 0xd1, 0x2b, 0x4e, 0x4f, 0xd5, 0x83, 0xa8, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, + 0xab, 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x9a, 0xad, 0x58, 0x66, + 0x2c, 0x90, 0x67, 0x70, 0x72, 0x3e, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, + 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, + 0xcd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x90, 0xd5, 0xba, 0xc8, 0xce, + 0xa8, 0x80, 0x39, 0xa4, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0xb6, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0xc7, 0x4e, 0x39, 0x14, 0xae, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/types/query.pb.go b/x/reward/types/query.pb.go index 8405e5e4..6ebc22fd 100644 --- a/x/reward/types/query.pb.go +++ b/x/reward/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/query.proto +// source: sgenetwork/sge/reward/query.proto package types @@ -8,8 +8,8 @@ import ( fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{0} + return fileDescriptor_102f3c906d210d41, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{1} + return fileDescriptor_102f3c906d210d41, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,7 +122,7 @@ func (m *QueryCampaignRequest) Reset() { *m = QueryCampaignRequest{} } func (m *QueryCampaignRequest) String() string { return proto.CompactTextString(m) } func (*QueryCampaignRequest) ProtoMessage() {} func (*QueryCampaignRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{2} + return fileDescriptor_102f3c906d210d41, []int{2} } func (m *QueryCampaignRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -167,7 +167,7 @@ func (m *QueryCampaignResponse) Reset() { *m = QueryCampaignResponse{} } func (m *QueryCampaignResponse) String() string { return proto.CompactTextString(m) } func (*QueryCampaignResponse) ProtoMessage() {} func (*QueryCampaignResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{3} + return fileDescriptor_102f3c906d210d41, []int{3} } func (m *QueryCampaignResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -212,7 +212,7 @@ func (m *QueryCampaignsRequest) Reset() { *m = QueryCampaignsRequest{} } func (m *QueryCampaignsRequest) String() string { return proto.CompactTextString(m) } func (*QueryCampaignsRequest) ProtoMessage() {} func (*QueryCampaignsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{4} + return fileDescriptor_102f3c906d210d41, []int{4} } func (m *QueryCampaignsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -259,7 +259,7 @@ func (m *QueryCampaignsResponse) Reset() { *m = QueryCampaignsResponse{} func (m *QueryCampaignsResponse) String() string { return proto.CompactTextString(m) } func (*QueryCampaignsResponse) ProtoMessage() {} func (*QueryCampaignsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{5} + return fileDescriptor_102f3c906d210d41, []int{5} } func (m *QueryCampaignsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -311,7 +311,7 @@ func (m *QueryRewardRequest) Reset() { *m = QueryRewardRequest{} } func (m *QueryRewardRequest) String() string { return proto.CompactTextString(m) } func (*QueryRewardRequest) ProtoMessage() {} func (*QueryRewardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{6} + return fileDescriptor_102f3c906d210d41, []int{6} } func (m *QueryRewardRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -356,7 +356,7 @@ func (m *QueryRewardResponse) Reset() { *m = QueryRewardResponse{} } func (m *QueryRewardResponse) String() string { return proto.CompactTextString(m) } func (*QueryRewardResponse) ProtoMessage() {} func (*QueryRewardResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{7} + return fileDescriptor_102f3c906d210d41, []int{7} } func (m *QueryRewardResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -401,7 +401,7 @@ func (m *QueryRewardsRequest) Reset() { *m = QueryRewardsRequest{} } func (m *QueryRewardsRequest) String() string { return proto.CompactTextString(m) } func (*QueryRewardsRequest) ProtoMessage() {} func (*QueryRewardsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{8} + return fileDescriptor_102f3c906d210d41, []int{8} } func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -447,7 +447,7 @@ func (m *QueryRewardsResponse) Reset() { *m = QueryRewardsResponse{} } func (m *QueryRewardsResponse) String() string { return proto.CompactTextString(m) } func (*QueryRewardsResponse) ProtoMessage() {} func (*QueryRewardsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{9} + return fileDescriptor_102f3c906d210d41, []int{9} } func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -501,7 +501,7 @@ func (m *QueryRewardsByAddressRequest) Reset() { *m = QueryRewardsByAddr func (m *QueryRewardsByAddressRequest) String() string { return proto.CompactTextString(m) } func (*QueryRewardsByAddressRequest) ProtoMessage() {} func (*QueryRewardsByAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{10} + return fileDescriptor_102f3c906d210d41, []int{10} } func (m *QueryRewardsByAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -555,7 +555,7 @@ func (m *QueryRewardsByAddressResponse) Reset() { *m = QueryRewardsByAdd func (m *QueryRewardsByAddressResponse) String() string { return proto.CompactTextString(m) } func (*QueryRewardsByAddressResponse) ProtoMessage() {} func (*QueryRewardsByAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{11} + return fileDescriptor_102f3c906d210d41, []int{11} } func (m *QueryRewardsByAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -612,7 +612,7 @@ func (m *QueryRewardsByAddressAndCategoryRequest) Reset() { func (m *QueryRewardsByAddressAndCategoryRequest) String() string { return proto.CompactTextString(m) } func (*QueryRewardsByAddressAndCategoryRequest) ProtoMessage() {} func (*QueryRewardsByAddressAndCategoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{12} + return fileDescriptor_102f3c906d210d41, []int{12} } func (m *QueryRewardsByAddressAndCategoryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -675,7 +675,7 @@ func (m *QueryRewardsByAddressAndCategoryResponse) Reset() { func (m *QueryRewardsByAddressAndCategoryResponse) String() string { return proto.CompactTextString(m) } func (*QueryRewardsByAddressAndCategoryResponse) ProtoMessage() {} func (*QueryRewardsByAddressAndCategoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{13} + return fileDescriptor_102f3c906d210d41, []int{13} } func (m *QueryRewardsByAddressAndCategoryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -729,7 +729,7 @@ func (m *QueryRewardsByCampaignRequest) Reset() { *m = QueryRewardsByCam func (m *QueryRewardsByCampaignRequest) String() string { return proto.CompactTextString(m) } func (*QueryRewardsByCampaignRequest) ProtoMessage() {} func (*QueryRewardsByCampaignRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{14} + return fileDescriptor_102f3c906d210d41, []int{14} } func (m *QueryRewardsByCampaignRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -783,7 +783,7 @@ func (m *QueryRewardsByCampaignResponse) Reset() { *m = QueryRewardsByCa func (m *QueryRewardsByCampaignResponse) String() string { return proto.CompactTextString(m) } func (*QueryRewardsByCampaignResponse) ProtoMessage() {} func (*QueryRewardsByCampaignResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_324afa5f2186a8c0, []int{15} + return fileDescriptor_102f3c906d210d41, []int{15} } func (m *QueryRewardsByCampaignResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -845,63 +845,64 @@ func init() { proto.RegisterType((*QueryRewardsByCampaignResponse)(nil), "sgenetwork.sge.reward.QueryRewardsByCampaignResponse") } -func init() { proto.RegisterFile("sge/reward/query.proto", fileDescriptor_324afa5f2186a8c0) } - -var fileDescriptor_324afa5f2186a8c0 = []byte{ - // 848 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0x4b, 0x4f, 0x13, 0x51, - 0x14, 0xc7, 0x7b, 0x41, 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xf2, 0xea, 0xd1, 0x67, 0xdf, 0x7e, 0xef, 0x74, 0x8c, 0x81, - 0x66, 0x32, 0x9b, 0x4c, 0x4b, 0x27, 0xb3, 0xe6, 0x5f, 0x09, 0x78, 0x83, 0x70, 0xb7, 0x2a, 0x1c, - 0x26, 0x9b, 0x25, 0xf0, 0x75, 0x3b, 0x32, 0x15, 0xcc, 0x58, 0xf2, 0x18, 0x9c, 0x27, 0x0e, 0xd1, - 0x46, 0x3c, 0xaa, 0xbb, 0xe6, 0x76, 0xde, 0x49, 0x17, 0x61, 0x07, 0xe1, 0x9e, 0xf2, 0x4a, 0x85, - 0x40, 0xb9, 0xca, 0x3a, 0x4d, 0x07, 0xb4, 0x96, 0x68, 0x09, 0x8e, 0x76, 0x11, 0xc6, 0x5b, 0xa1, - 0x31, 0x78, 0x85, 0x70, 0x58, 0x1c, 0x97, 0xe6, 0x7d, 0xab, 0x5a, 0xb3, 0xcd, 0xfb, 0x56, 0xbd, - 0x69, 0xf5, 0x29, 0x0e, 0x13, 0x85, 0x4b, 0x8d, 0x60, 0xe4, 0x45, 0xa8, 0xf4, 0x12, 0xe1, 0x2e, - 0xf9, 0x05, 0x40, 0x80, 0x2c, 0x65, 0x85, 0x26, 0x03, 0xd9, 0x4a, 0xa4, 0x18, 0x47, 0x1a, 0x87, - 0xd1, 0xe6, 0x48, 0x0c, 0xde, 0x23, 0xdc, 0xe7, 0x9f, 0x6d, 0x30, 0x17, 0x20, 0x95, 0x7f, 0x23, - 0x46, 0xe6, 0x8f, 0xe6, 0x24, 0x41, 0x67, 0x38, 0xe8, 0x24, 0x24, 0x5a, 0x80, 0x9a, 0xdb, 0x72, - 0xaa, 0x17, 0xe1, 0x07, 0xc2, 0x17, 0x9a, 0x8c, 0x63, 0xb8, 0x7d, 0x14, 0x90, 0xda, 0xc5, 0x14, - 0x59, 0x38, 0xb6, 0xbf, 0xac, 0xe9, 0x26, 0xaf, 0xe9, 0x2a, 0xcc, 0x07, 0xae, 0xc9, 0xdc, 0x56, - 0x1b, 0xa7, 0x08, 0x5f, 0x10, 0x3e, 0x53, 0x33, 0x21, 0x21, 0x98, 0xba, 0xfe, 0xef, 0xfd, 0xca, - 0x11, 0xbd, 0x64, 0x01, 0x0b, 0xbc, 0x80, 0xeb, 0x70, 0xad, 0x55, 0x01, 0x87, 0x03, 0xa0, 0x72, - 0xf8, 0x17, 0x97, 0x96, 0x77, 0xf7, 0x35, 0xb4, 0xb7, 0xaf, 0xa1, 0x5f, 0xfb, 0x1a, 0x7a, 0x7d, - 0xa0, 0x85, 0xf6, 0x0e, 0xb4, 0xd0, 0xf7, 0x03, 0x2d, 0xb4, 0x96, 0xb0, 0x1d, 0xef, 0x41, 0x3e, - 0x65, 0x6c, 0xd0, 0x4c, 0x4d, 0xf0, 0x27, 0x2a, 0xbc, 0x57, 0xc8, 0x11, 0x96, 0x0a, 0xf3, 0x9f, - 0x3f, 0x73, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x25, 0x82, 0xdd, 0x83, 0xdc, 0x0d, 0x00, 0x00, +func init() { proto.RegisterFile("sgenetwork/sge/reward/query.proto", fileDescriptor_102f3c906d210d41) } + +var fileDescriptor_102f3c906d210d41 = []byte{ + // 849 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0x4b, 0x6b, 0x13, 0x51, + 0x14, 0xc7, 0x73, 0x5b, 0x4d, 0xdb, 0x5b, 0x91, 0x7a, 0x6c, 0xa5, 0xc4, 0x76, 0xda, 0x8c, 0x35, + 0x8f, 0x3e, 0x66, 0xe8, 0x43, 0x45, 0x7c, 0x94, 0xb6, 0x60, 0xb7, 0x35, 0xe0, 0xa6, 0x20, 0x65, + 0xd2, 0x5c, 0xc6, 0x41, 0x93, 0x49, 0xe7, 0x4e, 0xac, 0xa1, 0x04, 0xc4, 0x8d, 0xa0, 0x08, 0x42, + 0x71, 0xeb, 0xca, 0x0f,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0xff, 0xdc, 0xa8, 0xd6, 0x52, + 0x22, 0x8d, 0xbb, 0x2d, 0x9f, 0xda, 0xfb, 0x39, 0x16, 0xc9, 0x08, 0x17, 0x35, 0x85, 0x07, 0x59, + 0xcc, 0x15, 0x01, 0x29, 0x72, 0xc1, 0x00, 0xee, 0x2e, 0x59, 0x39, 0x16, 0xb1, 0x2f, 0x53, 0xbd, + 0x55, 0xd7, 0xf1, 0x90, 0xc7, 0x52, 0xe4, 0x5f, 0xc2, 0xbd, 0xb2, 0x44, 0x41, 0x30, 0xe6, 0x43, + 0x20, 0x5d, 0x05, 0x43, 0xcd, 0x4d, 0xdd, 0xf0, 0xc4, 0x96, 0x25, 0xc3, 0x1d, 0x8c, 0xeb, 0xad, + 0x10, 0xd1, 0x13, 0x1a, 0xef, 0x9b, 0x56, 0xed, 0x9b, 0xc6, 0xcf, 0x86, 0xe8, 0x9b, 0xb6, 0x66, + 0x98, 0x44, 0xf8, 0x66, 0x8e, 0x78, 0xaa, 0xef, 0x10, 0xbe, 0xe0, 0xcd, 0xd0, 0x12, 0xbf, 0xfb, + 0x04, 0xf8, 0xb0, 0xda, 0x40, 0xd9, 0xc5, 0x28, 0x93, 0x81, 0x94, 0x3c, 0x7f, 0x03, 0x66, 0x42, + 0xf4, 0x3d, 0xc3, 0x12, 0xfa, 0xf7, 0x42, 0x9e, 0x04, 0x69, 0x57, 0x3f, 0x09, 0x1c, 0x35, 0xe0, + 0x24, 0x70, 0x37, 0x79, 0x12, 0xf8, 0x43, 0xf5, 0x7e, 0x43, 0xcc, 0x8e, 0x77, 0xe0, 0x2d, 0x12, + 0x27, 0xad, 0x16, 0x5f, 0x40, 0xdf, 0xc2, 0x3d, 0x9c, 0x80, 0x0a, 0xf9, 0x43, 0x51, 0x4b, 0x9f, + 0xce, 0x69, 0xff, 0x14, 0xe1, 0x91, 0xa3, 0x80, 0xcb, 0xe5, 0xa5, 0x5c, 0xce, 0x21, 0xb4, 0xd3, + 0x4a, 0xc0, 0x30,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, 0xae, 0x02, 0xbb, 0x08, 0xf7, 0xd5, 0x56, + 0x2a, 0x84, 0xca, 0x55, 0xd3, 0x69, 0x26, 0xa4, 0xb5, 0x40, 0x4b, 0x33, 0xb4, 0x4b, 0x10, 0x0f, + 0x42, 0xa3, 0xf0, 0x0a, 0xe1, 0x28, 0x3f, 0x2e, 0xed, 0xfb, 0xd6, 0xb0, 0x66, 0xdb, 0xf7, 0xad, + 0x71, 0xd3, 0xaa, 0xd3, 0x0c, 0x26, 0x01, 0x13, 0x7e, 0x30, 0xe2, 0xc2, 0x55, 0x7a, 0x89, 0x70, + 0x8f, 0x78, 0x03, 0x20, 0x44, 0x96, 0x9a, 0x42, 0x53, 0xa1, 0x6c, 0x05, 0x52, 0x92, 0x21, 0xc5, + 0x61, 0xac, 0x3d, 0x12, 0x85, 0xf7, 0x08, 0x0f, 0x78, 0x67, 0x1b, 0xcc, 0x87, 0x48, 0xe5, 0xdd, + 0x88, 0xb1, 0x85, 0xe3, 0x39, 0x09, 0xd0, 0x59, 0x06, 0x3a, 0x05, 0xe9, 0x00, 0x50, 0x7d, 0x47, + 0x4c, 0xf5, 0x0a, 0xfc, 0x40, 0xf8, 0x62, 0x9b, 0x71, 0x0c, 0xb7, 0x8f, 0x03, 0xd2, 0xbc, 0x98, + 0x62, 0x8b, 0x27, 0xf6, 0x17, 0x35, 0xdd, 0x64, 0x35, 0x5d, 0x85, 0x85, 0xd0, 0x35, 0xe9, 0x3b, + 0x72, 0xe3, 0x54, 0xe0, 0x0b, 0xc2, 0xe7, 0x9a, 0x26, 0x24, 0x84, 0x53, 0xd7, 0xfb, 0xbe, 0x5f, + 0x39, 0xa6, 0x97, 0x28, 0x60, 0x91, 0x15, 0x70, 0x1d, 0xae, 0x05, 0x15, 0x50, 0x1f, 0x00, 0x47, + 0x87, 0x7f, 0x65, 0x79, 0x65, 0xef, 0x40, 0x41, 0xfb, 0x07, 0x0a, 0xfa, 0x75, 0xa0, 0xa0, 0xd7, + 0x87, 0x4a, 0x64, 0xff, 0x50, 0x89, 0x7c, 0x3f, 0x54, 0x22, 0xeb, 0x69, 0xd3, 0x72, 0x1f, 0x94, + 0xb2, 0xda, 0xa6, 0x9d, 0x6f, 0x0a, 0xfe, 0x44, 0x86, 0x77, 0xcb, 0x45, 0x42, 0xb3, 0x51, 0xf6, + 0xf3, 0x67, 0xfe, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xca, 0xbf, 0xe2, 0x08, 0x0e, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1251,7 +1252,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/reward/query.proto", + Metadata: "sgenetwork/sge/reward/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/types/query.pb.gw.go b/x/reward/types/query.pb.gw.go index 6a9886e6..73cf51b8 100644 --- a/x/reward/types/query.pb.gw.go +++ b/x/reward/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/reward/query.proto +// source: sgenetwork/sge/reward/query.proto /* Package types is a reverse proxy. diff --git a/x/reward/types/reward.pb.go b/x/reward/types/reward.pb.go index fe1f5346..4309928c 100644 --- a/x/reward/types/reward.pb.go +++ b/x/reward/types/reward.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/reward.proto +// source: sgenetwork/sge/reward/reward.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -73,7 +73,7 @@ func (x RewardCategory) String() string { } func (RewardCategory) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{0} + return fileDescriptor_31e6858ad0a3d6b8, []int{0} } // RewardType defines supported types of rewards of reward module. @@ -133,7 +133,7 @@ func (x RewardType) String() string { } func (RewardType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{1} + return fileDescriptor_31e6858ad0a3d6b8, []int{1} } // RewardType defines supported types of rewards of reward module. @@ -169,7 +169,7 @@ func (x RewardAmountType) String() string { } func (RewardAmountType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{2} + return fileDescriptor_31e6858ad0a3d6b8, []int{2} } // Reward is the type for transaction made to reward a user @@ -199,7 +199,7 @@ func (m *Reward) Reset() { *m = Reward{} } func (m *Reward) String() string { return proto.CompactTextString(m) } func (*Reward) ProtoMessage() {} func (*Reward) Descriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{0} + return fileDescriptor_31e6858ad0a3d6b8, []int{0} } func (m *Reward) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -291,7 +291,7 @@ func (m *RewardAmount) Reset() { *m = RewardAmount{} } func (m *RewardAmount) String() string { return proto.CompactTextString(m) } func (*RewardAmount) ProtoMessage() {} func (*RewardAmount) Descriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{1} + return fileDescriptor_31e6858ad0a3d6b8, []int{1} } func (m *RewardAmount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -341,7 +341,7 @@ func (m *RewardByCategory) Reset() { *m = RewardByCategory{} } func (m *RewardByCategory) String() string { return proto.CompactTextString(m) } func (*RewardByCategory) ProtoMessage() {} func (*RewardByCategory) Descriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{2} + return fileDescriptor_31e6858ad0a3d6b8, []int{2} } func (m *RewardByCategory) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -403,7 +403,7 @@ func (m *RewardByCampaign) Reset() { *m = RewardByCampaign{} } func (m *RewardByCampaign) String() string { return proto.CompactTextString(m) } func (*RewardByCampaign) ProtoMessage() {} func (*RewardByCampaign) Descriptor() ([]byte, []int) { - return fileDescriptor_3412add70a4f177f, []int{3} + return fileDescriptor_31e6858ad0a3d6b8, []int{3} } func (m *RewardByCampaign) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -456,61 +456,63 @@ func init() { proto.RegisterType((*RewardByCampaign)(nil), "sgenetwork.sge.reward.RewardByCampaign") } -func init() { proto.RegisterFile("sge/reward/reward.proto", fileDescriptor_3412add70a4f177f) } - -var fileDescriptor_3412add70a4f177f = []byte{ - // 806 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4f, 0x8f, 0xdb, 0x54, - 0x10, 0x8f, 0x9d, 0x74, 0xff, 0x4c, 0xb7, 0x8b, 0xf7, 0xd1, 0x6d, 0xdd, 0x6c, 0x6b, 0xa7, 0x46, - 0x48, 0x65, 0x25, 0x1c, 0xa9, 0x9c, 0xa0, 0x27, 0xc7, 0x79, 0x09, 0x96, 0xd2, 0x24, 0x7a, 0x71, - 0x04, 0xe5, 0x12, 0x79, 0x9d, 0x87, 0x1b, 0x65, 0x1d, 0x47, 0xb6, 0x43, 0xc9, 0x17, 0xe0, 0xcc, - 0x05, 0x89, 0x2f, 0xc0, 0x8d, 0x0f, 0xd2, 0x63, 0x8f, 0x88, 0x83, 0x85, 0xb2, 0x9c, 0x7a, 0xe4, - 0x13, 0x20, 0x3f, 0xdb, 0x89, 0x6d, 0x22, 0x58, 0x71, 0x49, 0xde, 0xcc, 0xef, 0x37, 0x6f, 0x66, - 0x7e, 0x6f, 0x46, 0x86, 0x87, 0x81, 0x43, 0x9b, 0x3e, 0x7d, 0x63, 0xf9, 0xd3, 0xf4, 0x4f, 0x5d, - 0xfa, 0x5e, 0xe8, 0xa1, 0xf3, 0xc0, 0xa1, 0x0b, 0x1a, 0xbe, 0xf1, 0xfc, 0xb9, 0x1a, 0x38, 0x54, - 0x4d, 0xc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, 0x1d, 0xa1, 0x73, 0x38, 0xcb, 0xa3, 0x89, 0x4e, 0xc7, 0x97, 0x3f, 0x6d, 0xd7, - 0x28, 0x59, 0x50, 0xa6, 0x96, 0x02, 0x52, 0xca, 0xd5, 0x5e, 0xc6, 0xe1, 0xfb, 0x44, 0xdb, 0x65, - 0xcb, 0x73, 0x3a, 0xc6, 0xd7, 0xb8, 0x5d, 0x98, 0x9b, 0x3c, 0xda, 0x1b, 0x74, 0x0d, 0x5d, 0xe0, - 0xd1, 0x53, 0x78, 0xb2, 0x07, 0x1d, 0x62, 0xa2, 0xe3, 0xbe, 0xa9, 0x75, 0xb1, 0x50, 0x6d, 0xe9, - 0x6f, 0x37, 0x12, 0xf7, 0x6e, 0x23, 0x71, 0x7f, 0x6c, 0x24, 0xee, 0xc7, 0x1b, 0xa9, 0xf2, 0xee, - 0x46, 0xaa, 0xfc, 0x76, 0x23, 0x55, 0xbe, 0xf9, 0xc4, 0x99, 0x85, 0xaf, 0x57, 0x57, 0xaa, 0xed, - 0xb9, 0xcd, 0xc0, 0xa1, 0x9f, 0xa6, 0xfb, 0x19, 0x9f, 0x9b, 0xdf, 0x67, 0x5f, 0xbb, 0x70, 0xbd, - 0xa4, 0xc1, 0xd5, 0x01, 0xfb, 0x80, 0x7d, 0xf6, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xb4, - 0x71, 0xab, 0x08, 0x07, 0x00, 0x00, +func init() { + proto.RegisterFile("sgenetwork/sge/reward/reward.proto", fileDescriptor_31e6858ad0a3d6b8) +} + +var fileDescriptor_31e6858ad0a3d6b8 = []byte{ + // 805 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x41, 0x8f, 0xdb, 0x44, + 0x14, 0x8e, 0x9d, 0x34, 0xd9, 0x7d, 0xdd, 0x06, 0xef, 0xd0, 0x14, 0x37, 0xdb, 0xda, 0xa9, 0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, 0x7e, 0x6a, 0x2f, 0x82, 0x57, 0x9b, 0x2b, + 0xd9, 0x74, 0x9d, 0xe8, 0x7d, 0xfb, 0x2c, 0xfb, 0xd6, 0xfd, 0x90, 0xbe, 0x76, 0xc1, 0x76, 0x6d, + 0xf9, 0x57, 0x55, 0xfa, 0x80, 0x7d, 0xfe, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x56, 0x43, 0x53, + 0x4e, 0x13, 0x07, 0x00, 0x00, } func (m *Reward) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/types/ticket.pb.go b/x/reward/types/ticket.pb.go index 1fafafe4..b333c4ea 100644 --- a/x/reward/types/ticket.pb.go +++ b/x/reward/types/ticket.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/ticket.proto +// source: sgenetwork/sge/reward/ticket.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" types "github.com/sge-network/sge/types" io "io" math "math" @@ -55,7 +55,7 @@ func (m *CreateCampaignPayload) Reset() { *m = CreateCampaignPayload{} } func (m *CreateCampaignPayload) String() string { return proto.CompactTextString(m) } func (*CreateCampaignPayload) ProtoMessage() {} func (*CreateCampaignPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{0} + return fileDescriptor_b924af6a809dd84d, []int{0} } func (m *CreateCampaignPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -166,7 +166,7 @@ func (m *UpdateCampaignPayload) Reset() { *m = UpdateCampaignPayload{} } func (m *UpdateCampaignPayload) String() string { return proto.CompactTextString(m) } func (*UpdateCampaignPayload) ProtoMessage() {} func (*UpdateCampaignPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{1} + return fileDescriptor_b924af6a809dd84d, []int{1} } func (m *UpdateCampaignPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -220,7 +220,7 @@ func (m *WithdrawFundsPayload) Reset() { *m = WithdrawFundsPayload{} } func (m *WithdrawFundsPayload) String() string { return proto.CompactTextString(m) } func (*WithdrawFundsPayload) ProtoMessage() {} func (*WithdrawFundsPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{2} + return fileDescriptor_b924af6a809dd84d, []int{2} } func (m *WithdrawFundsPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -276,7 +276,7 @@ func (m *RewardPayloadCommon) Reset() { *m = RewardPayloadCommon{} } func (m *RewardPayloadCommon) String() string { return proto.CompactTextString(m) } func (*RewardPayloadCommon) ProtoMessage() {} func (*RewardPayloadCommon) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{3} + return fileDescriptor_b924af6a809dd84d, []int{3} } func (m *RewardPayloadCommon) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -343,7 +343,7 @@ func (m *GrantSignupRewardPayload) Reset() { *m = GrantSignupRewardPaylo func (m *GrantSignupRewardPayload) String() string { return proto.CompactTextString(m) } func (*GrantSignupRewardPayload) ProtoMessage() {} func (*GrantSignupRewardPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{4} + return fileDescriptor_b924af6a809dd84d, []int{4} } func (m *GrantSignupRewardPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -393,7 +393,7 @@ func (m *GrantSignupReferrerRewardPayload) Reset() { *m = GrantSignupRef func (m *GrantSignupReferrerRewardPayload) String() string { return proto.CompactTextString(m) } func (*GrantSignupReferrerRewardPayload) ProtoMessage() {} func (*GrantSignupReferrerRewardPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{5} + return fileDescriptor_b924af6a809dd84d, []int{5} } func (m *GrantSignupReferrerRewardPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -450,7 +450,7 @@ func (m *GrantSignupAffiliatorRewardPayload) Reset() { *m = GrantSignupA func (m *GrantSignupAffiliatorRewardPayload) String() string { return proto.CompactTextString(m) } func (*GrantSignupAffiliatorRewardPayload) ProtoMessage() {} func (*GrantSignupAffiliatorRewardPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_5d710bc1249ca8ae, []int{6} + return fileDescriptor_b924af6a809dd84d, []int{6} } func (m *GrantSignupAffiliatorRewardPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -503,50 +503,52 @@ func init() { proto.RegisterType((*GrantSignupAffiliatorRewardPayload)(nil), "sgenetwork.sge.reward.GrantSignupAffiliatorRewardPayload") } -func init() { proto.RegisterFile("sge/reward/ticket.proto", fileDescriptor_5d710bc1249ca8ae) } - -var fileDescriptor_5d710bc1249ca8ae = []byte{ - // 633 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4f, 0x6b, 0xd4, 0x40, - 0x14, 0xdf, 0x69, 0xb7, 0xbb, 0xd9, 0x57, 0x15, 0x9d, 0x76, 0x31, 0xb6, 0x90, 0xae, 0x11, 0x71, - 0x15, 0xcc, 0xc2, 0x7a, 0x14, 0x84, 0xdd, 0x2d, 0x5a, 0xe9, 0xa5, 0xa4, 0x2d, 0x82, 0x97, 0x30, - 0x4d, 0xa6, 0xe9, 0xb0, 0x4d, 0x26, 0xcc, 0xcc, 0xb6, 0xe6, 0x0b, 0x78, 0x14, 0x3f, 0x93, 0xa7, - 0x1e, 0x7b, 0xf4, 0x54, 0x64, 0x7b, 0xf3, 0xe0, 0x67, 0x90, 0x4c, 0xd2, 0x34, 0x2b, 0x75, 0x29, - 0x88, 0xa7, 0xbc, 0x37, 0xef, 0xf7, 0x7e, 0xef, 0xf7, 0xfe, 0x10, 0x78, 0x28, 0x43, 0xda, 0x13, - 0xf4, 0x94, 0x88, 0xa0, 0xa7, 0x98, 0x3f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, 0xf5, 0x37, 0x89, 0x22, 0x85, 0x52, 0xb7, 0x39, 0xce, 0x7d, 0x3b, 0x00, - 0xf3, 0x9d, 0x20, 0xb1, 0xda, 0x65, 0x61, 0x3c, 0x49, 0x66, 0xda, 0xc1, 0x5b, 0xd0, 0xf0, 0x75, - 0x4b, 0x5a, 0xe8, 0x72, 0xff, 0xc5, 0xdc, 0x2b, 0x98, 0x19, 0xc2, 0xb0, 0x7e, 0x76, 0xb1, 0x51, - 0x73, 0x8b, 0x7c, 0xfb, 0x33, 0x82, 0xce, 0x4c, 0x99, 0x43, 0x2a, 0x04, 0x15, 0x7f, 0x2b, 0x87, - 0xfe, 0xad, 0x1c, 0x36, 0xa1, 0x29, 0xb2, 0x12, 0x34, 0x5f, 0x74, 0xcb, 0xbd, 0x72, 0xed, 0x2f, - 0x08, 0xec, 0x8a, 0x90, 0xc1, 0xe1, 0x21, 0x3b, 0x66, 0x44, 0xf1, 0xff, 0x26, 0xc5, 0x02, 0x20, - 0x45, 0x91, 0x52, 0x4d, 0xe5, 0x65, 0x38, 0x3a, 0x9b, 0x5a, 0xe8, 0x7c, 0x6a, 0xa1, 0x1f, 0x53, - 0x0b, 0x7d, 0xbd, 0xb4, 0x6a, 0xe7, 0x97, 0x56, 0xed, 0xfb, 0xa5, 0x55, 0xfb, 0xf8, 0x3c, 0x64, - 0xea, 0x68, 0x72, 0xe0, 0xf8, 0x3c, 0xea, 0xc9, 0x90, 0xbe, 0x2c, 0xca, 0x67, 0x76, 0xef, 0x53, - 0xf9, 0x73, 0x4d, 0x13, 0x2a, 0x0f, 0x1a, 0xfa, 0x17, 0xf8, 0xea, 0x77, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x28, 0xb9, 0x2a, 0x10, 0x77, 0x05, 0x00, 0x00, +func init() { + proto.RegisterFile("sgenetwork/sge/reward/ticket.proto", fileDescriptor_b924af6a809dd84d) +} + +var fileDescriptor_b924af6a809dd84d = []byte{ + // 637 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x6a, 0xdb, 0x4a, + 0x14, 0xf6, 0x24, 0x8e, 0x2d, 0x9f, 0xdc, 0x7b, 0xb9, 0x9d, 0xc4, 0xa0, 0x26, 0x54, 0x71, 0x55, + 0x4a, 0xdd, 0x42, 0x65, 0x70, 0x97, 0x85, 0x82, 0xed, 0xd0, 0xa6, 0x64, 0x13, 0x94, 0x84, 0x42, + 0x37, 0x62, 0x22, 0x4d, 0x94, 0xc1, 0x91, 0x46, 0xcc, 0x8c, 0x93, 0xea, 0x05, 0xba, 0x2c, 0x7d, + 0xa6, 0xae, 0xb2, 0xcc, 0xb2, 0xab, 0x50, 0x9c, 0x5d, 0x17, 0x7d, 0x86, 0xa2, 0x91, 0x22, 0xcb, + 0x21, 0x09, 0x81, 0xd2, 0xd5, 0xcc, 0x99, 0xf9, 0xce, 0x77, 0xbe, 0xf3, 0xc3, 0x01, 0x5b, 0x86, + 0x34, 0xa6, 0xea, 0x94, 0x8b, 0x71, 0x4f, 0x86, 0xb4, 0x27, 0xe8, 0x29, 0x11, 0x41, 0x4f, 0x31, + 0x7f, 0x4c, 0x95, 0x93, 0x08, 0xae, 0x38, 0x6e, 0xcf, 0x30, 0x8e, 0x0c, 0xa9, 0x93, 0x63, 0xd6, + 0x56, 0x43, 0x1e, 0x72, 0x8d, 0xe8, 0x65, 0xb7, 0x1c, 0xbc, 0xf6, 0xe8, 0x1a, 0xa1, 0x4a, 0x13, + 0xda, 0x1b, 0xa7, 0x7e, 0xf1, 0x7d, 0x4b, 0xbc, 0xfc, 0xc8, 0x31, 0xf6, 0xaf, 0x45, 0x68, 0x8f, + 0x04, 0x25, 0x8a, 0x8e, 0x48, 0x94, 0x10, 0x16, 0xc6, 0x3b, 0x24, 0x3d, 0xe6, 0x24, 0xc0, 0x6b, + 0x60, 0x24, 0x82, 0x47, 0x5c, 0x51, 0x61, 0xa2, 0x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b, 0xbd, 0x32, 0xed, 0x2f, 0x08, 0xec, 0x8a, 0x90, 0xc1, 0xe1, 0x21, 0x3b, 0x66, + 0x44, 0xf1, 0xbf, 0x26, 0xc5, 0x02, 0x20, 0x45, 0x90, 0x52, 0x4d, 0xe5, 0x65, 0x38, 0x3a, 0x9b, + 0x5a, 0xe8, 0x7c, 0x6a, 0xa1, 0x1f, 0x53, 0x0b, 0x7d, 0xbd, 0xb4, 0x6a, 0xe7, 0x97, 0x56, 0xed, + 0xfb, 0xa5, 0x55, 0xfb, 0xf8, 0x3c, 0x64, 0xea, 0x68, 0x72, 0xe0, 0xf8, 0x3c, 0xca, 0x96, 0xde, + 0xcb, 0xea, 0x02, 0xfc, 0x54, 0xae, 0xdc, 0x34, 0xa1, 0xf2, 0xa0, 0xa1, 0x57, 0xe0, 0xab, 0xdf, + 0x01, 0x00, 0x00, 0xff, 0xff, 0x22, 0x81, 0xc6, 0x7c, 0x98, 0x05, 0x00, 0x00, } func (m *CreateCampaignPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/reward/types/tx.pb.go b/x/reward/types/tx.pb.go index 6c7fa231..4f5ab3ba 100644 --- a/x/reward/types/tx.pb.go +++ b/x/reward/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/reward/tx.proto +// source: sgenetwork/sge/reward/tx.proto package types @@ -8,8 +8,8 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -45,7 +45,7 @@ func (m *MsgCreateCampaign) Reset() { *m = MsgCreateCampaign{} } func (m *MsgCreateCampaign) String() string { return proto.CompactTextString(m) } func (*MsgCreateCampaign) ProtoMessage() {} func (*MsgCreateCampaign) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{0} + return fileDescriptor_0db1a5dd8b963fa8, []int{0} } func (m *MsgCreateCampaign) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +103,7 @@ func (m *MsgCreateCampaignResponse) Reset() { *m = MsgCreateCampaignResp func (m *MsgCreateCampaignResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateCampaignResponse) ProtoMessage() {} func (*MsgCreateCampaignResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{1} + return fileDescriptor_0db1a5dd8b963fa8, []int{1} } func (m *MsgCreateCampaignResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -149,7 +149,7 @@ func (m *MsgUpdateCampaign) Reset() { *m = MsgUpdateCampaign{} } func (m *MsgUpdateCampaign) String() string { return proto.CompactTextString(m) } func (*MsgUpdateCampaign) ProtoMessage() {} func (*MsgUpdateCampaign) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{2} + return fileDescriptor_0db1a5dd8b963fa8, []int{2} } func (m *MsgUpdateCampaign) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -207,7 +207,7 @@ func (m *MsgUpdateCampaignResponse) Reset() { *m = MsgUpdateCampaignResp func (m *MsgUpdateCampaignResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateCampaignResponse) ProtoMessage() {} func (*MsgUpdateCampaignResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{3} + return fileDescriptor_0db1a5dd8b963fa8, []int{3} } func (m *MsgUpdateCampaignResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -252,7 +252,7 @@ func (m *MsgGrantReward) Reset() { *m = MsgGrantReward{} } func (m *MsgGrantReward) String() string { return proto.CompactTextString(m) } func (*MsgGrantReward) ProtoMessage() {} func (*MsgGrantReward) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{4} + return fileDescriptor_0db1a5dd8b963fa8, []int{4} } func (m *MsgGrantReward) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -317,7 +317,7 @@ func (m *MsgGrantRewardResponse) Reset() { *m = MsgGrantRewardResponse{} func (m *MsgGrantRewardResponse) String() string { return proto.CompactTextString(m) } func (*MsgGrantRewardResponse) ProtoMessage() {} func (*MsgGrantRewardResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{5} + return fileDescriptor_0db1a5dd8b963fa8, []int{5} } func (m *MsgGrantRewardResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -360,7 +360,7 @@ func (m *MsgWithdrawFunds) Reset() { *m = MsgWithdrawFunds{} } func (m *MsgWithdrawFunds) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawFunds) ProtoMessage() {} func (*MsgWithdrawFunds) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{6} + return fileDescriptor_0db1a5dd8b963fa8, []int{6} } func (m *MsgWithdrawFunds) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -418,7 +418,7 @@ func (m *MsgWithdrawFundsResponse) Reset() { *m = MsgWithdrawFundsRespon func (m *MsgWithdrawFundsResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawFundsResponse) ProtoMessage() {} func (*MsgWithdrawFundsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad69e28332238e66, []int{7} + return fileDescriptor_0db1a5dd8b963fa8, []int{7} } func (m *MsgWithdrawFundsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -458,40 +458,40 @@ func init() { proto.RegisterType((*MsgWithdrawFundsResponse)(nil), "sgenetwork.sge.reward.MsgWithdrawFundsResponse") } -func init() { proto.RegisterFile("sge/reward/tx.proto", fileDescriptor_ad69e28332238e66) } +func init() { proto.RegisterFile("sgenetwork/sge/reward/tx.proto", fileDescriptor_0db1a5dd8b963fa8) } -var fileDescriptor_ad69e28332238e66 = []byte{ - // 468 bytes of a gzipped FileDescriptorProto +var fileDescriptor_0db1a5dd8b963fa8 = []byte{ + // 469 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0x1b, 0x82, 0x86, 0x78, 0x85, 0x69, 0x04, 0x36, 0x85, 0x20, 0xa5, 0x50, 0x09, 0x31, - 0x0e, 0x73, 0x10, 0xbb, 0x71, 0x5c, 0x25, 0x10, 0x87, 0x5e, 0x22, 0x06, 0x12, 0x97, 0xc9, 0x4b, - 0x8c, 0x6b, 0xb5, 0x89, 0x2d, 0xdb, 0x51, 0xb7, 0x6f, 0xc1, 0x17, 0xe1, 0xc0, 0xb7, 0xd8, 0x71, - 0x47, 0xc4, 0xa1, 0x42, 0xed, 0x37, 0xe0, 0x13, 0x20, 0xbb, 0x4d, 0x68, 0xba, 0x75, 0x4a, 0xe1, - 0xe6, 0xe7, 0xf7, 0x7f, 0xef, 0xf7, 0xfe, 0xc9, 0x93, 0xe1, 0xa1, 0xa2, 0x24, 0x92, 0x64, 0x8c, - 0x65, 0x1a, 0xe9, 0x33, 0x24, 0x24, 0xd7, 0xdc, 0xdb, 0x55, 0x94, 0xe4, 0x44, 0x8f, 0xb9, 0x1c, - 0x22, 0x45, 0x09, 0x9a, 0xe7, 0x83, 0x47, 0x94, 0x53, 0x6e, 0x15, 0x91, 0x39, 0xcd, 0xc5, 0xdd, - 0x6f, 0x0e, 0x3c, 0xe8, 0x2b, 0xda, 0x93, 0x04, 0x6b, 0xd2, 0xc3, 0x99, 0xc0, 0x8c, 0xe6, 0x9e, - 0x0f, 0x77, 0x12, 0x73, 0xc3, 0xa5, 0xef, 0x3c, 0x75, 0xf6, 0xef, 0xc6, 0x65, 0xe8, 0xed, 0x80, - 0x5b, 0xb0, 0xd4, 0xbf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7, 0xde, 0xe2, 0x1e, 0x3b, 0xa9, 0x37, 0xd9, 0xa9, + 0xa4, 0xfa, 0x78, 0xc3, 0x2d, 0xa8, 0xfd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x27, 0xb3, 0x16, + 0x78, 0xef, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -687,7 +687,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/reward/tx.proto", + Metadata: "sgenetwork/sge/reward/tx.proto", } func (m *MsgCreateCampaign) Marshal() (dAtA []byte, err error) { diff --git a/x/subaccount/keeper/msg_server_balance_test.go b/x/subaccount/keeper/msg_server_balance_test.go index efaa4b12..8e07cad4 100644 --- a/x/subaccount/keeper/msg_server_balance_test.go +++ b/x/subaccount/keeper/msg_server_balance_test.go @@ -275,7 +275,7 @@ func TestNewMsgServerTopUp_Errors(t *testing.T) { _, err := msgServer.Create(sdk.WrapSDKContext(ctx), msg) require.NoError(t, err) }, - expectedErr: "0usge is smaller than 123usge: insufficient funds", + expectedErr: "spendable balance is smaller than 123usge", }, } diff --git a/x/subaccount/keeper/msg_server_bet_test.go b/x/subaccount/keeper/msg_server_bet_test.go index e3b75b1f..477cbefa 100644 --- a/x/subaccount/keeper/msg_server_bet_test.go +++ b/x/subaccount/keeper/msg_server_bet_test.go @@ -35,20 +35,20 @@ var ( UID: testOddsUID1, MarketUID: testMarketUID, Value: "4.20", - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), } testBetOdds = &[]bettypes.BetOdds{ { UID: testOddsUID1, - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, { UID: testOddsUID2, - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, { UID: testOddsUID3, - MaxLossMultiplier: sdk.MustNewDecFromStr("0.1"), + MaxLossMultiplier: sdkmath.LegacyMustNewDecFromStr("0.1"), }, } testCreator string diff --git a/x/subaccount/keeper/msg_server_house_test.go b/x/subaccount/keeper/msg_server_house_test.go index 1623c88f..7d510a2f 100644 --- a/x/subaccount/keeper/msg_server_house_test.go +++ b/x/subaccount/keeper/msg_server_house_test.go @@ -89,7 +89,7 @@ func TestMsgServer(t *testing.T) { _, err = betMsgServer.Wager(sdk.WrapSDKContext(ctx), testBetMsgWager(t, bettor1, bettor1Funds)) require.NoError(t, err) - participateFee := app.HouseKeeper.GetHouseParticipationFee(ctx).Mul(sdk.NewDecFromInt(deposit)).TruncateInt() + participateFee := app.HouseKeeper.GetHouseParticipationFee(ctx).Mul(sdkmath.LegacyNewDecFromInt(deposit)).TruncateInt() bettorFee := sdkmath.NewInt(100) t.Run("house wins", func(t *testing.T) { @@ -135,7 +135,7 @@ func TestMsgServer(t *testing.T) { require.NoError(t, err) require.Equal(t, subBalance.SpentAmount.String(), sdk.ZeroInt().Add(participateFee).String()) - require.Equal(t, subBalance.LostAmount, sdk.NewDecFromInt(bettor1Funds.Sub(bettorFee)).Mul(sdk.MustNewDecFromStr("3.2")).TruncateInt()) + require.Equal(t, subBalance.LostAmount, sdkmath.LegacyNewDecFromInt(bettor1Funds.Sub(bettorFee)).Mul(sdkmath.LegacyMustNewDecFromStr("3.2")).TruncateInt()) // check profits were forwarded to subacc owner ownerBalance := app.BankKeeper.GetAllBalances(ctx, subAccOwner) require.Equal(t, ownerBalance.AmountOf(params.DefaultBondDenom), sdk.ZeroInt()) diff --git a/x/subaccount/module.go b/x/subaccount/module.go index fa4b42c7..5645f7c3 100644 --- a/x/subaccount/module.go +++ b/x/subaccount/module.go @@ -9,7 +9,7 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -103,17 +103,9 @@ func NewAppModule(k keeper.Keeper) AppModule { // Name returns the module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the module's message routing key. -func (am AppModule) Route() sdk.Route { - return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) -} - // QuerierRoute returns the module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the module's Querier. -func (AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier { return nil } - // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/subaccount/simulation/genesis.go b/x/subaccount/simulation/genesis.go index 8e118237..ef92c0d1 100644 --- a/x/subaccount/simulation/genesis.go +++ b/x/subaccount/simulation/genesis.go @@ -10,7 +10,6 @@ import ( "github.com/spf13/cast" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/sge-network/sge/x/subaccount/types" @@ -23,8 +22,8 @@ const ( ) // GenHouseParticipationFee randomized batch settlement count -func GenHouseParticipationFee(r *rand.Rand) sdk.Dec { - return sdk.NewDec(cast.ToInt64(r.Intn(99))) +func GenHouseParticipationFee(r *rand.Rand) sdkmath.LegacyDec { + return sdkmath.LegacyNewDec(cast.ToInt64(r.Intn(99))) } // GenMinDeposit randomized house by uid query count @@ -34,7 +33,7 @@ func GenMinDeposit(r *rand.Rand) sdkmath.Int { // RandomizedGenState generates a random GenesisState for house func RandomizedGenState(simState *module.SimulationState) { - var houseParticipationFee sdk.Dec + var houseParticipationFee sdkmath.LegacyDec simState.AppParams.GetOrGenerate( simState.Cdc, HouseParticipationFee, &houseParticipationFee, simState.Rand, func(r *rand.Rand) { houseParticipationFee = GenHouseParticipationFee(r) }, diff --git a/x/subaccount/types/balance.pb.go b/x/subaccount/types/balance.pb.go index 6537c021..6081c034 100644 --- a/x/subaccount/types/balance.pb.go +++ b/x/subaccount/types/balance.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/subaccount/balance.proto +// source: sgenetwork/sge/subaccount/balance.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -44,7 +44,7 @@ func (m *AccountSummary) Reset() { *m = AccountSummary{} } func (m *AccountSummary) String() string { return proto.CompactTextString(m) } func (*AccountSummary) ProtoMessage() {} func (*AccountSummary) Descriptor() ([]byte, []int) { - return fileDescriptor_19a80bd2939d53e2, []int{0} + return fileDescriptor_90f20af016bfbfef, []int{0} } func (m *AccountSummary) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *LockedBalance) Reset() { *m = LockedBalance{} } func (m *LockedBalance) String() string { return proto.CompactTextString(m) } func (*LockedBalance) ProtoMessage() {} func (*LockedBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_19a80bd2939d53e2, []int{1} + return fileDescriptor_90f20af016bfbfef, []int{1} } func (m *LockedBalance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -124,32 +124,34 @@ func init() { proto.RegisterType((*LockedBalance)(nil), "sgenetwork.sge.subaccount.LockedBalance") } -func init() { proto.RegisterFile("sge/subaccount/balance.proto", fileDescriptor_19a80bd2939d53e2) } +func init() { + proto.RegisterFile("sgenetwork/sge/subaccount/balance.proto", fileDescriptor_90f20af016bfbfef) +} -var fileDescriptor_19a80bd2939d53e2 = []byte{ - // 340 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x3d, 0x4b, 0xc3, 0x40, - 0x18, 0xc7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, 0x27, 0x27, 0x6e, 0x84, 0x67, 0x7c, - 0x6d, 0xd9, 0xa9, 0xb4, 0xcb, 0x06, 0x2b, 0x4d, 0xb7, 0xa8, 0x35, 0x05, 0xb1, 0x59, 0xa5, 0x5e, - 0x45, 0x82, 0x32, 0xa2, 0xe0, 0xbb, 0x6f, 0x68, 0xff, 0x11, 0x88, 0x4f, 0x5d, 0xbb, 0x28, 0x5c, - 0xbb, 0x41, 0xcd, 0x98, 0x4f, 0x81, 0xf8, 0x63, 0x29, 0xf2, 0x7e, 0xea, 0x76, 0x27, 0x4d, 0x8c, - 0xdd, 0xe7, 0xfc, 0xe3, 0xd3, 0xe8, 0x27, 0x31, 0xb6, 0x81, 0xe1, 0x76, 0xd4, 0xae, 0x51, 0xe3, - 0x3f, 0x7d, 0x94, 0x61, 0xfb, 0x7e, 0x91, 0xea, 0xea, 0x32, 0xd5, 0xd5, 0xef, 0x54, 0x57, 0xdf, - 0x57, 0xba, 0xb2, 0x5c, 0xe9, 0xca, 0xe7, 0x4a, 0x57, 0x5e, 0x7a, 0xcc, 0x93, 0x93, 0xd8, 0x31, - 0x09, 0x04, 0x96, 0x60, 0xb4, 0x57, 0x1e, 0x40, 0x36, 0x5b, 0xaf, 0x7f, 0x6f, 0x45, 0xce, 0x43, - 0x2a, 0x9c, 0x46, 0xfe, 0xf2, 0x57, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x92, 0x1a, 0xd0, 0xeb, - 0x4a, 0x02, 0x00, 0x00, +var fileDescriptor_90f20af016bfbfef = []byte{ + // 342 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x3f, 0x4b, 0xfb, 0x40, + 0x18, 0xc7, 0x93, 0xfe, 0x4a, 0xf9, 0xf5, 0xea, 0x9f, 0x12, 0x14, 0xac, 0x60, 0x22, 0x5d, 0x74, + 0x69, 0x32, 0x88, 0xb8, 0x89, 0x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, 0x2d, 0x6a, 0x4d, + 0x81, 0x6f, 0x57, 0xa9, 0x57, 0x91, 0xa0, 0x9c, 0x28, 0xf8, 0xee, 0x1b, 0xda, 0x7f, 0x04, 0x12, + 0x50, 0xd7, 0x2e, 0x0e, 0xae, 0xdd, 0xa0, 0x66, 0xc2, 0xa6, 0x40, 0x82, 0xb1, 0xe0, 0xf2, 0x3e, + 0x75, 0xbb, 0x93, 0xa5, 0xc6, 0xff, 0x67, 0xf9, 0xf1, 0x69, 0xf4, 0x93, 0x1a, 0x65, 0x60, 0x58, + 0x8e, 0xda, 0x35, 0x6a, 0xfc, 0xe5, 0x1e, 0xeb, 0xb0, 0x7d, 0xbf, 0xc8, 0x74, 0x75, 0x99, 0xe9, + 0xea, 0x77, 0xa6, 0xab, 0xef, 0x2b, 0x5d, 0x59, 0xae, 0x74, 0xe5, 0x73, 0xa5, 0x2b, 0x2f, 0x3d, + 0xcf, 0x17, 0x93, 0xc4, 0x31, 0x09, 0x84, 0x79, 0x3b, 0x7a, 0xbb, 0x4d, 0x79, 0xdd, 0xed, 0x8a, + 0x98, 0x47, 0x94, 0x3b, 0x0d, 0xf9, 0xf2, 0x57, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x55, 0xeb, + 0x67, 0x8f, 0x55, 0x02, 0x00, 0x00, } func (m *AccountSummary) Marshal() (dAtA []byte, err error) { diff --git a/x/subaccount/types/genesis.pb.go b/x/subaccount/types/genesis.pb.go index 552c35a1..c1ec9db3 100644 --- a/x/subaccount/types/genesis.pb.go +++ b/x/subaccount/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/subaccount/genesis.proto +// source: sgenetwork/sge/subaccount/genesis.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -36,7 +36,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_021997686c533a34, []int{0} + return fileDescriptor_4e56b8808b8d551c, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +103,7 @@ func (m *GenesisSubaccount) Reset() { *m = GenesisSubaccount{} } func (m *GenesisSubaccount) String() string { return proto.CompactTextString(m) } func (*GenesisSubaccount) ProtoMessage() {} func (*GenesisSubaccount) Descriptor() ([]byte, []int) { - return fileDescriptor_021997686c533a34, []int{1} + return fileDescriptor_4e56b8808b8d551c, []int{1} } func (m *GenesisSubaccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -165,33 +165,35 @@ func init() { proto.RegisterType((*GenesisSubaccount)(nil), "sgenetwork.sge.subaccount.GenesisSubaccount") } -func init() { proto.RegisterFile("sge/subaccount/genesis.proto", fileDescriptor_021997686c533a34) } - -var fileDescriptor_021997686c533a34 = []byte{ - // 357 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xcf, 0x4e, 0xc2, 0x30, - 0x18, 0x5f, 0x05, 0x21, 0x14, 0xd4, 0xd8, 0x70, 0x98, 0x68, 0x26, 0xe2, 0x65, 0x26, 0xb2, 0x25, - 0xf8, 0x00, 0x46, 0x2e, 0x84, 0xc4, 0x83, 0x19, 0x26, 0x26, 0x5e, 0x48, 0xb7, 0x35, 0x95, 0xc0, - 0x56, 0xb2, 0x76, 0x41, 0xde, 0xc2, 0xc7, 0x22, 0x9e, 0x38, 0x7a, 0x32, 0x06, 0x0e, 0xbe, 0x86, - 0xa1, 0x2d, 0x8e, 0x60, 0xe4, 0xb4, 0x7e, 0xbf, 0xfd, 0xfe, 0xb5, 0xf9, 0xe0, 0x19, 0xa7, 0xc4, - 0xe5, 0xa9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b, 0xd1, 0x13, 0x3c, 0x1a, 0xb1, 0x60, 0x48, - 0xc2, 0xbe, 0x46, 0xb8, 0x99, 0x97, 0x57, 0xb5, 0x77, 0x58, 0xde, 0x4b, 0x45, 0x5b, 0x09, 0xb4, - 0xe3, 0xe1, 0x68, 0x13, 0xe4, 0xed, 0xce, 0x6c, 0x61, 0x81, 0xf9, 0xc2, 0x02, 0x5f, 0x0b, 0x0b, - 0xbc, 0x2d, 0x2d, 0x63, 0xbe, 0xb4, 0x8c, 0x8f, 0xa5, 0x65, 0x3c, 0x37, 0xe9, 0x40, 0xbc, 0xa4, - 0xbe, 0x13, 0xb0, 0xc8, 0xe5, 0x94, 0x34, 0x75, 0xc8, 0xea, 0xec, 0xbe, 0x6e, 0xee, 0x81, 0x98, - 0x8e, 0x09, 0xf7, 0x0b, 0x72, 0x0d, 0x6e, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x12, 0x0e, - 0x76, 0x92, 0x02, 0x00, 0x00, +func init() { + proto.RegisterFile("sgenetwork/sge/subaccount/genesis.proto", fileDescriptor_4e56b8808b8d551c) +} + +var fileDescriptor_4e56b8808b8d551c = []byte{ + // 362 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xc1, 0x4e, 0xea, 0x40, + 0x14, 0xed, 0x3c, 0x78, 0x10, 0x06, 0xd4, 0x38, 0x61, 0x51, 0x59, 0x54, 0xc4, 0x44, 0x6b, 0x22, + 0x6d, 0x82, 0x1f, 0x60, 0x64, 0x43, 0x48, 0x5c, 0x98, 0x62, 0x62, 0xe2, 0x86, 0x4c, 0xdb, 0x49, + 0x25, 0xd0, 0x0e, 0xe9, 0x4c, 0x83, 0xfc, 0x85, 0x9f, 0x45, 0x5c, 0xb1, 0x74, 0x65, 0x0c, 0x2c, + 0xfc, 0x0d, 0xc3, 0xcc, 0xd4, 0x36, 0x31, 0x74, 0x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9, 0x25, + 0xb1, 0x82, 0xab, 0x82, 0x5c, 0x77, 0xf2, 0x39, 0x4a, 0xc2, 0x10, 0xc7, 0x4b, 0x15, 0x2a, 0xd5, + 0xa3, 0x27, 0x78, 0x34, 0xa3, 0xde, 0x94, 0xf8, 0x63, 0x85, 0x30, 0xbd, 0x2c, 0x46, 0x35, 0x0b, + 0x2c, 0xef, 0x85, 0xa2, 0x2f, 0x05, 0xca, 0xf1, 0x70, 0x96, 0x07, 0x59, 0x7f, 0xb0, 0xda, 0x18, + 0x60, 0xbd, 0x31, 0xc0, 0xd7, 0xc6, 0x00, 0x6f, 0x5b, 0x43, 0x5b, 0x6f, 0x0d, 0xed, 0x63, 0x6b, + 0x68, 0xcf, 0xdd, 0x60, 0xc2, 0x5f, 0x12, 0xd7, 0xf2, 0x68, 0xb8, 0xfb, 0xf3, 0xdd, 0xfc, 0x15, + 0xbc, 0xe6, 0xef, 0x80, 0x2f, 0xe7, 0x84, 0xb9, 0x15, 0x71, 0x06, 0x37, 0x3f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xf9, 0xe0, 0x7a, 0x46, 0xb3, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/subaccount/types/params.pb.go b/x/subaccount/types/params.pb.go index 56158bff..23ce6cda 100644 --- a/x/subaccount/types/params.pb.go +++ b/x/subaccount/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/subaccount/params.proto +// source: sgenetwork/sge/subaccount/params.proto package types import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -34,7 +34,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_13721530b9bd8795, []int{0} + return fileDescriptor_3de2ae61e0617cc7, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,24 +81,26 @@ func init() { proto.RegisterType((*Params)(nil), "sgenetwork.sge.subaccount.Params") } -func init() { proto.RegisterFile("sge/subaccount/params.proto", fileDescriptor_13721530b9bd8795) } +func init() { + proto.RegisterFile("sgenetwork/sge/subaccount/params.proto", fileDescriptor_3de2ae61e0617cc7) +} -var fileDescriptor_13721530b9bd8795 = []byte{ - // 212 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x4e, 0x4f, 0xd5, - 0x2f, 0x2e, 0x4d, 0x4a, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, - 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x2c, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, - 0xcf, 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, 0x43, 0xa8, 0x93, 0x12, 0x49, 0xcf, 0x4f, 0xcf, - 0x07, 0xab, 0xd2, 0x07, 0xb1, 0x20, 0x1a, 0x94, 0x62, 0xb8, 0xd8, 0x02, 0xc0, 0x06, 0x08, 0x29, - 0x73, 0xf1, 0x96, 0x27, 0xa6, 0xa7, 0x16, 0xc5, 0xa7, 0xe6, 0x25, 0x26, 0xe5, 0xa4, 0xa6, 0x48, - 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x04, 0xf1, 0x80, 0x05, 0x5d, 0x21, 0x62, 0x42, 0xea, 0x5c, 0xfc, - 0x29, 0xa9, 0x05, 0xf9, 0xc5, 0x99, 0x25, 0x70, 0x65, 0x4c, 0x60, 0x65, 0x7c, 0x50, 0x61, 0xa8, - 0x42, 0x2b, 0x96, 0x19, 0x0b, 0xe4, 0x19, 0x9c, 0xdc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, - 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, - 0x58, 0x8e, 0x21, 0x4a, 0x37, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, - 0x38, 0x3d, 0x55, 0x17, 0xea, 0x68, 0x10, 0x5b, 0xbf, 0x02, 0xd9, 0x7b, 0x25, 0x95, 0x05, 0xa9, - 0xc5, 0x49, 0x6c, 0x60, 0xd7, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x20, 0xcb, 0xa6, 0xc3, - 0xfd, 0x00, 0x00, 0x00, +var fileDescriptor_3de2ae61e0617cc7 = []byte{ + // 211 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2b, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x2f, 0x2e, 0x4d, 0x4a, 0x4c, + 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x92, 0x44, 0xa8, 0xd3, 0x2b, 0x4e, 0x4f, 0xd5, 0x43, 0xa8, 0x93, 0x12, 0x49, + 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd2, 0x07, 0xb1, 0x20, 0x1a, 0x94, 0x62, 0xb8, 0xd8, 0x02, 0xc0, + 0x06, 0x08, 0x29, 0x73, 0xf1, 0x96, 0x27, 0xa6, 0xa7, 0x16, 0xc5, 0xa7, 0xe6, 0x25, 0x26, 0xe5, + 0xa4, 0xa6, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x04, 0xf1, 0x80, 0x05, 0x5d, 0x21, 0x62, 0x42, + 0xea, 0x5c, 0xfc, 0x29, 0xa9, 0x05, 0xf9, 0xc5, 0x99, 0x25, 0x70, 0x65, 0x4c, 0x60, 0x65, 0x7c, + 0x50, 0x61, 0xa8, 0x42, 0x2b, 0x96, 0x19, 0x0b, 0xe4, 0x19, 0x9c, 0xdc, 0x4f, 0x3c, 0x92, 0x63, + 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, + 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x37, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, + 0x3f, 0x17, 0xe4, 0x21, 0x5d, 0x64, 0xcf, 0x55, 0x20, 0x7b, 0xaf, 0xa4, 0xb2, 0x20, 0xb5, 0x38, + 0x89, 0x0d, 0xec, 0x5a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x2f, 0xdd, 0x9e, 0x08, + 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/subaccount/types/query.pb.go b/x/subaccount/types/query.pb.go index 74a603cc..e74a62dc 100644 --- a/x/subaccount/types/query.pb.go +++ b/x/subaccount/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/subaccount/query.proto +// source: sgenetwork/sge/subaccount/query.proto package types @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -37,7 +37,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8576ea34550c199, []int{0} + return fileDescriptor_8c7f71115b08f83f, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -75,7 +75,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e8576ea34550c199, []int{1} + return fileDescriptor_8c7f71115b08f83f, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -120,7 +120,7 @@ func (m *QuerySubaccountRequest) Reset() { *m = QuerySubaccountRequest{} func (m *QuerySubaccountRequest) String() string { return proto.CompactTextString(m) } func (*QuerySubaccountRequest) ProtoMessage() {} func (*QuerySubaccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8576ea34550c199, []int{2} + return fileDescriptor_8c7f71115b08f83f, []int{2} } func (m *QuerySubaccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -167,7 +167,7 @@ func (m *QuerySubaccountResponse) Reset() { *m = QuerySubaccountResponse func (m *QuerySubaccountResponse) String() string { return proto.CompactTextString(m) } func (*QuerySubaccountResponse) ProtoMessage() {} func (*QuerySubaccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e8576ea34550c199, []int{3} + return fileDescriptor_8c7f71115b08f83f, []int{3} } func (m *QuerySubaccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -224,37 +224,39 @@ func init() { proto.RegisterType((*QuerySubaccountResponse)(nil), "sgenetwork.sge.subaccount.QuerySubaccountResponse") } -func init() { proto.RegisterFile("sge/subaccount/query.proto", fileDescriptor_e8576ea34550c199) } +func init() { + proto.RegisterFile("sgenetwork/sge/subaccount/query.proto", fileDescriptor_8c7f71115b08f83f) +} -var fileDescriptor_e8576ea34550c199 = []byte{ - // 431 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x4e, 0x4f, 0xd5, - 0x2f, 0x2e, 0x4d, 0x4a, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, - 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x2c, 0x4e, 0x4f, 0xcd, 0x4b, 0x2d, 0x29, 0xcf, - 0x2f, 0xca, 0xd6, 0x2b, 0x4e, 0x4f, 0xd5, 0x43, 0x28, 0x93, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, - 0xab, 0xd2, 0x07, 0xb1, 0x20, 0x1a, 0xa4, 0x64, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x13, - 0x0b, 0x32, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0x61, 0xb2, - 0x68, 0x56, 0x25, 0x25, 0xe6, 0x24, 0xe6, 0x25, 0xa7, 0x42, 0x65, 0xa5, 0xd1, 0x64, 0x0b, 0x12, - 0x8b, 0x12, 0x73, 0xa1, 0x5a, 0x95, 0x44, 0xb8, 0x84, 0x02, 0x41, 0x0e, 0x0b, 0x00, 0x0b, 0x06, - 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x28, 0x85, 0x71, 0x09, 0xa3, 0x88, 0x16, 0x17, 0xe4, 0xe7, - 0x15, 0xa7, 0x0a, 0xd9, 0x73, 0xb1, 0x41, 0x34, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x29, - 0xea, 0xe1, 0xf4, 0x87, 0x1e, 0x44, 0xab, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x6d, - 0x4a, 0x46, 0x5c, 0x62, 0x60, 0x73, 0x83, 0xe1, 0xea, 0xa0, 0x36, 0x0a, 0x49, 0x70, 0xb1, 0x27, - 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x43, 0xcc, 0xe6, 0x0c, 0x82, 0x71, 0x95, 0xae, 0x32, 0x72, 0x89, - 0x63, 0x68, 0x82, 0x3a, 0x08, 0xa7, 0x2e, 0x21, 0x4f, 0x2e, 0x76, 0x68, 0x28, 0x48, 0x30, 0x81, - 0xdd, 0xaa, 0x89, 0xc7, 0xad, 0x8e, 0x10, 0x3a, 0xb8, 0x34, 0x37, 0x37, 0xb1, 0xa8, 0x12, 0xea, - 0x66, 0x98, 0x7e, 0xa1, 0x50, 0x2e, 0xbe, 0x9c, 0xfc, 0xe4, 0xec, 0xd4, 0x94, 0x78, 0x98, 0x89, - 0xcc, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x1a, 0x78, 0x4c, 0xf4, 0x01, 0x6b, 0x70, 0x82, 0xa8, 0x87, - 0x1a, 0xc8, 0x9b, 0x83, 0x2c, 0x68, 0xb4, 0x95, 0x89, 0x8b, 0x15, 0xec, 0x2f, 0xa1, 0x85, 0x8c, - 0x5c, 0x5c, 0x08, 0xcf, 0x09, 0x19, 0xe2, 0x31, 0x17, 0x7b, 0xe8, 0x49, 0x19, 0x91, 0xa2, 0x05, - 0x12, 0x76, 0x4a, 0x3a, 0x4d, 0x97, 0x9f, 0x4c, 0x66, 0x52, 0x13, 0x52, 0xd1, 0x47, 0x4b, 0x1f, - 0x48, 0xcc, 0x6a, 0x68, 0x70, 0xd6, 0x0a, 0xb5, 0x33, 0x72, 0xb1, 0x41, 0xa2, 0x54, 0x48, 0x97, - 0x90, 0x65, 0x28, 0x69, 0x49, 0x4a, 0x8f, 0x58, 0xe5, 0x50, 0x77, 0xc9, 0x81, 0xdd, 0x25, 0x21, - 0x24, 0xa6, 0x8f, 0x35, 0xdd, 0x3a, 0xb9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, - 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, - 0x43, 0x94, 0x6e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x48, 0xaf, 0x2e, - 0xd4, 0x52, 0xb0, 0x39, 0x15, 0xc8, 0x26, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x73, - 0x80, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x1e, 0x5b, 0x4e, 0xa9, 0x03, 0x00, 0x00, +var fileDescriptor_8c7f71115b08f83f = []byte{ + // 432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0x4e, 0x4f, 0xcd, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x2f, 0x4e, 0x4f, 0xd5, 0x2f, 0x2e, 0x4d, 0x4a, 0x4c, + 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x92, 0x44, 0x28, 0xd3, 0x2b, 0x4e, 0x4f, 0xd5, 0x43, 0x28, 0x93, 0x12, 0x49, 0xcf, + 0x4f, 0xcf, 0x07, 0xab, 0xd2, 0x07, 0xb1, 0x20, 0x1a, 0xa4, 0x64, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, + 0x52, 0xf5,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0xdb, 0x48, 0x03, 0x8f, 0x89, 0x3e, 0x60, + 0x0d, 0x4e, 0x10, 0xf5, 0x50, 0x03, 0x79, 0x73, 0x90, 0x05, 0x8d, 0xb6, 0x32, 0x71, 0xb1, 0x82, + 0xfd, 0x25, 0xb4, 0x90, 0x91, 0x8b, 0x0b, 0xe1, 0x39, 0x21, 0x43, 0x3c, 0xe6, 0x62, 0x0f, 0x3d, + 0x29, 0x23, 0x52, 0xb4, 0x40, 0xc2, 0x4e, 0x49, 0xa7, 0xe9, 0xf2, 0x93, 0xc9, 0x4c, 0x6a, 0x42, + 0x2a, 0xe8, 0xe9, 0x03, 0x89, 0x59, 0x0d, 0x0d, 0xce, 0x5a, 0xa1, 0x76, 0x46, 0x2e, 0x36, 0x48, + 0x94, 0x0a, 0xe9, 0x12, 0xb2, 0x0c, 0x25, 0x2d, 0x49, 0xe9, 0x11, 0xab, 0x1c, 0xea, 0x2e, 0x39, + 0xb0, 0xbb, 0x24, 0x84, 0xc4, 0xb0, 0xa7, 0x5b, 0x27, 0xf7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, + 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, + 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0x05, + 0xe9, 0xd5, 0x45, 0x4e, 0xff, 0x15, 0xc8, 0x26, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, + 0x73, 0x80, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x04, 0xe4, 0x0f, 0x97, 0xca, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -374,7 +376,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/subaccount/query.proto", + Metadata: "sgenetwork/sge/subaccount/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/subaccount/types/query.pb.gw.go b/x/subaccount/types/query.pb.gw.go index b5405468..bee0dcb3 100644 --- a/x/subaccount/types/query.pb.gw.go +++ b/x/subaccount/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: sge/subaccount/query.proto +// source: sgenetwork/sge/subaccount/query.proto /* Package types is a reverse proxy. diff --git a/x/subaccount/types/ticket.pb.go b/x/subaccount/types/ticket.pb.go index d7cc2c90..227e4b29 100644 --- a/x/subaccount/types/ticket.pb.go +++ b/x/subaccount/types/ticket.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/subaccount/ticket.proto +// source: sgenetwork/sge/subaccount/ticket.proto package types @@ -7,7 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" types "github.com/sge-network/sge/x/bet/types" io "io" math "math" @@ -39,7 +39,7 @@ func (m *SubAccWagerTicketPayload) Reset() { *m = SubAccWagerTicketPaylo func (m *SubAccWagerTicketPayload) String() string { return proto.CompactTextString(m) } func (*SubAccWagerTicketPayload) ProtoMessage() {} func (*SubAccWagerTicketPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_70127b4abdfb0944, []int{0} + return fileDescriptor_fc46a49a6077510c, []int{0} } func (m *SubAccWagerTicketPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,29 +79,31 @@ func init() { proto.RegisterType((*SubAccWagerTicketPayload)(nil), "sgenetwork.sge.subaccount.SubAccWagerTicketPayload") } -func init() { proto.RegisterFile("sge/subaccount/ticket.proto", fileDescriptor_70127b4abdfb0944) } +func init() { + proto.RegisterFile("sgenetwork/sge/subaccount/ticket.proto", fileDescriptor_fc46a49a6077510c) +} -var fileDescriptor_70127b4abdfb0944 = []byte{ - // 299 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4a, 0x03, 0x31, - 0x14, 0x86, 0x27, 0x16, 0x04, 0xc7, 0x8d, 0x8c, 0x2d, 0xd4, 0xaa, 0x69, 0x71, 0xd5, 0x4d, 0x13, - 0xd0, 0x13, 0xb4, 0x08, 0xe2, 0x42, 0xd4, 0x2a, 0x08, 0x6e, 0x4a, 0x92, 0x09, 0xe9, 0x50, 0x33, - 0x29, 0x7d, 0x6f, 0xb0, 0xbd, 0x85, 0xc7, 0xea, 0xb2, 0x4b, 0x71, 0x51, 0x64, 0x66, 0xef, 0x19, - 0x64, 0x32, 0x05, 0xb5, 0x2b, 0x77, 0x8f, 0xf0, 0x7f, 0x5f, 0xf2, 0xe7, 0x85, 0xc7, 0x60, 0x34, - 0x87, 0x4c, 0x0a, 0xa5, 0x5c, 0x96, 0x22, 0xc7, 0x44, 0x4d, 0x34, 0xb2, 0xe9, 0xcc, 0xa1, 0x8b, - 0x8e, 0xc0, 0xe8, 0x54, 0xe3, 0xab, 0x9b, 0x4d, 0x18, 0x18, 0xcd, 0x7e, 0x72, 0xad, 0xba, 0x71, - 0xc6, 0xf9, 0x14, 0x2f, 0xa7, 0x0a, 0x68, 0x1d, 0x94, 0x36, 0xa9, 0x91, 0xe3, 0xbc, 0x3a, 0x39, - 0xfb, 0x22, 0x61, 0xf3, 0x21, 0x93, 0x7d, 0xa5, 0x9e, 0x84, 0xd1, 0xb3, 0x47, 0xaf, 0xbf, 0x13, - 0x8b, 0x17, 0x27, 0xe2, 0x88, 0x85, 0x35, 0x0b, 0xa6, 0x49, 0x3a, 0xa4, 0xbb, 0x7f, 0x7e, 0xc2, - 0xb6, 0x6e, 0x93, 0x1a, 0xd9, 0x0d, 0x18, 0xcf, 0x0d, 0xcb, 0x60, 0x74, 0x1f, 0x36, 0xac, 0x48, - 0x52, 0xa1, 0xd4, 0x28, 0xd6, 0x71, 0xa6, 0x70, 0x24, 0x6c, 0xf9, 0x9a, 0xe6, 0x4e, 0x87, 0x74, - 0xf7, 0x06, 0xa7, 0xcb, 0x75, 0x3b, 0xf8, 0x58, 0xb7, 0x1b, 0xca, 0x81, 0x75, 0x00, 0xf1, 0x84, - 0x25, 0x8e, 0x5b, 0x81, 0x63, 0x76, 0x9d, 0xe2, 0xf0, 0x70, 0xc3, 0x5e, 0x7a, 0xb4, 0xef, 0xc9, - 0xe8, 0x36, 0xac, 0x57, 0xad, 0xb6, 0x8c, 0xb5, 0xff, 0x18, 0xa3, 0x0a, 0xfd, 0x2d, 0x1c, 0x5c, - 0x2d, 0x73, 0x4a, 0x56, 0x39, 0x25, 0x9f, 0x39, 0x25, 0x6f, 0x05, 0x0d, 0x56, 0x05, 0x0d, 0xde, - 0x0b, 0x1a, 0x3c, 0xf7, 0x4c, 0x82, 0xe3, 0x4c, 0x32, 0xe5, 0x2c, 0x07, 0xa3, 0x7b, 0x9b, 0xae, - 0xe5, 0xcc, 0xe7, 0x7f, 0x76, 0xb0, 0x98, 0x6a, 0x90, 0xbb, 0xfe, 0x03, 0x2f, 0xbe, 0x03, 0x00, - 0x00, 0xff, 0xff, 0x4d, 0x0f, 0xd9, 0x3b, 0xa2, 0x01, 0x00, 0x00, +var fileDescriptor_fc46a49a6077510c = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4b, 0xf3, 0x30, + 0x18, 0xc7, 0x9b, 0x77, 0xf0, 0x82, 0xf5, 0x56, 0x37, 0xa8, 0x53, 0xb3, 0xe1, 0x41, 0x76, 0x59, + 0x02, 0xfa, 0x09, 0x36, 0x04, 0xf1, 0x20, 0xea, 0x14, 0x04, 0x2f, 0x23, 0x49, 0x43,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xc1, 0xad, 0xdf, 0xae, 0x3f, 0xd8, 0x30, 0xb6, 0xfe, 0x62, 0x0c, 0x6a, + 0x74, 0x57, 0x38, 0xbe, 0x5a, 0x15, 0x18, 0xad, 0x0b, 0x8c, 0x3e, 0x0b, 0x8c, 0xde, 0x4a, 0xec, + 0xad, 0x4b, 0xec, 0xbd, 0x97, 0xd8, 0x7b, 0x1e, 0xaa, 0x18, 0x66, 0x39, 0x27, 0xc2, 0xe8, 0xaa, + 0xa7, 0xe1, 0x6e, 0x67, 0x8b, 0x5f, 0xeb, 0x58, 0xce, 0xa5, 0xe5, 0xff, 0x5d, 0x81, 0x17, 0xdf, + 0x01, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xd1, 0x78, 0x2d, 0xb8, 0x01, 0x00, 0x00, } func (m *SubAccWagerTicketPayload) Marshal() (dAtA []byte, err error) { diff --git a/x/subaccount/types/tx.pb.go b/x/subaccount/types/tx.pb.go index 0664453b..91d7ee08 100644 --- a/x/subaccount/types/tx.pb.go +++ b/x/subaccount/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: sge/subaccount/tx.proto +// source: sgenetwork/sge/subaccount/tx.proto package types @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" types "github.com/sge-network/sge/x/bet/types" types1 "github.com/sge-network/sge/x/house/types" grpc "google.golang.org/grpc" @@ -45,7 +45,7 @@ func (m *MsgCreate) Reset() { *m = MsgCreate{} } func (m *MsgCreate) String() string { return proto.CompactTextString(m) } func (*MsgCreate) ProtoMessage() {} func (*MsgCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{0} + return fileDescriptor_4f026744c489fe19, []int{0} } func (m *MsgCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +103,7 @@ func (m *MsgCreateResponse) Reset() { *m = MsgCreateResponse{} } func (m *MsgCreateResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateResponse) ProtoMessage() {} func (*MsgCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{1} + return fileDescriptor_4f026744c489fe19, []int{1} } func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -148,7 +148,7 @@ func (m *MsgTopUp) Reset() { *m = MsgTopUp{} } func (m *MsgTopUp) String() string { return proto.CompactTextString(m) } func (*MsgTopUp) ProtoMessage() {} func (*MsgTopUp) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{2} + return fileDescriptor_4f026744c489fe19, []int{2} } func (m *MsgTopUp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -206,7 +206,7 @@ func (m *MsgTopUpResponse) Reset() { *m = MsgTopUpResponse{} } func (m *MsgTopUpResponse) String() string { return proto.CompactTextString(m) } func (*MsgTopUpResponse) ProtoMessage() {} func (*MsgTopUpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{3} + return fileDescriptor_4f026744c489fe19, []int{3} } func (m *MsgTopUpResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,7 +246,7 @@ func (m *MsgWithdrawUnlockedBalances) Reset() { *m = MsgWithdrawUnlocked func (m *MsgWithdrawUnlockedBalances) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawUnlockedBalances) ProtoMessage() {} func (*MsgWithdrawUnlockedBalances) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{4} + return fileDescriptor_4f026744c489fe19, []int{4} } func (m *MsgWithdrawUnlockedBalances) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -291,7 +291,7 @@ func (m *MsgWithdrawUnlockedBalancesResponse) Reset() { *m = MsgWithdraw func (m *MsgWithdrawUnlockedBalancesResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawUnlockedBalancesResponse) ProtoMessage() {} func (*MsgWithdrawUnlockedBalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{5} + return fileDescriptor_4f026744c489fe19, []int{5} } func (m *MsgWithdrawUnlockedBalancesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -333,7 +333,7 @@ func (m *MsgWager) Reset() { *m = MsgWager{} } func (m *MsgWager) String() string { return proto.CompactTextString(m) } func (*MsgWager) ProtoMessage() {} func (*MsgWager) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{6} + return fileDescriptor_4f026744c489fe19, []int{6} } func (m *MsgWager) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -386,7 +386,7 @@ func (m *MsgWagerResponse) Reset() { *m = MsgWagerResponse{} } func (m *MsgWagerResponse) String() string { return proto.CompactTextString(m) } func (*MsgWagerResponse) ProtoMessage() {} func (*MsgWagerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{7} + return fileDescriptor_4f026744c489fe19, []int{7} } func (m *MsgWagerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -432,7 +432,7 @@ func (m *MsgHouseDeposit) Reset() { *m = MsgHouseDeposit{} } func (m *MsgHouseDeposit) String() string { return proto.CompactTextString(m) } func (*MsgHouseDeposit) ProtoMessage() {} func (*MsgHouseDeposit) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{8} + return fileDescriptor_4f026744c489fe19, []int{8} } func (m *MsgHouseDeposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -478,7 +478,7 @@ func (m *MsgHouseDepositResponse) Reset() { *m = MsgHouseDepositResponse func (m *MsgHouseDepositResponse) String() string { return proto.CompactTextString(m) } func (*MsgHouseDepositResponse) ProtoMessage() {} func (*MsgHouseDepositResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{9} + return fileDescriptor_4f026744c489fe19, []int{9} } func (m *MsgHouseDepositResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -524,7 +524,7 @@ func (m *MsgHouseWithdraw) Reset() { *m = MsgHouseWithdraw{} } func (m *MsgHouseWithdraw) String() string { return proto.CompactTextString(m) } func (*MsgHouseWithdraw) ProtoMessage() {} func (*MsgHouseWithdraw) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{10} + return fileDescriptor_4f026744c489fe19, []int{10} } func (m *MsgHouseWithdraw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -570,7 +570,7 @@ func (m *MsgHouseWithdrawResponse) Reset() { *m = MsgHouseWithdrawRespon func (m *MsgHouseWithdrawResponse) String() string { return proto.CompactTextString(m) } func (*MsgHouseWithdrawResponse) ProtoMessage() {} func (*MsgHouseWithdrawResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e042e836d366badb, []int{11} + return fileDescriptor_4f026744c489fe19, []int{11} } func (m *MsgHouseWithdrawResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -621,47 +621,49 @@ func init() { proto.RegisterType((*MsgHouseWithdrawResponse)(nil), "sgenetwork.sge.subaccount.MsgHouseWithdrawResponse") } -func init() { proto.RegisterFile("sge/subaccount/tx.proto", fileDescriptor_e042e836d366badb) } - -var fileDescriptor_e042e836d366badb = []byte{ - // 585 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0x51, 0x6b, 0xd3, 0x50, - 0x14, 0xc7, 0x1b, 0x6b, 0xbb, 0xed, 0x4c, 0xdd, 0x8c, 0xc3, 0xc5, 0x28, 0xb1, 0x66, 0x13, 0xaa, - 0x73, 0x29, 0xb4, 0xa0, 0x2f, 0x22, 0x52, 0x37, 0xe6, 0x83, 0x7d, 0x29, 0x1b, 0x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51, 0x0f, 0x67, 0x50, 0x9f, - 0x2c, 0x4e, 0x9d, 0x61, 0xad, 0x7e, 0x2d, 0x40, 0xbe, 0x81, 0x54, 0xfd, 0x08, 0xc5, 0x78, 0x4a, - 0x77, 0x33, 0x5e, 0xab, 0x9c, 0x1a, 0xfd, 0xd9, 0x32, 0x2a, 0x09, 0xfb, 0x1e, 0x0a, 0xd1, 0x5c, - 0xed, 0x64, 0xdb, 0x84, 0x48, 0xdf, 0x5b, 0x42, 0x24, 0xa3, 0xbf, 0x29, 0xa0, 0xcd, 0x1d, 0x83, - 0xe7, 0xd9, 0x49, 0xf3, 0x7c, 0xfa, 0xab, 0x7f, 0xf3, 0x4d, 0xd6, 0x1b, 0x8d, 0xce, 0x82, 0x7a, - 0x85, 0x68, 0x51, 0xbd, 0xd3, 0x63, 0xe4, 0xc1, 0x8d, 0xa9, 0x09, 0x78, 0x9a, 0x6d, 0x9e, 0xd4, - 0xea, 0xd5, 0xe5, 0xb5, 0xf2, 0xbe, 0x4f, 0x70, 0x73, 0xfa, 0x25, 0xef, 0x2d, 0x11, 0x92, 0x88, - 0xf5, 0xda, 0x5f, 0x88, 0x93, 0x2b, 0xeb, 0x47, 0x17, 0x23, 0x43, 0xb9, 0x1c, 0x19, 0xca, 0xef, - 0x91, 0xa1, 0x7c, 0x19, 0x1b, 0xb9, 0xcb, 0xb1, 0x91, 0xfb, 0x39, 0x36, 0x72, 0x1f, 0xf6, 0x69, - 0x97, 0x77, 0x06, 0x8e, 0xe5, 0xb2, 0xb3, 0x0a, 0x52, 0xb2, 0x1f, 0x27, 0x87, 0xeb, 0xca, 0xf9, - 0xd4, 0x6f, 0xef, 0xb3, 0x4f, 0xd0, 0x29, 0x8a, 0xbf, 0x50, 0xed, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x83, 0xde, 0x93, 0x1d, 0x15, 0x07, 0x00, 0x00, +func init() { + proto.RegisterFile("sgenetwork/sge/subaccount/tx.proto", fileDescriptor_4f026744c489fe19) +} + +var fileDescriptor_4f026744c489fe19 = []byte{ + // 587 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0xd1, 0x6b, 0xd3, 0x40, + 0x1c, 0xc7, 0x1b, 0xeb, 0xba, 0xed, 0x37, 0x75, 0x1a, 0x87, 0xc6, 0x0c, 0x63, 0xcd, 0x26, 0x56, + 0xe7, 0x52, 0x68, 0x41, 0x5f, 0x44, 0xa4, 0x6e, 0xcc, 0x07, 0xfb, 0x12, 0x36, 0x8a, 0x22, 0x8c, + 0x24, 0x3d, 0xae, 0xa5, 0x5d, 0x2e, 0xe6, 0xae, 0x74, 0xfe, 0x17, 0x2a, 0x82, 0xff, 0xd2, 0x1e, + 0xf7, 0xe8, 0x93, 0x48, 0xfb, 0x8f, 0x48, 0x2e, 0xc9, 0x35, 0x49, 0x49, 0x5a, 0x05, 0xdf, 0xee, + 0x92, 0xef, 0xf7, 0x7b, 0x9f, 0xdf, 0x8f, 0xfb, 0x71, 0xa0, 0x53, 0x8c, 0x5c, 0xc4, 0xc6, 0xc4, + 0x1f, 0xd4, 0x29, 0x46, 0x75, 0x3a, 0xb2, 0x2d, 0xc7, 0x21, 0x23, 0x97, 0xd5, 0xd9, 0xb9, 0xe1, + 0xf9, 0x84, 0x11, 0xf9, 0xde, 0x4c, 0x63, 0x50, 0x8c, 0x8c, 0x99, 0x46, 0x7d, 0x9c, 0x6f, 0xb7, + 0xad, 0xa1, 0xe5, 0x3a, 0x28, 0xcc, 0x50, 0xef, 0x67, 0x84, 0x3d, 0x32, 0xa2, 0x48, 0x1c, 0xa1, + 0x6e, 0x67, 0x7e, 0xdb, 0x68, 0x76, 0xbe, 0xba, 0x85, 0x09, 0x26, 0x7c, 0x59, 0x0f, 0x56, 0xe1, + 0x57, 0xfd, 0xbb, 0x04, 0xeb, 0x6d, 0x8a, 0xdf, 0xf8, 0xc8, 0x62, 0x48, 0x56, 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, 0xa5, 0xcb, 0xa9, 0x56, 0xfa, 0x39, 0xd5, + 0x4a, 0x1f, 0xf6, 0x71, 0x9f, 0xf5, 0x46, 0xb6, 0xe1, 0x90, 0xb3, 0xe0, 0x09, 0xda, 0x4f, 0x3e, + 0x47, 0xe7, 0xa9, 0x77, 0xf1, 0xb3, 0x87, 0xa8, 0x5d, 0xe1, 0xaf, 0x50, 0xf3, 0x4f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xd3, 0x75, 0x55, 0xca, 0x41, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -937,7 +939,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "sge/subaccount/tx.proto", + Metadata: "sgenetwork/sge/subaccount/tx.proto", } func (m *MsgCreate) Marshal() (dAtA []byte, err error) {